mars3d-echarts
Advanced tools
Comparing version 3.6.11 to 3.6.12
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.6.11 | ||
* 编译日期:2023-11-03 23:59:37 | ||
* 版本信息:v3.6.12 | ||
* 编译日期:2023-11-13 20:56:14 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';const _0x5a4a86=_0x4250;function _0x3d4f(){const _0x4776d5=['getViewRect','zIndex','518001kDeuLd','1715568vFYQmP','pointerEvents','mars3dMap','BaseLayer','top','canvas','api','dispatchAction','getZr','_pointerEvents','moveHandler','dataToPoint','DomUtil','595IGoNBE','defineProperty','dimensions','BoundingRect','mars3dMapRoam','0px','clampToGround','161102kEPUDi','create','none','hasOwnProperty','setEchartsOption','54480wpTOzS','postRender','min','306tpDRlM','ecInstance','position','getWidth','_mountedHook','_echartsContainer','getRectangle','register','camera','coordinateSystem','Util','getRoamTransform','clientHeight','echartsDepthTest','_map','_createChartOverlay','registerCoordinateSystem','init','1242004mpWVKK','width','__esModule','isArray','graphic','forEach','77341iPekeM','depthTest','echartsAutoHeight','eachSeries','getAttrVal','default','LayerUtil','div','_mars3d_scene','scene','max','5GHhoPd','layer','options','isPointVisible','container','removeEventListener','_echartsInstance','painter','visible','style','9VRkfYc','6252gpXkHZ'];_0x3d4f=function(){return _0x4776d5;};return _0x3d4f();}(function(_0x4bb681,_0x3d9ffc){const _0x4285ae={_0x55391e:0x167,_0x3a06e4:0x14e,_0x25c700:0x160,_0x4ab6a8:0x153,_0x4f905e:0x16f,_0x216673:0x152},_0x251a0a=_0x4250,_0xf6aca8=_0x4bb681();while(!![]){try{const _0x1e644b=parseInt(_0x251a0a(0x187))/0x1+parseInt(_0x251a0a(_0x4285ae._0x55391e))/0x2*(parseInt(_0x251a0a(_0x4285ae._0x3a06e4))/0x3)+parseInt(_0x251a0a(0x181))/0x4*(-parseInt(_0x251a0a(0x144))/0x5)+-parseInt(_0x251a0a(0x14f))/0x6*(-parseInt(_0x251a0a(_0x4285ae._0x25c700))/0x7)+parseInt(_0x251a0a(_0x4285ae._0x4ab6a8))/0x8+-parseInt(_0x251a0a(_0x4285ae._0x4f905e))/0x9*(parseInt(_0x251a0a(0x16c))/0xa)+parseInt(_0x251a0a(_0x4285ae._0x216673))/0xb;if(_0x1e644b===_0x3d9ffc)break;else _0xf6aca8['push'](_0xf6aca8['shift']());}catch(_0x31c9d0){_0xf6aca8['push'](_0xf6aca8['shift']());}}}(_0x3d4f,0x2a538));function _interopNamespace(_0x48335b){const _0x43855d={_0x2108da:0x168},_0x59a2a1=_0x4250;if(_0x48335b&&_0x48335b['__esModule'])return _0x48335b;var _0x374dfe=Object[_0x59a2a1(_0x43855d._0x2108da)](null);return _0x48335b&&Object['keys'](_0x48335b)['forEach'](function(_0x168ff7){const _0x465301=_0x59a2a1;if(_0x168ff7!==_0x465301(0x13e)){var _0x50c61b=Object['getOwnPropertyDescriptor'](_0x48335b,_0x168ff7);Object[_0x465301(0x161)](_0x374dfe,_0x168ff7,_0x50c61b['get']?_0x50c61b:{'enumerable':!![],'get':function(){return _0x48335b[_0x168ff7];}});}}),_0x374dfe[_0x59a2a1(0x13e)]=_0x48335b,_0x374dfe;}function _0x4250(_0x3f816a,_0x2d508c){const _0x3d4fbe=_0x3d4f();return _0x4250=function(_0x425082,_0x26f7d4){_0x425082=_0x425082-0x13b;let _0x42e4d5=_0x3d4fbe[_0x425082];return _0x42e4d5;},_0x4250(_0x3f816a,_0x2d508c);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x5a0521,_0x2e3e01){const _0x517cce=_0x4250;this['_mars3d_scene']=_0x5a0521,this[_0x517cce(0x162)]=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x2e3e01;}['setMapOffset'](_0x2e7280){this['_mapOffset']=_0x2e7280;}['getBMap'](){return this['_mars3d_scene'];}[_0x5a4a86(0x15e)](_0x5d9992){const _0x423802={_0x5b0243:0x13b},_0x116c82=_0x5a4a86,_0x31180d=this['_mars3d_scene'],_0x37a794=[NaN,NaN];let _0x505fc0=_0x31180d['echartsFixedHeight'];_0x31180d[_0x116c82(_0x423802._0x5b0243)]&&(_0x505fc0=_0x31180d['globe']['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x5d9992[0x0],_0x5d9992[0x1])));const _0x19df1b=Cesium$1['Cartesian3']['fromDegrees'](_0x5d9992[0x0],_0x5d9992[0x1],_0x505fc0);if(!_0x19df1b)return _0x37a794;const _0x34debb=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x31180d,_0x19df1b);if(!_0x34debb)return _0x37a794;if(_0x31180d['echartsDepthTest']&&_0x31180d['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x264fac=new Cesium$1['EllipsoidalOccluder'](_0x31180d['globe']['ellipsoid'],_0x31180d[_0x116c82(0x177)]['positionWC']),_0x32fe49=_0x264fac[_0x116c82(0x147)](_0x19df1b);if(!_0x32fe49)return _0x37a794;}return[_0x34debb['x']-this['_mapOffset'][0x0],_0x34debb['y']-this['_mapOffset'][0x1]];}[_0x5a4a86(0x150)](){const _0x194a46={_0x5a1355:0x163,_0xf76097:0x172},_0x26647b=_0x5a4a86,_0x2b829a=this['_api'];return new echarts__namespace[(_0x26647b(0x185))][(_0x26647b(_0x194a46._0x5a1355))](0x0,0x0,_0x2b829a[_0x26647b(_0x194a46._0xf76097)](),_0x2b829a['getHeight']());}[_0x5a4a86(0x17a)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x2f61b8,_0x1f675d){const _0x51f436={_0x36b02b:0x170},_0x421db4={_0x55825b:0x178},_0x1edac1={_0x7c5053:0x15b,_0x3f5cfb:0x14b},_0x1fea12=_0x5a4a86;let _0x54e63a;const _0x548515=_0x2f61b8['scheduler'][_0x1fea12(_0x51f436._0x36b02b)]['_mars3d_scene'];_0x2f61b8['eachComponent'](_0x1fea12(0x155),function(_0xcbdbcd){const _0x43c9db=_0x1fea12,_0x3ffb66=_0x1f675d[_0x43c9db(_0x1edac1._0x7c5053)]()[_0x43c9db(_0x1edac1._0x3f5cfb)];if(!_0x3ffb66)return;!_0x54e63a&&(_0x54e63a=new CompositeCoordinateSystem(_0x548515,_0x1f675d)),_0xcbdbcd['coordinateSystem']=_0x54e63a,_0x54e63a['setMapOffset'](_0xcbdbcd['__mapOffset']||[0x0,0x0]);}),_0x2f61b8[_0x1fea12(0x13c)](function(_0x5f1e52){const _0x5d965e=_0x1fea12;_0x5f1e52['get'](_0x5d965e(_0x421db4._0x55825b))==='mars3dMap'&&(!_0x54e63a&&(_0x54e63a=new CompositeCoordinateSystem(_0x548515,_0x1f675d)),_0x5f1e52[_0x5d965e(_0x421db4._0x55825b)]=_0x54e63a);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x5a4a86(0x180)])echarts__namespace[_0x5a4a86(0x17f)](_0x5a4a86(0x155),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x5a4a86(0x164),'event':'mars3dMapRoam','update':'updateLayout'},function(_0x5875be,_0x243f3b){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x2d2f03,_0x5c3d78){const _0x42afcf=_0x5a4a86;this[_0x42afcf(0x159)]=_0x5c3d78,this['scene']=_0x2d2f03['scheduler']['ecInstance']['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x12e2d8,_0x5568b4){const _0x3bdb7d={_0x4f9523:0x15a,_0xe7d748:0x164},_0x5b7bf8=_0x5a4a86;this['api'][_0x5b7bf8(_0x3bdb7d._0x4f9523)]({'type':_0x5b7bf8(_0x3bdb7d._0xe7d748)});},'render':function(_0x581b8c,_0x43255f,_0x24df8a){},'dispose':function(_0x5c1413){const _0x43e1ca={_0x3e6476:0x142,_0x1bb451:0x16d,_0x3ba20c:0x149,_0x56b863:0x15d},_0x402095=_0x5a4a86;this[_0x402095(_0x43e1ca._0x3e6476)][_0x402095(_0x43e1ca._0x1bb451)][_0x402095(_0x43e1ca._0x3ba20c)](this[_0x402095(_0x43e1ca._0x56b863)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x5a4a86(0x156)];class EchartsLayer extends BaseLayer{constructor(_0x4ac7c8={}){const _0x33c082=_0x5a4a86;super(_0x4ac7c8),this[_0x33c082(0x15c)]=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get[_0x5a4a86(0x154)](){const _0x536e41={_0x21b2e4:0x15c},_0x1d784c=_0x5a4a86;return this[_0x1d784c(_0x536e41._0x21b2e4)];}set['pointerEvents'](_0x54b63b){const _0xc4e497={_0x2d9a99:0x14d},_0x5e123a=_0x5a4a86;this['_pointerEvents']=_0x54b63b,this['_echartsContainer']&&(_0x54b63b?this['_echartsContainer']['style'][_0x5e123a(0x154)]='all':this[_0x5e123a(0x174)][_0x5e123a(_0xc4e497._0x2d9a99)]['pointerEvents']='none');}['_setOptionsHook'](_0x46b67c,_0x59644d){this['setEchartsOption'](_0x46b67c);}['_showHook'](_0x1db002){const _0x593c70={_0x2dea7c:0x14c,_0x2eb5a9:0x174},_0x2b8dbf=_0x5a4a86;_0x1db002?this['_echartsContainer']['style']['visibility']=_0x2b8dbf(_0x593c70._0x2dea7c):this[_0x2b8dbf(_0x593c70._0x2eb5a9)][_0x2b8dbf(0x14d)]['visibility']='hidden';}[_0x5a4a86(0x173)](){const _0x3ba0da={_0x151345:0x142},_0x389731=_0x5a4a86;this['_map'][_0x389731(_0x3ba0da._0x151345)][_0x389731(0x17c)]=this[_0x389731(0x146)][_0x389731(0x188)]??!![],this['_map']['scene']['echartsAutoHeight']=this['options'][_0x389731(0x166)]??![],this['_map'][_0x389731(0x142)]['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x33c90c={_0xacb92b:0x174,_0x58a5a3:0x180,_0xa53563:0x174},_0xb96d0e=_0x5a4a86;this[_0xb96d0e(_0x33c90c._0xacb92b)]=this[_0xb96d0e(0x17e)](),this['_echartsInstance']=echarts__namespace[_0xb96d0e(_0x33c90c._0x58a5a3)](this[_0xb96d0e(_0x33c90c._0xa53563)]),this['_echartsInstance'][_0xb96d0e(0x141)]=this[_0xb96d0e(0x17d)]['scene'],this['setEchartsOption'](this[_0xb96d0e(0x146)]);}['_removedHook'](){const _0x169c85={_0x59568f:0x174,_0x2ea710:0x174},_0x507c85=_0x5a4a86;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0x507c85(0x14a)]['dispose'](),delete this['_echartsInstance']),this[_0x507c85(_0x169c85._0x59568f)]&&(this['_map'][_0x507c85(0x148)]['removeChild'](this['_echartsContainer']),delete this[_0x507c85(_0x169c85._0x2ea710)]);}['_createChartOverlay'](){const _0x2467df={_0x4dc393:0x15f,_0x46965e:0x17d,_0x3398ba:0x165,_0x1d19e5:0x165,_0x34190c:0x154,_0x1208d1:0x14d},_0x65f2b=_0x5a4a86,_0x5e55e2=mars3d__namespace[_0x65f2b(_0x2467df._0x4dc393)]['create'](_0x65f2b(0x140),'mars3d-echarts',this[_0x65f2b(_0x2467df._0x46965e)]['container']);return _0x5e55e2['id']=this['id'],_0x5e55e2['style'][_0x65f2b(0x171)]='absolute',_0x5e55e2['style'][_0x65f2b(0x157)]=_0x65f2b(_0x2467df._0x3398ba),_0x5e55e2['style']['left']=_0x65f2b(_0x2467df._0x1d19e5),_0x5e55e2['style']['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0x5e55e2['style']['height']=this['_map'][_0x65f2b(0x142)][_0x65f2b(0x158)][_0x65f2b(0x17b)]+'px',_0x5e55e2['style'][_0x65f2b(_0x2467df._0x34190c)]=this['_pointerEvents']?'all':_0x65f2b(0x169),_0x5e55e2[_0x65f2b(_0x2467df._0x1208d1)][_0x65f2b(0x151)]=this['options']['zIndex']??0x9,_0x5e55e2;}['resize'](){const _0x39e641={_0x3bd9da:0x14a,_0x52a84e:0x174,_0x44142f:0x182},_0x58f5d5=_0x5a4a86;if(!this[_0x58f5d5(_0x39e641._0x3bd9da)])return;this[_0x58f5d5(_0x39e641._0x52a84e)]['style'][_0x58f5d5(_0x39e641._0x44142f)]=this['_map']['scene']['canvas']['clientWidth']+'px',this[_0x58f5d5(0x174)]['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}[_0x5a4a86(0x16b)](_0x1cd5e2,_0x35a35a,_0x4ef4bc){const _0x2cc8a7={_0x12c5d3:0x13d},_0x2e75c6=_0x5a4a86;this['_echartsInstance']&&(_0x1cd5e2={'mars3dMap':{},...mars3d__namespace[_0x2e75c6(0x179)][_0x2e75c6(_0x2cc8a7._0x12c5d3)](_0x1cd5e2,{'onlySimpleType':!![]})},delete _0x1cd5e2['eventParent'],this[_0x2e75c6(0x14a)]['setOption'](_0x1cd5e2,_0x35a35a,_0x4ef4bc));}[_0x5a4a86(0x175)](_0x423118){const _0x1c64dc={_0x33c8c1:0x146},_0x2831f5={_0x3bca38:0x143},_0x42918e=_0x5a4a86;let _0x39aa43,_0x33e6cc,_0x1cb2de,_0x100b6b;function _0x4c0882(_0x1b6092){const _0x11c1fa=_0x4250;if(!Array[_0x11c1fa(0x184)](_0x1b6092))return;const _0x548655=_0x1b6092[0x0]||0x0,_0x401e74=_0x1b6092[0x1]||0x0;_0x548655!==0x0&&_0x401e74!==0x0&&(_0x39aa43===undefined?(_0x39aa43=_0x548655,_0x33e6cc=_0x548655,_0x1cb2de=_0x401e74,_0x100b6b=_0x401e74):(_0x39aa43=Math[_0x11c1fa(0x16e)](_0x39aa43,_0x548655),_0x33e6cc=Math['max'](_0x33e6cc,_0x548655),_0x1cb2de=Math['min'](_0x1cb2de,_0x401e74),_0x100b6b=Math[_0x11c1fa(_0x2831f5._0x3bca38)](_0x100b6b,_0x401e74)));}const _0x1df702=this[_0x42918e(_0x1c64dc._0x33c8c1)]['series'];_0x1df702&&_0x1df702['forEach'](_0x22bc63=>{const _0x1a9c54=_0x42918e;_0x22bc63['data']&&_0x22bc63['data'][_0x1a9c54(0x186)](_0x2a8e83=>{if(_0x2a8e83['value'])_0x4c0882(_0x2a8e83['value']);else _0x2a8e83['coords']&&_0x2a8e83['coords']['forEach'](_0x3c777f=>{_0x4c0882(_0x3c777f);});});});if(_0x39aa43===0x0&&_0x1cb2de===0x0&&_0x33e6cc===0x0&&_0x100b6b===0x0)return null;return _0x423118!==null&&_0x423118!==void 0x0&&_0x423118['isFormat']?{'xmin':_0x39aa43,'xmax':_0x33e6cc,'ymin':_0x1cb2de,'ymax':_0x100b6b}:Cesium['Rectangle']['fromDegrees'](_0x39aa43,_0x1cb2de,_0x33e6cc,_0x100b6b);}['on'](_0x566609,_0x5216a7,_0x19c8dc){return this['_echartsInstance']['on'](_0x566609,_0x5216a7,_0x19c8dc||this),this;}['onByQuery'](_0x10c6ab,_0x38e4c2,_0x547db8,_0x445238){return this['_echartsInstance']['on'](_0x10c6ab,_0x38e4c2,_0x547db8,_0x445238||this),this;}['off'](_0x10110d,_0x18b535,_0x450dc7){const _0x2dce85=_0x5a4a86;return this[_0x2dce85(0x14a)]['off'](_0x10110d,_0x18b535,_0x450dc7||this),this;}}mars3d__namespace[_0x5a4a86(0x13f)][_0x5a4a86(0x176)]('echarts',EchartsLayer),mars3d__namespace[_0x5a4a86(0x145)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x2b04b5){const _0xef0a1a={_0x44a617:0x16a},_0x23f61c=_0x5a4a86;if(_0x2b04b5!=='default'&&!exports[_0x23f61c(_0xef0a1a._0x44a617)](_0x2b04b5))Object['defineProperty'](exports,_0x2b04b5,{'enumerable':!![],'get':function(){return echarts[_0x2b04b5];}});}),Object[_0x5a4a86(0x161)](exports,_0x5a4a86(0x183),{'value':!![]}); | ||
'use strict';const _0x515eda=_0x2d9f;(function(_0xc87d08,_0x28429d){const _0x451b32={_0x55edac:0x149,_0x234f2b:0x131,_0x4e7a0b:0x11d},_0x19b3cf=_0x2d9f,_0xc9058=_0xc87d08();while(!![]){try{const _0x3d6700=-parseInt(_0x19b3cf(0x141))/0x1+-parseInt(_0x19b3cf(0x11f))/0x2*(-parseInt(_0x19b3cf(_0x451b32._0x55edac))/0x3)+-parseInt(_0x19b3cf(0x12e))/0x4+-parseInt(_0x19b3cf(0x142))/0x5*(-parseInt(_0x19b3cf(_0x451b32._0x234f2b))/0x6)+-parseInt(_0x19b3cf(0x117))/0x7+parseInt(_0x19b3cf(0x13c))/0x8+parseInt(_0x19b3cf(0x120))/0x9*(parseInt(_0x19b3cf(_0x451b32._0x4e7a0b))/0xa);if(_0x3d6700===_0x28429d)break;else _0xc9058['push'](_0xc9058['shift']());}catch(_0x27606e){_0xc9058['push'](_0xc9058['shift']());}}}(_0x5af7,0x6d104));function _interopNamespace(_0x13f649){const _0xe61ca5={_0x5b7730:0x111,_0x4f8535:0x146},_0x2a933c=_0x2d9f;if(_0x13f649&&_0x13f649[_0x2a933c(_0xe61ca5._0x5b7730)])return _0x13f649;var _0x1b495a=Object['create'](null);return _0x13f649&&Object['keys'](_0x13f649)['forEach'](function(_0x3149a5){const _0x5de451=_0x2a933c;if(_0x3149a5!==_0x5de451(0x146)){var _0x58749c=Object['getOwnPropertyDescriptor'](_0x13f649,_0x3149a5);Object['defineProperty'](_0x1b495a,_0x3149a5,_0x58749c['get']?_0x58749c:{'enumerable':!![],'get':function(){return _0x13f649[_0x3149a5];}});}}),_0x1b495a[_0x2a933c(_0xe61ca5._0x4f8535)]=_0x13f649,_0x1b495a;}function _0x5af7(){const _0x395bcf=['pointerEvents','760814VEdlDO','100nBMvZf','canvas','_api','scheduler','default','series','ellipsoid','15YzurPE','removeEventListener','options','min','getHeight','setOption','_createChartOverlay','mars3dMapRoam','echartsDepthTest','__esModule','_removedHook','all','eachComponent','echarts','lat','5914419vWPjbX','Util','mars3d-echarts','globe','style','isPointVisible','110CbEUMz','removeChild','313340YxApen','378981sqxmZZ','dispatchAction','_pointerEvents','_echartsInstance','getRoamTransform','wgs84ToWindowCoordinates','coords','isArray','_mapOffset','hidden','EchartsLayer','BaseLayer','mars3dMap','0px','1841852IAQcMb','echartsAutoHeight','_echartsContainer','260478WEYfXr','_map','_mars3d_scene','setEchartsOption','forEach','setMapOffset','clientWidth','layer','container','scene','Cartographic','3184872gxBrUO','fromDegrees','clientHeight','Cesium'];_0x5af7=function(){return _0x395bcf;};return _0x5af7();}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x2d9f(_0x32540a,_0x288dc6){const _0x5af7d7=_0x5af7();return _0x2d9f=function(_0x2d9f2c,_0xf89352){_0x2d9f2c=_0x2d9f2c-0x10b;let _0x27497c=_0x5af7d7[_0x2d9f2c];return _0x27497c;},_0x2d9f(_0x32540a,_0x288dc6);}const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0xa45ca8,_0x1822f5){const _0x5abcbf={_0x689ff3:0x144},_0xa4488c=_0x2d9f;this['_mars3d_scene']=_0xa45ca8,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this[_0xa4488c(_0x5abcbf._0x689ff3)]=_0x1822f5;}[_0x515eda(0x136)](_0x57c867){const _0x145748=_0x515eda;this[_0x145748(0x128)]=_0x57c867;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x47247f){const _0x597bc9={_0x5acc87:0x12f,_0xec20bf:0x10c,_0x2adcd6:0x13d,_0xb09efb:0x13d,_0x163b2e:0x110,_0x2d1a5a:0x11a,_0x961a77:0x148,_0x52008c:0x11c,_0x438e6b:0x128},_0x3d8eb8=_0x515eda,_0x18c8b1=this['_mars3d_scene'],_0x5e7dc9=[NaN,NaN];let _0x969491=_0x18c8b1['echartsFixedHeight'];_0x18c8b1[_0x3d8eb8(_0x597bc9._0x5acc87)]&&(_0x969491=_0x18c8b1[_0x3d8eb8(0x11a)][_0x3d8eb8(_0x597bc9._0xec20bf)](Cesium$1[_0x3d8eb8(0x13b)][_0x3d8eb8(_0x597bc9._0x2adcd6)](_0x47247f[0x0],_0x47247f[0x1])));const _0xe9f54e=Cesium$1['Cartesian3'][_0x3d8eb8(_0x597bc9._0xb09efb)](_0x47247f[0x0],_0x47247f[0x1],_0x969491);if(!_0xe9f54e)return _0x5e7dc9;const _0x554732=Cesium$1['SceneTransforms'][_0x3d8eb8(0x125)](_0x18c8b1,_0xe9f54e);if(!_0x554732)return _0x5e7dc9;if(_0x18c8b1[_0x3d8eb8(_0x597bc9._0x163b2e)]&&_0x18c8b1['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x50402d=new Cesium$1['EllipsoidalOccluder'](_0x18c8b1[_0x3d8eb8(_0x597bc9._0x2d1a5a)][_0x3d8eb8(_0x597bc9._0x961a77)],_0x18c8b1['camera']['positionWC']),_0x5006b1=_0x50402d[_0x3d8eb8(_0x597bc9._0x52008c)](_0xe9f54e);if(!_0x5006b1)return _0x5e7dc9;}return[_0x554732['x']-this['_mapOffset'][0x0],_0x554732['y']-this[_0x3d8eb8(_0x597bc9._0x438e6b)][0x1]];}['getViewRect'](){const _0x449558=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x449558['getWidth'](),_0x449558['getHeight']());}[_0x515eda(0x124)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng',_0x515eda(0x116)],CompositeCoordinateSystem['create']=function(_0x3e2fc0,_0x2ea522){const _0x478517={_0x537b75:0x12c},_0x1c397a=_0x515eda;let _0x328196;const _0x2f8d93=_0x3e2fc0[_0x1c397a(0x145)]['ecInstance']['_mars3d_scene'];_0x3e2fc0[_0x1c397a(0x114)]('mars3dMap',function(_0x393312){const _0x3c1e18=_0x2ea522['getZr']()['painter'];if(!_0x3c1e18)return;!_0x328196&&(_0x328196=new CompositeCoordinateSystem(_0x2f8d93,_0x2ea522)),_0x393312['coordinateSystem']=_0x328196,_0x328196['setMapOffset'](_0x393312['__mapOffset']||[0x0,0x0]);}),_0x3e2fc0['eachSeries'](function(_0x4bd6ac){const _0x490617=_0x1c397a;_0x4bd6ac['get']('coordinateSystem')===_0x490617(_0x478517._0x537b75)&&(!_0x328196&&(_0x328196=new CompositeCoordinateSystem(_0x2f8d93,_0x2ea522)),_0x4bd6ac['coordinateSystem']=_0x328196);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem'](_0x515eda(0x12c),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x515eda(0x10f),'event':_0x515eda(0x10f),'update':'updateLayout'},function(_0x29e10f,_0x1da225){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){const _0x51ea10={_0x5cfaff:0x133},_0x1152d6=_0x515eda;return this[_0x1152d6(_0x51ea10._0x5cfaff)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x5ad540,_0x176e03){const _0x11d649={_0xf26303:0x145},_0x5d13e8=_0x515eda;this['api']=_0x176e03,this['scene']=_0x5ad540[_0x5d13e8(_0x11d649._0xf26303)]['ecInstance']['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x5988f7,_0xffc4e6){const _0x2091ec={_0x329212:0x121},_0x17d78e=_0x515eda;this['api'][_0x17d78e(_0x2091ec._0x329212)]({'type':'mars3dMapRoam'});},'render':function(_0x5c19d2,_0x3409a4,_0x319160){},'dispose':function(_0x346b3b){const _0x33071d=_0x515eda;this['scene']['postRender'][_0x33071d(0x14a)](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace[_0x515eda(0x13f)],BaseLayer=mars3d__namespace['layer'][_0x515eda(0x12b)];class EchartsLayer extends BaseLayer{constructor(_0x3baa6d={}){super(_0x3baa6d),this['_pointerEvents']=this['options']['pointerEvents'];}get[_0x515eda(0x138)](){const _0x5c3176=_0x515eda;return this[_0x5c3176(0x123)];}get['pointerEvents'](){const _0x195cb6=_0x515eda;return this[_0x195cb6(0x122)];}set['pointerEvents'](_0x45776a){const _0x1dbad9={_0x2c7d06:0x113,_0xb38ec6:0x11b,_0xd77878:0x140},_0x35a263=_0x515eda;this['_pointerEvents']=_0x45776a,this['_echartsContainer']&&(_0x45776a?this['_echartsContainer'][_0x35a263(0x11b)]['pointerEvents']=_0x35a263(_0x1dbad9._0x2c7d06):this['_echartsContainer'][_0x35a263(_0x1dbad9._0xb38ec6)][_0x35a263(_0x1dbad9._0xd77878)]='none');}['_setOptionsHook'](_0x591b3b,_0x24a8af){const _0x34443d={_0x3c4be4:0x134},_0x189cca=_0x515eda;this[_0x189cca(_0x34443d._0x3c4be4)](_0x591b3b);}['_showHook'](_0x2be2da){const _0x303c89={_0x2b7f2b:0x130},_0x40c844=_0x515eda;_0x2be2da?this[_0x40c844(_0x303c89._0x2b7f2b)]['style']['visibility']='visible':this[_0x40c844(0x130)]['style']['visibility']=_0x40c844(0x129);}['_mountedHook'](){const _0x473362={_0x4294b2:0x132,_0x31be52:0x14b},_0x3d4097=_0x515eda;this[_0x3d4097(_0x473362._0x4294b2)]['scene']['echartsDepthTest']=this[_0x3d4097(_0x473362._0x31be52)]['depthTest']??!![],this['_map']['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map'][_0x3d4097(0x13a)]['echartsFixedHeight']=this[_0x3d4097(0x14b)]['fixedHeight']??0x0;}['_addedHook'](){const _0x3d2c84={_0x5ea03e:0x130,_0xf25c23:0x13a},_0x5d982a=_0x515eda;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x5d982a(_0x3d2c84._0x5ea03e)]),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x5d982a(_0x3d2c84._0xf25c23)],this['setEchartsOption'](this['options']);}[_0x515eda(0x112)](){const _0x490c26={_0x21cc8d:0x123,_0x18a1ee:0x139,_0x2fd448:0x11e},_0x4d818e=_0x515eda;this[_0x4d818e(_0x490c26._0x21cc8d)]&&(this[_0x4d818e(0x123)]['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x4d818e(_0x490c26._0x18a1ee)][_0x4d818e(_0x490c26._0x2fd448)](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x515eda(0x10e)](){const _0x5b1ce4={_0x4b697d:0x119,_0x35b865:0x139,_0x3cfec1:0x12d,_0x31bf15:0x11b},_0x15c5bc=_0x515eda,_0xdb99c2=mars3d__namespace['DomUtil']['create']('div',_0x15c5bc(_0x5b1ce4._0x4b697d),this['_map'][_0x15c5bc(_0x5b1ce4._0x35b865)]);return _0xdb99c2['id']=this['id'],_0xdb99c2['style']['position']='absolute',_0xdb99c2['style']['top']=_0x15c5bc(0x12d),_0xdb99c2['style']['left']=_0x15c5bc(_0x5b1ce4._0x3cfec1),_0xdb99c2[_0x15c5bc(_0x5b1ce4._0x31bf15)]['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0xdb99c2['style']['height']=this['_map']['scene'][_0x15c5bc(0x143)][_0x15c5bc(0x13e)]+'px',_0xdb99c2['style']['pointerEvents']=this['_pointerEvents']?'all':'none',_0xdb99c2['style']['zIndex']=this['options']['zIndex']??0x9,_0xdb99c2;}['resize'](){const _0x16c6f9={_0x287cf6:0x130,_0x25e76a:0x11b},_0x49bc4a=_0x515eda;if(!this[_0x49bc4a(0x123)])return;this[_0x49bc4a(_0x16c6f9._0x287cf6)][_0x49bc4a(_0x16c6f9._0x25e76a)]['width']=this['_map']['scene']['canvas'][_0x49bc4a(0x137)]+'px',this['_echartsContainer'][_0x49bc4a(0x11b)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}[_0x515eda(0x134)](_0xc0df14,_0x1cacfe,_0x44b3a3){const _0x7a40fc={_0x4b06de:0x10d},_0x1fcbaf=_0x515eda;this['_echartsInstance']&&(_0xc0df14={'mars3dMap':{},...mars3d__namespace[_0x1fcbaf(0x118)]['getAttrVal'](_0xc0df14,{'onlySimpleType':!![]})},delete _0xc0df14['eventParent'],this['_echartsInstance'][_0x1fcbaf(_0x7a40fc._0x4b06de)](_0xc0df14,_0x1cacfe,_0x44b3a3));}['getRectangle'](_0x28d7f4){const _0x35cee9={_0x84fadf:0x14b,_0x4d5ce5:0x147},_0x598da6={_0x19a405:0x126},_0x37e135={_0x1ac067:0x127},_0x415c03=_0x515eda;let _0xc66784,_0x1f079b,_0x571938,_0x376e0c;function _0x3f4304(_0x9945b3){const _0x2c3d8d=_0x2d9f;if(!Array[_0x2c3d8d(_0x37e135._0x1ac067)](_0x9945b3))return;const _0x549ab0=_0x9945b3[0x0]||0x0,_0x361c1a=_0x9945b3[0x1]||0x0;_0x549ab0!==0x0&&_0x361c1a!==0x0&&(_0xc66784===undefined?(_0xc66784=_0x549ab0,_0x1f079b=_0x549ab0,_0x571938=_0x361c1a,_0x376e0c=_0x361c1a):(_0xc66784=Math['min'](_0xc66784,_0x549ab0),_0x1f079b=Math['max'](_0x1f079b,_0x549ab0),_0x571938=Math[_0x2c3d8d(0x10b)](_0x571938,_0x361c1a),_0x376e0c=Math['max'](_0x376e0c,_0x361c1a)));}const _0x30ab42=this[_0x415c03(_0x35cee9._0x84fadf)][_0x415c03(_0x35cee9._0x4d5ce5)];_0x30ab42&&_0x30ab42['forEach'](_0xb62915=>{_0xb62915['data']&&_0xb62915['data']['forEach'](_0x5599f0=>{const _0x5c6259=_0x2d9f;if(_0x5599f0['value'])_0x3f4304(_0x5599f0['value']);else _0x5599f0[_0x5c6259(_0x598da6._0x19a405)]&&_0x5599f0['coords']['forEach'](_0x19158f=>{_0x3f4304(_0x19158f);});});});if(_0xc66784===0x0&&_0x571938===0x0&&_0x1f079b===0x0&&_0x376e0c===0x0)return null;return _0x28d7f4!==null&&_0x28d7f4!==void 0x0&&_0x28d7f4['isFormat']?{'xmin':_0xc66784,'xmax':_0x1f079b,'ymin':_0x571938,'ymax':_0x376e0c}:Cesium['Rectangle']['fromDegrees'](_0xc66784,_0x571938,_0x1f079b,_0x376e0c);}['on'](_0x5b3f0e,_0x2e6dab,_0x372dd1){return this['_echartsInstance']['on'](_0x5b3f0e,_0x2e6dab,_0x372dd1||this),this;}['onByQuery'](_0x598a16,_0x181693,_0x58e8ef,_0x4d3cc1){return this['_echartsInstance']['on'](_0x598a16,_0x181693,_0x58e8ef,_0x4d3cc1||this),this;}['off'](_0x1db154,_0x1e53c8,_0x1eadbc){return this['_echartsInstance']['off'](_0x1db154,_0x1e53c8,_0x1eadbc||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x515eda(0x115),EchartsLayer),mars3d__namespace['layer'][_0x515eda(0x12a)]=EchartsLayer,mars3d__namespace[_0x515eda(0x115)]=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0x515eda(0x135)](function(_0x45e4e1){if(_0x45e4e1!=='default'&&!exports['hasOwnProperty'](_0x45e4e1))Object['defineProperty'](exports,_0x45e4e1,{'enumerable':!![],'get':function(){return echarts[_0x45e4e1];}});}),Object['defineProperty'](exports,_0x515eda(0x111),{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.6.11", | ||
"version": "3.6.12", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.6.11" | ||
"mars3d": "~3.6.12" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
17194
64