mars3d-echarts
Advanced tools
Comparing version 3.5.17 to 3.5.18
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.5.17 | ||
* 编译日期:2023-07-24 22:20:56 | ||
* 版本信息:v3.5.18 | ||
* 编译日期:2023-07-31 17:54:18 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';const _0x289d3f=_0x2ade;(function(_0x28e402,_0x1c699f){const _0x4b9a38={_0x3f7fd4:0x224,_0x3d078b:0x201},_0x5b0cf9=_0x2ade,_0x496810=_0x28e402();while(!![]){try{const _0x2d25bd=-parseInt(_0x5b0cf9(_0x4b9a38._0x3f7fd4))/0x1*(-parseInt(_0x5b0cf9(0x1ff))/0x2)+parseInt(_0x5b0cf9(0x227))/0x3+-parseInt(_0x5b0cf9(0x222))/0x4*(parseInt(_0x5b0cf9(0x20a))/0x5)+parseInt(_0x5b0cf9(0x21b))/0x6+-parseInt(_0x5b0cf9(0x1ec))/0x7*(parseInt(_0x5b0cf9(0x1f1))/0x8)+-parseInt(_0x5b0cf9(0x223))/0x9+parseInt(_0x5b0cf9(_0x4b9a38._0x3d078b))/0xa;if(_0x2d25bd===_0x1c699f)break;else _0x496810['push'](_0x496810['shift']());}catch(_0x52e142){_0x496810['push'](_0x496810['shift']());}}}(_0x28fb,0x3bc1f));function _0x2ade(_0x3b61ca,_0x55de7b){const _0x28fbb4=_0x28fb();return _0x2ade=function(_0x2ade0d,_0x55d19c){_0x2ade0d=_0x2ade0d-0x1eb;let _0x1c06e3=_0x28fbb4[_0x2ade0d];return _0x1c06e3;},_0x2ade(_0x3b61ca,_0x55de7b);}function _interopNamespace(_0x41d65f){const _0x3cdbcd={_0x3fb970:0x203},_0x34c0bb={_0x41f99a:0x228},_0x4f767d=_0x2ade;if(_0x41d65f&&_0x41d65f['__esModule'])return _0x41d65f;var _0x545d44=Object['create'](null);return _0x41d65f&&Object['keys'](_0x41d65f)[_0x4f767d(_0x3cdbcd._0x3fb970)](function(_0x582517){const _0x5278d7=_0x4f767d;if(_0x582517!==_0x5278d7(_0x34c0bb._0x41f99a)){var _0x38ff26=Object['getOwnPropertyDescriptor'](_0x41d65f,_0x582517);Object['defineProperty'](_0x545d44,_0x582517,_0x38ff26[_0x5278d7(0x22d)]?_0x38ff26:{'enumerable':!![],'get':function(){return _0x41d65f[_0x582517];}});}}),_0x545d44['default']=_0x41d65f,_0x545d44;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x289d3f(0x20d)];class CompositeCoordinateSystem{constructor(_0x1c6af5,_0x1cadde){const _0x221d7={_0x3cef42:0x20e},_0x196477=_0x289d3f;this[_0x196477(0x1f2)]=_0x1c6af5,this['dimensions']=['lng',_0x196477(_0x221d7._0x3cef42)],this['_mapOffset']=[0x0,0x0],this['_api']=_0x1cadde;}[_0x289d3f(0x208)](_0x3816d4){const _0xb87ccb={_0x50104e:0x1f5},_0x57ec7c=_0x289d3f;this[_0x57ec7c(_0xb87ccb._0x50104e)]=_0x3816d4;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x5ac07e){const _0x5a2687={_0x23b358:0x219,_0x42a4d2:0x22c,_0x6a34e2:0x207,_0x2dfa15:0x220},_0x4192d5=_0x289d3f,_0x4aef0b=this[_0x4192d5(0x1f2)],_0x410175=[NaN,NaN];let _0x24ae32=_0x4aef0b['echartsFixedHeight'];_0x4aef0b['echartsAutoHeight']&&(_0x24ae32=_0x4aef0b['globe']['getHeight'](Cesium$1[_0x4192d5(_0x5a2687._0x23b358)][_0x4192d5(0x231)](_0x5ac07e[0x0],_0x5ac07e[0x1])));const _0x4ebb2b=Cesium$1[_0x4192d5(_0x5a2687._0x42a4d2)][_0x4192d5(0x231)](_0x5ac07e[0x0],_0x5ac07e[0x1],_0x24ae32);if(!_0x4ebb2b)return _0x410175;const _0x33505e=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x4aef0b,_0x4ebb2b);if(!_0x33505e)return _0x410175;if(_0x4aef0b[_0x4192d5(0x1fb)]&&_0x4aef0b[_0x4192d5(_0x5a2687._0x6a34e2)]===Cesium$1[_0x4192d5(0x21c)]['SCENE3D']){const _0x2e7022=new Cesium$1['EllipsoidalOccluder'](_0x4aef0b['globe']['ellipsoid'],_0x4aef0b[_0x4192d5(_0x5a2687._0x2dfa15)][_0x4192d5(0x229)]),_0x538616=_0x2e7022[_0x4192d5(0x1fc)](_0x4ebb2b);if(!_0x538616)return _0x410175;}return[_0x33505e['x']-this['_mapOffset'][0x0],_0x33505e['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x36eda3={_0x29af43:0x225},_0x34d3e6=_0x289d3f,_0x38ef1a=this['_api'];return new echarts__namespace['graphic'][(_0x34d3e6(_0x36eda3._0x29af43))](0x0,0x0,_0x38ef1a['getWidth'](),_0x38ef1a['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem[_0x289d3f(0x215)]=[_0x289d3f(0x21f),_0x289d3f(0x20e)],CompositeCoordinateSystem['create']=function(_0x2342de,_0x4f1265){const _0x5bda08={_0x523044:0x213},_0x5dd82c={_0x5f5c51:0x204},_0x5461c1=_0x289d3f;let _0x264287;const _0x356c5c=_0x2342de['scheduler']['ecInstance'][_0x5461c1(0x1f2)];_0x2342de['eachComponent'](_0x5461c1(0x1f4),function(_0x48019a){const _0x5bceda=_0x5461c1,_0x471543=_0x4f1265[_0x5bceda(_0x5dd82c._0x5f5c51)]()['painter'];if(!_0x471543)return;!_0x264287&&(_0x264287=new CompositeCoordinateSystem(_0x356c5c,_0x4f1265)),_0x48019a['coordinateSystem']=_0x264287,_0x264287['setMapOffset'](_0x48019a[_0x5bceda(0x221)]||[0x0,0x0]);}),_0x2342de['eachSeries'](function(_0x4c90f3){const _0xe1bcd6=_0x5461c1;_0x4c90f3['get'](_0xe1bcd6(_0x5bda08._0x523044))==='mars3dMap'&&(!_0x264287&&(_0x264287=new CompositeCoordinateSystem(_0x356c5c,_0x4f1265)),_0x4c90f3['coordinateSystem']=_0x264287);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x289d3f(0x1f3)]({'type':'mars3dMapRoam','event':_0x289d3f(0x1fe),'update':_0x289d3f(0x21a)},function(_0x37a430,_0x5a0c80){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){const _0x498d85=_0x289d3f;return this[_0x498d85(0x1f2)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x2dd7b6,_0x143a93){const _0x25a6d3={_0x26bcb8:0x200},_0x30a465=_0x289d3f;this['api']=_0x143a93,this['scene']=_0x2dd7b6['scheduler']['ecInstance'][_0x30a465(0x1f2)],this['scene']['postRender'][_0x30a465(_0x25a6d3._0x26bcb8)](this['moveHandler'],this);},'moveHandler':function(_0x23f2c2,_0x15414d){const _0x242330={_0xf01f0a:0x230,_0x291cf2:0x1fe},_0x474496=_0x289d3f;this[_0x474496(_0x242330._0xf01f0a)]['dispatchAction']({'type':_0x474496(_0x242330._0x291cf2)});},'render':function(_0x2f3b2e,_0x473381,_0x151ec2){},'dispose':function(_0x4832fb){this['scene']['postRender']['removeEventListener'](this['moveHandler'],this);}});else throw new Error(_0x289d3f(0x22f));const Cesium=mars3d__namespace[_0x289d3f(0x20d)],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x5d3a9a={}){super(_0x5d3a9a),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x118af2){const _0x3825fd={_0xbcb47a:0x1f9},_0x1a41fb=_0x289d3f;this['_pointerEvents']=_0x118af2,this['_echartsContainer']&&(_0x118af2?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer'][_0x1a41fb(_0x3825fd._0xbcb47a)][_0x1a41fb(0x211)]=_0x1a41fb(0x22b));}['_setOptionsHook'](_0x87fb91,_0x2ffd53){this['setEchartsOption'](_0x87fb91);}['_showHook'](_0x6d614a){const _0x4687c1={_0x5603a5:0x206,_0x52974b:0x210,_0x2b5e49:0x20f,_0x38e9d6:0x226},_0x93201f=_0x289d3f;_0x6d614a?this[_0x93201f(_0x4687c1._0x5603a5)]['style'][_0x93201f(_0x4687c1._0x52974b)]=_0x93201f(_0x4687c1._0x2b5e49):this['_echartsContainer']['style']['visibility']=_0x93201f(_0x4687c1._0x38e9d6);}['_mountedHook'](){const _0x103052=_0x289d3f;this['_map']['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this['_map']['scene'][_0x103052(0x1f7)]=this[_0x103052(0x216)]['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x1fc9b9={_0x4a9acb:0x21d,_0x527dcd:0x22e,_0x55f0f1:0x22a},_0x40a0d2=_0x289d3f;this[_0x40a0d2(0x206)]=this[_0x40a0d2(_0x1fc9b9._0x4a9acb)](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this[_0x40a0d2(0x1eb)]['_mars3d_scene']=this[_0x40a0d2(_0x1fc9b9._0x527dcd)][_0x40a0d2(_0x1fc9b9._0x55f0f1)],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x3bc500={_0x21349d:0x1f8,_0x8b9854:0x22e},_0x112089=_0x289d3f;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this['_echartsInstance'][_0x112089(_0x3bc500._0x21349d)](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x112089(_0x3bc500._0x8b9854)]['container'][_0x112089(0x1f0)](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x176280={_0xf5f6d8:0x202,_0x134b4d:0x1fd,_0x3c3c5b:0x22e,_0x2f91d1:0x20c,_0x1afddd:0x1f9,_0x24a00e:0x1f6,_0x50691e:0x20b,_0x1b7e04:0x22b},_0x29c02d=_0x289d3f,_0x21fd25=mars3d__namespace['DomUtil']['create'](_0x29c02d(_0x176280._0xf5f6d8),_0x29c02d(_0x176280._0x134b4d),this[_0x29c02d(_0x176280._0x3c3c5b)]['container']);return _0x21fd25['id']=this['id'],_0x21fd25['style']['position']='absolute',_0x21fd25['style'][_0x29c02d(_0x176280._0x2f91d1)]='0px',_0x21fd25['style'][_0x29c02d(0x217)]='0px',_0x21fd25[_0x29c02d(_0x176280._0x1afddd)]['width']=this[_0x29c02d(0x22e)][_0x29c02d(0x22a)]['canvas'][_0x29c02d(_0x176280._0x24a00e)]+'px',_0x21fd25['style']['height']=this['_map']['scene'][_0x29c02d(0x218)][_0x29c02d(_0x176280._0x50691e)]+'px',_0x21fd25['style']['pointerEvents']=this['_pointerEvents']?'all':_0x29c02d(_0x176280._0x1b7e04),_0x21fd25['style']['zIndex']=this['options'][_0x29c02d(0x1fa)]??0x9,_0x21fd25;}['resize'](){const _0x31a16b={_0x4e1ab5:0x1eb,_0x44c8dd:0x206,_0x25e6dc:0x1f9,_0x416d0a:0x22e,_0xb72b58:0x1f6,_0x77ba4e:0x20b},_0x1be9be=_0x289d3f;if(!this[_0x1be9be(_0x31a16b._0x4e1ab5)])return;this[_0x1be9be(_0x31a16b._0x44c8dd)][_0x1be9be(_0x31a16b._0x25e6dc)]['width']=this[_0x1be9be(_0x31a16b._0x416d0a)]['scene'][_0x1be9be(0x218)][_0x1be9be(_0x31a16b._0xb72b58)]+'px',this['_echartsContainer'][_0x1be9be(_0x31a16b._0x25e6dc)]['height']=this[_0x1be9be(0x22e)][_0x1be9be(0x22a)]['canvas'][_0x1be9be(_0x31a16b._0x77ba4e)]+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x241398,_0x1ad2f6,_0x2a374a){const _0x4efea4={_0x4aaf65:0x1f4},_0x24fa73=_0x289d3f;this['_echartsInstance']&&(_0x241398[_0x24fa73(0x1f4)]=_0x241398[_0x24fa73(_0x4efea4._0x4aaf65)]||{},this['_echartsInstance']['setOption'](_0x241398,_0x1ad2f6,_0x2a374a));}['getRectangle'](_0x270fff){const _0x3a49f0={_0x3ffe04:0x21e},_0x12edf3={_0x5b85a3:0x1ed},_0x462641=_0x289d3f;let _0x367cf4,_0x5f50a6,_0x4bbdf0,_0x5dcbd2;function _0xa0ce8c(_0x5f14ab){if(!Array['isArray'](_0x5f14ab))return;const _0x24eb3b=_0x5f14ab[0x0]||0x0,_0x3585fa=_0x5f14ab[0x1]||0x0;_0x24eb3b!==0x0&&_0x3585fa!==0x0&&(_0x367cf4===undefined?(_0x367cf4=_0x24eb3b,_0x5f50a6=_0x24eb3b,_0x4bbdf0=_0x3585fa,_0x5dcbd2=_0x3585fa):(_0x367cf4=Math['min'](_0x367cf4,_0x24eb3b),_0x5f50a6=Math['max'](_0x5f50a6,_0x24eb3b),_0x4bbdf0=Math['min'](_0x4bbdf0,_0x3585fa),_0x5dcbd2=Math['max'](_0x5dcbd2,_0x3585fa)));}const _0x314863=this['options'][_0x462641(0x214)];_0x314863&&_0x314863['forEach'](_0x5cfce9=>{const _0x29a74d=_0x462641;_0x5cfce9[_0x29a74d(_0x3a49f0._0x3ffe04)]&&_0x5cfce9['data']['forEach'](_0x4fb7e4=>{const _0x70cbd8=_0x29a74d;if(_0x4fb7e4['value'])_0xa0ce8c(_0x4fb7e4[_0x70cbd8(_0x12edf3._0x5b85a3)]);else _0x4fb7e4['coords']&&_0x4fb7e4[_0x70cbd8(0x205)]['forEach'](_0x49bb3c=>{_0xa0ce8c(_0x49bb3c);});});});if(_0x367cf4===0x0&&_0x4bbdf0===0x0&&_0x5f50a6===0x0&&_0x5dcbd2===0x0)return null;return _0x270fff!==null&&_0x270fff!==void 0x0&&_0x270fff[_0x462641(0x212)]?{'xmin':_0x367cf4,'xmax':_0x5f50a6,'ymin':_0x4bbdf0,'ymax':_0x5dcbd2}:Cesium['Rectangle']['fromDegrees'](_0x367cf4,_0x4bbdf0,_0x5f50a6,_0x5dcbd2);}['on'](_0x20df21,_0x176567,_0x2d8464){return this['_echartsInstance']['on'](_0x20df21,_0x176567,_0x2d8464||this),this;}['onByQuery'](_0x99efb8,_0x46442f,_0x16f629,_0x150be7){return this['_echartsInstance']['on'](_0x99efb8,_0x46442f,_0x16f629,_0x150be7||this),this;}['off'](_0x357397,_0x25088a,_0x4982ea){return this['_echartsInstance']['off'](_0x357397,_0x25088a,_0x4982ea||this),this;}}function _0x28fb(){const _0x175057=['fromDegrees','_echartsInstance','231ltXJyN','value','hasOwnProperty','echarts','removeChild','102640GpxkNh','_mars3d_scene','registerAction','mars3dMap','_mapOffset','clientWidth','echartsAutoHeight','dispose','style','zIndex','echartsDepthTest','isPointVisible','mars3d-echarts','mars3dMapRoam','4NyknRd','addEventListener','6814630MkpFvZ','div','forEach','getZr','coords','_echartsContainer','mode','setMapOffset','EchartsLayer','105CBGFFT','clientHeight','top','Cesium','lat','visible','visibility','pointerEvents','isFormat','coordinateSystem','series','dimensions','options','left','canvas','Cartographic','updateLayout','1101924NHOPcs','SceneMode','_createChartOverlay','data','lng','camera','__mapOffset','34924cHSGBF','3863196RLNRkT','12214znSVrm','BoundingRect','hidden','1173621qQXsBl','default','positionWC','scene','none','Cartesian3','get','_map','请引入\x20echarts\x20库\x20','api'];_0x28fb=function(){return _0x175057;};return _0x28fb();}mars3d__namespace['LayerUtil']['register'](_0x289d3f(0x1ef),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports[_0x289d3f(0x209)]=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x420885){const _0x39d836=_0x289d3f;if(_0x420885!=='default'&&!exports[_0x39d836(0x1ee)](_0x420885))Object['defineProperty'](exports,_0x420885,{'enumerable':!![],'get':function(){return echarts[_0x420885];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]}); | ||
'use strict';const _0x590474=_0x38c7;function _0x3382(){const _0x31c65f=['3025380gCQbTC','clientHeight','hidden','_echartsContainer','echarts','options','getRoamTransform','eachSeries','off','all','getViewRect','moveHandler','defineProperty','BoundingRect','clampToGround','_mapOffset','Rectangle','echartsDepthTest','请引入\x20echarts\x20库\x20','404958FClsds','mars3dMapRoam','BaseLayer','painter','364125MDBFSr','SceneTransforms','_map','globe','mode','hasOwnProperty','__esModule','_createChartOverlay','0px','LayerUtil','4hxPtxE','lng','canvas','onByQuery','_api','3202884nIjrOQ','58aKXncn','echartsAutoHeight','create','_pointerEvents','462994BqTVBZ','_echartsInstance','mars3dMap','api','style','80ONgvuz','camera','2618364LMnMYK','dataToPoint','746JiwPMq','layer','clientWidth','fixedHeight','keys','_mountedHook','mars3d-echarts','top','setEchartsOption','pointerEvents','33FEEuzy','scheduler','coordinateSystem','dimensions','scene'];_0x3382=function(){return _0x31c65f;};return _0x3382();}(function(_0x1cf0b9,_0x5b00e6){const _0x21a717={_0x3ae61d:0x144,_0x35d40c:0x166,_0x34c7cd:0x16a,_0x3f91a7:0x140,_0x4dad35:0x179,_0x9ab01:0x153},_0x117830=_0x38c7,_0x4c38a0=_0x1cf0b9();while(!![]){try{const _0x5b3b03=parseInt(_0x117830(_0x21a717._0x3ae61d))/0x1*(parseInt(_0x117830(0x17a))/0x2)+-parseInt(_0x117830(_0x21a717._0x35d40c))/0x3*(parseInt(_0x117830(0x174))/0x4)+-parseInt(_0x117830(_0x21a717._0x34c7cd))/0x5+parseInt(_0x117830(0x142))/0x6+-parseInt(_0x117830(0x13b))/0x7*(-parseInt(_0x117830(_0x21a717._0x3f91a7))/0x8)+parseInt(_0x117830(_0x21a717._0x4dad35))/0x9+-parseInt(_0x117830(_0x21a717._0x9ab01))/0xa*(parseInt(_0x117830(0x14e))/0xb);if(_0x5b3b03===_0x5b00e6)break;else _0x4c38a0['push'](_0x4c38a0['shift']());}catch(_0x6d1aa3){_0x4c38a0['push'](_0x4c38a0['shift']());}}}(_0x3382,0x57ddb));function _interopNamespace(_0x2b8a73){const _0x380dc6=_0x38c7;if(_0x2b8a73&&_0x2b8a73[_0x380dc6(0x170)])return _0x2b8a73;var _0x23c2b9=Object['create'](null);return _0x2b8a73&&Object['keys'](_0x2b8a73)['forEach'](function(_0x17f729){const _0x304e80=_0x380dc6;if(_0x17f729!=='default'){var _0x1946da=Object['getOwnPropertyDescriptor'](_0x2b8a73,_0x17f729);Object[_0x304e80(0x15f)](_0x23c2b9,_0x17f729,_0x1946da['get']?_0x1946da:{'enumerable':!![],'get':function(){return _0x2b8a73[_0x17f729];}});}}),_0x23c2b9['default']=_0x2b8a73,_0x23c2b9;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x1fc5fd,_0x4b3be4){const _0x184bd2={_0x4c3bf4:0x175},_0x32b11d=_0x38c7;this['_mars3d_scene']=_0x1fc5fd,this[_0x32b11d(0x151)]=[_0x32b11d(_0x184bd2._0x4c3bf4),'lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x4b3be4;}['setMapOffset'](_0x309dd1){this['_mapOffset']=_0x309dd1;}['getBMap'](){return this['_mars3d_scene'];}[_0x590474(0x143)](_0x4cda42){const _0x5a2b9f={_0x3c3b27:0x16e,_0x46e3e6:0x16d},_0xe4f45=_0x590474,_0x56ccc9=this['_mars3d_scene'],_0x3aa662=[NaN,NaN];let _0x41d7a4=_0x56ccc9['echartsFixedHeight'];_0x56ccc9['echartsAutoHeight']&&(_0x41d7a4=_0x56ccc9['globe']['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x4cda42[0x0],_0x4cda42[0x1])));const _0x54de01=Cesium$1['Cartesian3']['fromDegrees'](_0x4cda42[0x0],_0x4cda42[0x1],_0x41d7a4);if(!_0x54de01)return _0x3aa662;const _0x189e1a=Cesium$1[_0xe4f45(0x16b)]['wgs84ToWindowCoordinates'](_0x56ccc9,_0x54de01);if(!_0x189e1a)return _0x3aa662;if(_0x56ccc9['echartsDepthTest']&&_0x56ccc9[_0xe4f45(_0x5a2b9f._0x3c3b27)]===Cesium$1['SceneMode']['SCENE3D']){const _0x4460e0=new Cesium$1['EllipsoidalOccluder'](_0x56ccc9[_0xe4f45(_0x5a2b9f._0x46e3e6)]['ellipsoid'],_0x56ccc9[_0xe4f45(0x141)]['positionWC']),_0x1c5370=_0x4460e0['isPointVisible'](_0x54de01);if(!_0x1c5370)return _0x3aa662;}return[_0x189e1a['x']-this[_0xe4f45(0x162)][0x0],_0x189e1a['y']-this['_mapOffset'][0x1]];}[_0x590474(0x15d)](){const _0x4ed655={_0x212295:0x178},_0x221c0e=_0x590474,_0x22e640=this[_0x221c0e(_0x4ed655._0x212295)];return new echarts__namespace['graphic'][(_0x221c0e(0x160))](0x0,0x0,_0x22e640['getWidth'](),_0x22e640['getHeight']());}[_0x590474(0x159)](){const _0x122b4c=_0x590474;return echarts__namespace['matrix'][_0x122b4c(0x17c)]();}}CompositeCoordinateSystem[_0x590474(0x151)]=[_0x590474(0x175),'lat'],CompositeCoordinateSystem['create']=function(_0x4fdaa6,_0x3c9559){const _0x372348={_0xabde70:0x150},_0x3dc048={_0x3ad8b1:0x169},_0x4d4907=_0x590474;let _0x1393bd;const _0x164914=_0x4fdaa6['scheduler']['ecInstance']['_mars3d_scene'];_0x4fdaa6['eachComponent'](_0x4d4907(0x13d),function(_0x7c6912){const _0x408608=_0x4d4907,_0x3c2314=_0x3c9559['getZr']()[_0x408608(_0x3dc048._0x3ad8b1)];if(!_0x3c2314)return;!_0x1393bd&&(_0x1393bd=new CompositeCoordinateSystem(_0x164914,_0x3c9559)),_0x7c6912['coordinateSystem']=_0x1393bd,_0x1393bd['setMapOffset'](_0x7c6912['__mapOffset']||[0x0,0x0]);}),_0x4fdaa6[_0x4d4907(0x15a)](function(_0x3f83de){const _0x2aeb15=_0x4d4907;_0x3f83de['get'](_0x2aeb15(0x150))==='mars3dMap'&&(!_0x1393bd&&(_0x1393bd=new CompositeCoordinateSystem(_0x164914,_0x3c9559)),_0x3f83de[_0x2aeb15(_0x372348._0xabde70)]=_0x1393bd);});};function _0x38c7(_0x303156,_0x1c1437){const _0x33827b=_0x3382();return _0x38c7=function(_0x38c7c0,_0x10f3d1){_0x38c7c0=_0x38c7c0-0x13b;let _0x38ab11=_0x33827b[_0x38c7c0];return _0x38ab11;},_0x38c7(_0x303156,_0x1c1437);}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem'](_0x590474(0x13d),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x332a08,_0x17deec){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x1f5118,_0x3cc739){const _0x58f4f0={_0x116516:0x13e},_0x50bd1c=_0x590474;this[_0x50bd1c(_0x58f4f0._0x116516)]=_0x3cc739,this['scene']=_0x1f5118[_0x50bd1c(0x14f)]['ecInstance']['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x4e4817,_0x34cedc){const _0x7db937={_0x1a9579:0x167},_0x1ae9cd=_0x590474;this['api']['dispatchAction']({'type':_0x1ae9cd(_0x7db937._0x1a9579)});},'render':function(_0x5bdef5,_0x51e492,_0xd567b7){},'dispose':function(_0x4d2a18){const _0x2bdc97={_0x219a57:0x15e},_0x48e196=_0x590474;this['scene']['postRender']['removeEventListener'](this[_0x48e196(_0x2bdc97._0x219a57)],this);}});else throw new Error(_0x590474(0x165));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x590474(0x168)];class EchartsLayer extends BaseLayer{constructor(_0x1effdb={}){super(_0x1effdb),this['_pointerEvents']=this['options']['pointerEvents'];}get[_0x590474(0x145)](){const _0x59c362=_0x590474;return this[_0x59c362(0x13c)];}get[_0x590474(0x14d)](){const _0x594f26={_0x4c9bc9:0x17d},_0x204452=_0x590474;return this[_0x204452(_0x594f26._0x4c9bc9)];}set['pointerEvents'](_0xe75507){const _0x9effce={_0xcae6a1:0x13f},_0x2f51c6=_0x590474;this['_pointerEvents']=_0xe75507,this['_echartsContainer']&&(_0xe75507?this['_echartsContainer'][_0x2f51c6(_0x9effce._0xcae6a1)]['pointerEvents']='all':this['_echartsContainer']['style']['pointerEvents']='none');}['_setOptionsHook'](_0x484b13,_0x863d53){this['setEchartsOption'](_0x484b13);}['_showHook'](_0x50ff2b){const _0x381b2a=_0x590474;_0x50ff2b?this[_0x381b2a(0x156)]['style']['visibility']='visible':this['_echartsContainer']['style']['visibility']=_0x381b2a(0x155);}[_0x590474(0x149)](){const _0xf745b7={_0x4ccf6a:0x161},_0x1e64fa=_0x590474;this['_map'][_0x1e64fa(0x152)][_0x1e64fa(0x164)]=this['options']['depthTest']??!![],this[_0x1e64fa(0x16c)]['scene'][_0x1e64fa(0x17b)]=this[_0x1e64fa(0x158)][_0x1e64fa(_0xf745b7._0x4ccf6a)]??![],this['_map']['scene']['echartsFixedHeight']=this['options'][_0x1e64fa(0x147)]??0x0;}['_addedHook'](){const _0x345c9e={_0x5d00d0:0x171},_0x391e6e=_0x590474;this['_echartsContainer']=this[_0x391e6e(_0x345c9e._0x5d00d0)](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this[_0x391e6e(0x14c)](this['options']);}['_removedHook'](){const _0x187ffe={_0x25c724:0x13c},_0x53960f=_0x590474;this[_0x53960f(0x13c)]&&(this[_0x53960f(_0x187ffe._0x25c724)]['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this[_0x53960f(0x156)]),delete this[_0x53960f(0x156)]);}['_createChartOverlay'](){const _0xf2b6f4={_0x576d19:0x14a,_0x4864e5:0x13f,_0x5228fc:0x146,_0x1702b2:0x15c},_0x22b36f=_0x590474,_0xd23e57=mars3d__namespace['DomUtil'][_0x22b36f(0x17c)]('div',_0x22b36f(_0xf2b6f4._0x576d19),this['_map']['container']);return _0xd23e57['id']=this['id'],_0xd23e57['style']['position']='absolute',_0xd23e57[_0x22b36f(_0xf2b6f4._0x4864e5)][_0x22b36f(0x14b)]=_0x22b36f(0x172),_0xd23e57[_0x22b36f(_0xf2b6f4._0x4864e5)]['left']='0px',_0xd23e57[_0x22b36f(0x13f)]['width']=this['_map'][_0x22b36f(0x152)]['canvas'][_0x22b36f(_0xf2b6f4._0x5228fc)]+'px',_0xd23e57[_0x22b36f(0x13f)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0xd23e57['style']['pointerEvents']=this['_pointerEvents']?_0x22b36f(_0xf2b6f4._0x1702b2):'none',_0xd23e57['style']['zIndex']=this[_0x22b36f(0x158)]['zIndex']??0x9,_0xd23e57;}['resize'](){const _0x1766c6={_0x413f16:0x156,_0x5b5bda:0x176},_0x474c6b=_0x590474;if(!this['_echartsInstance'])return;this[_0x474c6b(_0x1766c6._0x413f16)]['style']['width']=this['_map'][_0x474c6b(0x152)]['canvas']['clientWidth']+'px',this['_echartsContainer']['style']['height']=this['_map'][_0x474c6b(0x152)][_0x474c6b(_0x1766c6._0x5b5bda)][_0x474c6b(0x154)]+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x33f69c,_0x113f79,_0x4c64e2){const _0x40797d=_0x590474;this['_echartsInstance']&&(_0x33f69c['mars3dMap']=_0x33f69c['mars3dMap']||{},this[_0x40797d(0x13c)]['setOption'](_0x33f69c,_0x113f79,_0x4c64e2));}['getRectangle'](_0xedf5ca){const _0x2f4642={_0x3882e0:0x158,_0x1e95fa:0x163},_0x14263e=_0x590474;let _0x22be16,_0x5f3949,_0x2a510a,_0x591bfc;function _0xfd4b7c(_0x4d0610){if(!Array['isArray'](_0x4d0610))return;const _0x260438=_0x4d0610[0x0]||0x0,_0x2e1af4=_0x4d0610[0x1]||0x0;_0x260438!==0x0&&_0x2e1af4!==0x0&&(_0x22be16===undefined?(_0x22be16=_0x260438,_0x5f3949=_0x260438,_0x2a510a=_0x2e1af4,_0x591bfc=_0x2e1af4):(_0x22be16=Math['min'](_0x22be16,_0x260438),_0x5f3949=Math['max'](_0x5f3949,_0x260438),_0x2a510a=Math['min'](_0x2a510a,_0x2e1af4),_0x591bfc=Math['max'](_0x591bfc,_0x2e1af4)));}const _0x37499c=this[_0x14263e(_0x2f4642._0x3882e0)]['series'];_0x37499c&&_0x37499c['forEach'](_0x531c39=>{_0x531c39['data']&&_0x531c39['data']['forEach'](_0x59f523=>{if(_0x59f523['value'])_0xfd4b7c(_0x59f523['value']);else _0x59f523['coords']&&_0x59f523['coords']['forEach'](_0x30b892=>{_0xfd4b7c(_0x30b892);});});});if(_0x22be16===0x0&&_0x2a510a===0x0&&_0x5f3949===0x0&&_0x591bfc===0x0)return null;return _0xedf5ca!==null&&_0xedf5ca!==void 0x0&&_0xedf5ca['isFormat']?{'xmin':_0x22be16,'xmax':_0x5f3949,'ymin':_0x2a510a,'ymax':_0x591bfc}:Cesium[_0x14263e(_0x2f4642._0x1e95fa)]['fromDegrees'](_0x22be16,_0x2a510a,_0x5f3949,_0x591bfc);}['on'](_0x3dc1b4,_0x56b584,_0x468558){const _0x532662=_0x590474;return this[_0x532662(0x13c)]['on'](_0x3dc1b4,_0x56b584,_0x468558||this),this;}[_0x590474(0x177)](_0x3053bc,_0x53b339,_0x87cce3,_0xff6dce){return this['_echartsInstance']['on'](_0x3053bc,_0x53b339,_0x87cce3,_0xff6dce||this),this;}[_0x590474(0x15b)](_0xf5baa4,_0x359276,_0x2616b1){const _0x4231c9=_0x590474;return this['_echartsInstance'][_0x4231c9(0x15b)](_0xf5baa4,_0x359276,_0x2616b1||this),this;}}mars3d__namespace[_0x590474(0x173)]['register'](_0x590474(0x157),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0x590474(0x148)](echarts)['forEach'](function(_0x26e55e){const _0x245ffa={_0x142b7a:0x16f},_0x199add=_0x590474;if(_0x26e55e!=='default'&&!exports[_0x199add(_0x245ffa._0x142b7a)](_0x26e55e))Object['defineProperty'](exports,_0x26e55e,{'enumerable':!![],'get':function(){return echarts[_0x26e55e];}});}),Object[_0x590474(0x15f)](exports,_0x590474(0x170),{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.5.17", | ||
"version": "3.5.18", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.5.17" | ||
"mars3d": "~3.5.18" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16775
63