mars3d-echarts
Advanced tools
Comparing version 3.6.5 to 3.6.6
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.6.5 | ||
* 编译日期:2023-09-11 20:50:21 | ||
* 版本信息:v3.6.6 | ||
* 编译日期:2023-09-19 21:39:49 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';const _0x4ea6b7=_0x15ec;(function(_0x710546,_0x3a6fdb){const _0x3a3aa9={_0x2990e7:0xee,_0x36217b:0xe3,_0x65db23:0xd8,_0x14caf2:0xf8},_0xdba082=_0x15ec,_0x521067=_0x710546();while(!![]){try{const _0x47d513=parseInt(_0xdba082(_0x3a3aa9._0x2990e7))/0x1+-parseInt(_0xdba082(_0x3a3aa9._0x36217b))/0x2+parseInt(_0xdba082(_0x3a3aa9._0x65db23))/0x3+parseInt(_0xdba082(0xf0))/0x4*(parseInt(_0xdba082(0xf2))/0x5)+parseInt(_0xdba082(_0x3a3aa9._0x14caf2))/0x6*(-parseInt(_0xdba082(0xd4))/0x7)+parseInt(_0xdba082(0xfe))/0x8+parseInt(_0xdba082(0x108))/0x9*(parseInt(_0xdba082(0xdd))/0xa);if(_0x47d513===_0x3a6fdb)break;else _0x521067['push'](_0x521067['shift']());}catch(_0x3fbe18){_0x521067['push'](_0x521067['shift']());}}}(_0x2bb1,0xf142d));function _interopNamespace(_0x280e46){const _0x1e1227={_0x6511ad:0xe5},_0x12cc17={_0x2c2829:0x104},_0x140bd6=_0x15ec;if(_0x280e46&&_0x280e46['__esModule'])return _0x280e46;var _0x490cb4=Object[_0x140bd6(_0x1e1227._0x6511ad)](null);return _0x280e46&&Object[_0x140bd6(0xef)](_0x280e46)['forEach'](function(_0x408e40){const _0x24c76a=_0x140bd6;if(_0x408e40!=='default'){var _0x5a0297=Object['getOwnPropertyDescriptor'](_0x280e46,_0x408e40);Object[_0x24c76a(_0x12cc17._0x2c2829)](_0x490cb4,_0x408e40,_0x5a0297['get']?_0x5a0297:{'enumerable':!![],'get':function(){return _0x280e46[_0x408e40];}});}}),_0x490cb4['default']=_0x280e46,_0x490cb4;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x4ea6b7(0xea)];function _0x15ec(_0x376be6,_0x373621){const _0x2bb16c=_0x2bb1();return _0x15ec=function(_0x15ec8c,_0x4a8dbb){_0x15ec8c=_0x15ec8c-0xce;let _0x51c484=_0x2bb16c[_0x15ec8c];return _0x51c484;},_0x15ec(_0x376be6,_0x373621);}class CompositeCoordinateSystem{constructor(_0x229035,_0x4994a6){const _0x2cd04d=_0x4ea6b7;this['_mars3d_scene']=_0x229035,this['dimensions']=['lng',_0x2cd04d(0xdf)],this[_0x2cd04d(0xe4)]=[0x0,0x0],this[_0x2cd04d(0xde)]=_0x4994a6;}['setMapOffset'](_0xe0b4ed){this['_mapOffset']=_0xe0b4ed;}[_0x4ea6b7(0xff)](){return this['_mars3d_scene'];}['dataToPoint'](_0x483d12){const _0x4a6bf3={_0x1aa185:0x10a,_0x31f0a7:0xd3},_0x36cd5d=_0x4ea6b7,_0x1e6d79=this['_mars3d_scene'],_0x1d0ca1=[NaN,NaN];let _0x515ac3=_0x1e6d79['echartsFixedHeight'];_0x1e6d79['echartsAutoHeight']&&(_0x515ac3=_0x1e6d79[_0x36cd5d(_0x4a6bf3._0x1aa185)][_0x36cd5d(0x103)](Cesium$1['Cartographic']['fromDegrees'](_0x483d12[0x0],_0x483d12[0x1])));const _0x473c5f=Cesium$1['Cartesian3']['fromDegrees'](_0x483d12[0x0],_0x483d12[0x1],_0x515ac3);if(!_0x473c5f)return _0x1d0ca1;const _0x35462f=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x1e6d79,_0x473c5f);if(!_0x35462f)return _0x1d0ca1;if(_0x1e6d79['echartsDepthTest']&&_0x1e6d79['mode']===Cesium$1[_0x36cd5d(0xd0)]['SCENE3D']){const _0x55a5fb=new Cesium$1['EllipsoidalOccluder'](_0x1e6d79['globe']['ellipsoid'],_0x1e6d79['camera'][_0x36cd5d(_0x4a6bf3._0x31f0a7)]),_0x247bbd=_0x55a5fb['isPointVisible'](_0x473c5f);if(!_0x247bbd)return _0x1d0ca1;}return[_0x35462f['x']-this[_0x36cd5d(0xe4)][0x0],_0x35462f['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0xf7c4ea=_0x4ea6b7,_0x38ee56=this['_api'];return new echarts__namespace['graphic'][(_0xf7c4ea(0xfb))](0x0,0x0,_0x38ee56[_0xf7c4ea(0xd6)](),_0x38ee56['getHeight']());}[_0x4ea6b7(0xe2)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x2a5f2f,_0x38224e){const _0x24bdf1={_0x57038c:0x101},_0x914c2b=_0x4ea6b7;let _0x11fc0a;const _0xf8e0f0=_0x2a5f2f['scheduler']['ecInstance'][_0x914c2b(_0x24bdf1._0x57038c)];_0x2a5f2f['eachComponent']('mars3dMap',function(_0x448273){const _0x5e1afb=_0x914c2b,_0x2e8fa5=_0x38224e['getZr']()['painter'];if(!_0x2e8fa5)return;!_0x11fc0a&&(_0x11fc0a=new CompositeCoordinateSystem(_0xf8e0f0,_0x38224e)),_0x448273['coordinateSystem']=_0x11fc0a,_0x11fc0a['setMapOffset'](_0x448273[_0x5e1afb(0xda)]||[0x0,0x0]);}),_0x2a5f2f[_0x914c2b(0xec)](function(_0x2faa70){_0x2faa70['get']('coordinateSystem')==='mars3dMap'&&(!_0x11fc0a&&(_0x11fc0a=new CompositeCoordinateSystem(_0xf8e0f0,_0x38224e)),_0x2faa70['coordinateSystem']=_0x11fc0a);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x4ea6b7(0x109)])echarts__namespace['registerCoordinateSystem'](_0x4ea6b7(0x10d),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x4ea6b7(0xe7),'event':'mars3dMapRoam','update':'updateLayout'},function(_0x14f15d,_0x1aeb34){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){const _0x3392ea={_0x3bdfac:0x101},_0x1a07d8=_0x4ea6b7;return this[_0x1a07d8(_0x3392ea._0x3bdfac)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':_0x4ea6b7(0x10d),'init':function(_0x44a3fa,_0x106f0a){const _0x221514={_0x4d3465:0xf3},_0x4c9971=_0x4ea6b7;this[_0x4c9971(0xe6)]=_0x106f0a,this[_0x4c9971(_0x221514._0x4d3465)]=_0x44a3fa[_0x4c9971(0xed)]['ecInstance']['_mars3d_scene'],this[_0x4c9971(_0x221514._0x4d3465)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x5f1b3b,_0x4d9ace){const _0x4a232f={_0x18414d:0xe7},_0x3ba551=_0x4ea6b7;this['api']['dispatchAction']({'type':_0x3ba551(_0x4a232f._0x18414d)});},'render':function(_0x46e2bb,_0x695fdd,_0x3c59e2){},'dispose':function(_0x4911db){const _0xf4b4b={_0x163811:0xf3},_0x275f91=_0x4ea6b7;this[_0x275f91(_0xf4b4b._0x163811)][_0x275f91(0xdb)]['removeEventListener'](this['moveHandler'],this);}});else throw new Error(_0x4ea6b7(0xfc));function _0x2bb1(){const _0x116bd3=['hidden','getRoamTransform','2358086kzurjB','_mapOffset','create','api','mars3dMapRoam','value','forEach','Cesium','Rectangle','eachSeries','scheduler','1492179aRkOkG','keys','1256thMpXK','container','16335JtvrrV','scene','_echartsInstance','__esModule','_map','series','135798KXyEIE','layer','setEchartsOption','BoundingRect','请引入\x20echarts\x20库\x20','zIndex','1887536QUqkPA','getBMap','all','_mars3d_scene','onByQuery','getHeight','defineProperty','pointerEvents','_mountedHook','div','5507199DerXqb','init','globe','style','fromDegrees','mars3dMap','echartsDepthTest','off','SceneMode','echarts','visibility','positionWC','371SGAvbA','options','getWidth','_echartsContainer','2781PxoUpz','_setOptionsHook','__mapOffset','postRender','clear','10sEGOjy','_api','lat','echartsAutoHeight'];_0x2bb1=function(){return _0x116bd3;};return _0x2bb1();}const Cesium=mars3d__namespace[_0x4ea6b7(0xea)],BaseLayer=mars3d__namespace[_0x4ea6b7(0xf9)]['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x355dd3={}){const _0xb99007=_0x4ea6b7;super(_0x355dd3),this['_pointerEvents']=this['options'][_0xb99007(0x105)];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set[_0x4ea6b7(0x105)](_0x24a306){const _0x105b42={_0x233b54:0xd7,_0x2f50f0:0x100},_0x48d8da=_0x4ea6b7;this['_pointerEvents']=_0x24a306,this['_echartsContainer']&&(_0x24a306?this[_0x48d8da(_0x105b42._0x233b54)]['style']['pointerEvents']=_0x48d8da(_0x105b42._0x2f50f0):this[_0x48d8da(0xd7)]['style'][_0x48d8da(0x105)]='none');}[_0x4ea6b7(0xd9)](_0x3791a6,_0x5ea751){this['setEchartsOption'](_0x3791a6);}['_showHook'](_0x24c738){const _0x10a444={_0x2689ce:0xd2,_0x5662cf:0xe1},_0x735590=_0x4ea6b7;_0x24c738?this['_echartsContainer']['style'][_0x735590(_0x10a444._0x2689ce)]='visible':this['_echartsContainer']['style'][_0x735590(_0x10a444._0x2689ce)]=_0x735590(_0x10a444._0x5662cf);}[_0x4ea6b7(0x106)](){const _0x495cf1={_0x1d9748:0xe0},_0x2e6dda=_0x4ea6b7;this['_map']['scene'][_0x2e6dda(0xce)]=this['options']['depthTest']??!![],this['_map'][_0x2e6dda(0xf3)][_0x2e6dda(_0x495cf1._0x1d9748)]=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x1e9fcc={_0x5d2b83:0xf6,_0x15223d:0xf3,_0x3f2da3:0xd5},_0x57479e=_0x4ea6b7;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this[_0x57479e(_0x1e9fcc._0x5d2b83)][_0x57479e(_0x1e9fcc._0x15223d)],this[_0x57479e(0xfa)](this[_0x57479e(_0x1e9fcc._0x3f2da3)]);}['_removedHook'](){const _0x586a66={_0x94fb85:0xf1},_0x1b5153=_0x4ea6b7;this[_0x1b5153(0xf4)]&&(this['_echartsInstance'][_0x1b5153(0xdc)](),this['_echartsInstance']['dispose'](),delete this[_0x1b5153(0xf4)]),this['_echartsContainer']&&(this['_map'][_0x1b5153(_0x586a66._0x94fb85)]['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0xc836f2={_0x25d5a4:0xf6,_0x3e92a1:0xd5},_0x10444b=_0x4ea6b7,_0x256a6f=mars3d__namespace['DomUtil']['create'](_0x10444b(0x107),'mars3d-echarts',this['_map']['container']);return _0x256a6f['id']=this['id'],_0x256a6f[_0x10444b(0x10b)]['position']='absolute',_0x256a6f[_0x10444b(0x10b)]['top']='0px',_0x256a6f['style']['left']='0px',_0x256a6f[_0x10444b(0x10b)]['width']=this['_map'][_0x10444b(0xf3)]['canvas']['clientWidth']+'px',_0x256a6f[_0x10444b(0x10b)]['height']=this[_0x10444b(_0xc836f2._0x25d5a4)]['scene']['canvas']['clientHeight']+'px',_0x256a6f['style']['pointerEvents']=this['_pointerEvents']?'all':'none',_0x256a6f['style']['zIndex']=this[_0x10444b(_0xc836f2._0x3e92a1)][_0x10444b(0xfd)]??0x9,_0x256a6f;}['resize'](){const _0x69828f={_0x5e2772:0xf3},_0x51ba3e=_0x4ea6b7;if(!this['_echartsInstance'])return;this['_echartsContainer'][_0x51ba3e(0x10b)]['width']=this['_map'][_0x51ba3e(_0x69828f._0x5e2772)]['canvas']['clientWidth']+'px',this['_echartsContainer']['style']['height']=this['_map'][_0x51ba3e(0xf3)]['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x1e1922,_0x170f16,_0x26357f){this['_echartsInstance']&&(_0x1e1922['mars3dMap']=_0x1e1922['mars3dMap']||{},this['_echartsInstance']['setOption'](_0x1e1922,_0x170f16,_0x26357f));}['getRectangle'](_0x4faa03){const _0x19b2b8={_0x206aed:0xeb,_0x5d191b:0x10c},_0x4d3427=_0x4ea6b7;let _0x5ca380,_0x402b32,_0x46b4e1,_0x210890;function _0x5290df(_0x1c9d37){if(!Array['isArray'](_0x1c9d37))return;const _0x15e19c=_0x1c9d37[0x0]||0x0,_0x1254f1=_0x1c9d37[0x1]||0x0;_0x15e19c!==0x0&&_0x1254f1!==0x0&&(_0x5ca380===undefined?(_0x5ca380=_0x15e19c,_0x402b32=_0x15e19c,_0x46b4e1=_0x1254f1,_0x210890=_0x1254f1):(_0x5ca380=Math['min'](_0x5ca380,_0x15e19c),_0x402b32=Math['max'](_0x402b32,_0x15e19c),_0x46b4e1=Math['min'](_0x46b4e1,_0x1254f1),_0x210890=Math['max'](_0x210890,_0x1254f1)));}const _0x39af86=this['options'][_0x4d3427(0xf7)];_0x39af86&&_0x39af86['forEach'](_0x305e2c=>{_0x305e2c['data']&&_0x305e2c['data']['forEach'](_0x33c54d=>{const _0x300dab=_0x15ec;if(_0x33c54d['value'])_0x5290df(_0x33c54d[_0x300dab(0xe8)]);else _0x33c54d['coords']&&_0x33c54d['coords'][_0x300dab(0xe9)](_0x88f9e2=>{_0x5290df(_0x88f9e2);});});});if(_0x5ca380===0x0&&_0x46b4e1===0x0&&_0x402b32===0x0&&_0x210890===0x0)return null;return _0x4faa03!==null&&_0x4faa03!==void 0x0&&_0x4faa03['isFormat']?{'xmin':_0x5ca380,'xmax':_0x402b32,'ymin':_0x46b4e1,'ymax':_0x210890}:Cesium[_0x4d3427(_0x19b2b8._0x206aed)][_0x4d3427(_0x19b2b8._0x5d191b)](_0x5ca380,_0x46b4e1,_0x402b32,_0x210890);}['on'](_0x4132c0,_0x5ec94e,_0x38a0f8){return this['_echartsInstance']['on'](_0x4132c0,_0x5ec94e,_0x38a0f8||this),this;}[_0x4ea6b7(0x102)](_0x4cb7c7,_0x24b249,_0x4dab7d,_0x33b573){return this['_echartsInstance']['on'](_0x4cb7c7,_0x24b249,_0x4dab7d,_0x33b573||this),this;}['off'](_0x29062e,_0x14d720,_0xd1b45){const _0x3ad249={_0x42f166:0xf4,_0x46640d:0xcf},_0x1859d2=_0x4ea6b7;return this[_0x1859d2(_0x3ad249._0x42f166)][_0x1859d2(_0x3ad249._0x46640d)](_0x29062e,_0x14d720,_0xd1b45||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace[_0x4ea6b7(0xd1)]=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x8899ab){if(_0x8899ab!=='default'&&!exports['hasOwnProperty'](_0x8899ab))Object['defineProperty'](exports,_0x8899ab,{'enumerable':!![],'get':function(){return echarts[_0x8899ab];}});}),Object['defineProperty'](exports,_0x4ea6b7(0xf5),{'value':!![]}); | ||
'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':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.6.5", | ||
"version": "3.6.6", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.6.5" | ||
"mars3d": "~3.6.6" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
17434
65