mars3d-echarts
Advanced tools
Comparing version 3.5.16 to 3.5.17
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.5.16 | ||
* 编译日期:2023-07-17 18:16:42 | ||
* 版本信息:v3.5.17 | ||
* 编译日期:2023-07-24 22:20:56 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';const _0x4f2335=_0x1bb9;(function(_0x5efa0e,_0x900076){const _0x4d0de3={_0x363966:0x1e6,_0x1eaa9e:0x212,_0x21e39f:0x20c,_0x407c9e:0x201,_0x37ff5c:0x206,_0x375552:0x1e8,_0x3dee35:0x1fd,_0x3ad19c:0x225},_0x13882f=_0x1bb9,_0x5eb4d5=_0x5efa0e();while(!![]){try{const _0x504edd=parseInt(_0x13882f(_0x4d0de3._0x363966))/0x1*(-parseInt(_0x13882f(_0x4d0de3._0x1eaa9e))/0x2)+parseInt(_0x13882f(_0x4d0de3._0x21e39f))/0x3+-parseInt(_0x13882f(_0x4d0de3._0x407c9e))/0x4*(parseInt(_0x13882f(_0x4d0de3._0x37ff5c))/0x5)+parseInt(_0x13882f(0x1e1))/0x6*(-parseInt(_0x13882f(_0x4d0de3._0x375552))/0x7)+-parseInt(_0x13882f(_0x4d0de3._0x3dee35))/0x8*(-parseInt(_0x13882f(0x20d))/0x9)+-parseInt(_0x13882f(0x203))/0xa*(parseInt(_0x13882f(0x214))/0xb)+parseInt(_0x13882f(0x204))/0xc*(parseInt(_0x13882f(_0x4d0de3._0x3ad19c))/0xd);if(_0x504edd===_0x900076)break;else _0x5eb4d5['push'](_0x5eb4d5['shift']());}catch(_0x59ef69){_0x5eb4d5['push'](_0x5eb4d5['shift']());}}}(_0x47e4,0x2c8fe));function _interopNamespace(_0x3d116c){if(_0x3d116c&&_0x3d116c['__esModule'])return _0x3d116c;var _0x357023=Object['create'](null);return _0x3d116c&&Object['keys'](_0x3d116c)['forEach'](function(_0x4ca82d){if(_0x4ca82d!=='default'){var _0x3cd3aa=Object['getOwnPropertyDescriptor'](_0x3d116c,_0x4ca82d);Object['defineProperty'](_0x357023,_0x4ca82d,_0x3cd3aa['get']?_0x3cd3aa:{'enumerable':!![],'get':function(){return _0x3d116c[_0x4ca82d];}});}}),_0x357023['default']=_0x3d116c,_0x357023;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x1bb9(_0x239f20,_0x20773e){const _0x47e417=_0x47e4();return _0x1bb9=function(_0x1bb94d,_0x27b972){_0x1bb94d=_0x1bb94d-0x1e0;let _0x9ff464=_0x47e417[_0x1bb94d];return _0x9ff464;},_0x1bb9(_0x239f20,_0x20773e);}function _0x47e4(){const _0x468741=['lat','738jheqFS','postRender','_map','ellipsoid','echartsFixedHeight','443cwFCxa','_mars3d_scene','14119yCVNnc','api','dispatchAction','options','BaseLayer','mars3dMapRoam','matrix','extendComponentView','echarts','_echartsContainer','depthTest','getRectangle','painter','pointerEvents','style','mars3dMap','canvas','_echartsInstance','scene','zIndex','data','8XeFKGb','coords','wgs84ToWindowCoordinates','Cartographic','708KsOnTh','clientWidth','389520hxMLBH','12Kuenjy','EllipsoidalOccluder','4415btRvxv','all','create','setOption','__mapOffset','0px','1035579yCyEXc','3195837eWpHel','_createChartOverlay','ecInstance','BoundingRect','off','538GiFwQc','min','11AkWhIz','SCENE3D','forEach','globe','Cesium','echartsAutoHeight','EchartsLayer','hasOwnProperty','getWidth','_setOptionsHook','_pointerEvents','dimensions','mode','none','lng','eachComponent','getHeight','581633xvAdBs','positionWC'];_0x47e4=function(){return _0x468741;};return _0x47e4();}const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x2450b0,_0x491a9e){this['_mars3d_scene']=_0x2450b0,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x491a9e;}['setMapOffset'](_0x16c89d){this['_mapOffset']=_0x16c89d;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x319b85){const _0x5b0198={_0x88437:0x200,_0x170fdc:0x1ff,_0x45c860:0x215,_0x4495e6:0x205,_0x2c2175:0x226},_0x1ad052=_0x1bb9,_0x4974b2=this['_mars3d_scene'],_0x301c09=[NaN,NaN];let _0x3c4b1c=_0x4974b2['echartsFixedHeight'];_0x4974b2['echartsAutoHeight']&&(_0x3c4b1c=_0x4974b2[_0x1ad052(0x217)][_0x1ad052(0x224)](Cesium$1[_0x1ad052(_0x5b0198._0x88437)]['fromDegrees'](_0x319b85[0x0],_0x319b85[0x1])));const _0x58845f=Cesium$1['Cartesian3']['fromDegrees'](_0x319b85[0x0],_0x319b85[0x1],_0x3c4b1c);if(!_0x58845f)return _0x301c09;const _0x4842a3=Cesium$1['SceneTransforms'][_0x1ad052(_0x5b0198._0x170fdc)](_0x4974b2,_0x58845f);if(!_0x4842a3)return _0x301c09;if(_0x4974b2['echartsDepthTest']&&_0x4974b2[_0x1ad052(0x220)]===Cesium$1['SceneMode'][_0x1ad052(_0x5b0198._0x45c860)]){const _0x444d3d=new Cesium$1[(_0x1ad052(_0x5b0198._0x4495e6))](_0x4974b2['globe'][_0x1ad052(0x1e4)],_0x4974b2['camera'][_0x1ad052(_0x5b0198._0x2c2175)]),_0x18adbf=_0x444d3d['isPointVisible'](_0x58845f);if(!_0x18adbf)return _0x301c09;}return[_0x4842a3['x']-this['_mapOffset'][0x0],_0x4842a3['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x3b7abe=_0x1bb9,_0xc42c25=this['_api'];return new echarts__namespace['graphic'][(_0x3b7abe(0x210))](0x0,0x0,_0xc42c25[_0x3b7abe(0x21c)](),_0xc42c25['getHeight']());}['getRoamTransform'](){const _0x50b962=_0x1bb9;return echarts__namespace[_0x50b962(0x1ee)][_0x50b962(0x208)]();}}CompositeCoordinateSystem[_0x4f2335(0x21f)]=[_0x4f2335(0x222),_0x4f2335(0x1e0)],CompositeCoordinateSystem['create']=function(_0x2a4b0a,_0x96bb89){const _0x5a2995={_0x5b3bd9:0x223},_0x5d0758=_0x4f2335;let _0x189697;const _0x1acd3c=_0x2a4b0a['scheduler']['ecInstance']['_mars3d_scene'];_0x2a4b0a[_0x5d0758(_0x5a2995._0x5b3bd9)](_0x5d0758(0x1f7),function(_0x13deb8){const _0x56d362=_0x5d0758,_0x1ed626=_0x96bb89['getZr']()[_0x56d362(0x1f4)];if(!_0x1ed626)return;!_0x189697&&(_0x189697=new CompositeCoordinateSystem(_0x1acd3c,_0x96bb89)),_0x13deb8['coordinateSystem']=_0x189697,_0x189697['setMapOffset'](_0x13deb8[_0x56d362(0x20a)]||[0x0,0x0]);}),_0x2a4b0a['eachSeries'](function(_0x50f9fc){_0x50f9fc['get']('coordinateSystem')==='mars3dMap'&&(!_0x189697&&(_0x189697=new CompositeCoordinateSystem(_0x1acd3c,_0x96bb89)),_0x50f9fc['coordinateSystem']=_0x189697);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x4f2335(0x1ed),'event':'mars3dMapRoam','update':'updateLayout'},function(_0x138174,_0xc19c7){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x4f2335(0x1ef)]({'type':'mars3dMap','init':function(_0x1bfc24,_0x3fe60d){const _0x2249e8={_0x176e5a:0x20f,_0x40577e:0x1e7},_0x4a5fd8=_0x4f2335;this[_0x4a5fd8(0x1e9)]=_0x3fe60d,this['scene']=_0x1bfc24['scheduler'][_0x4a5fd8(_0x2249e8._0x176e5a)][_0x4a5fd8(_0x2249e8._0x40577e)],this[_0x4a5fd8(0x1fa)][_0x4a5fd8(0x1e2)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x4b6705,_0x163976){const _0x1f15a5={_0x59e8c8:0x1e9,_0x14e356:0x1ea},_0x2f6640=_0x4f2335;this[_0x2f6640(_0x1f15a5._0x59e8c8)][_0x2f6640(_0x1f15a5._0x14e356)]({'type':'mars3dMapRoam'});},'render':function(_0xd16e54,_0x4c5b3c,_0x22d9ce){},'dispose':function(_0x37ec75){const _0x14ffa1=_0x4f2335;this['scene'][_0x14ffa1(0x1e2)]['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace[_0x4f2335(0x218)],BaseLayer=mars3d__namespace['layer'][_0x4f2335(0x1ec)];class EchartsLayer extends BaseLayer{constructor(_0x677688={}){super(_0x677688),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){const _0x44fb26=_0x4f2335;return this[_0x44fb26(0x1f9)];}get[_0x4f2335(0x1f5)](){const _0xfac718={_0x5b3d25:0x21e},_0x3777c6=_0x4f2335;return this[_0x3777c6(_0xfac718._0x5b3d25)];}set[_0x4f2335(0x1f5)](_0x57491a){const _0xfab929={_0x2fd347:0x207},_0xf3671f=_0x4f2335;this['_pointerEvents']=_0x57491a,this['_echartsContainer']&&(_0x57491a?this['_echartsContainer']['style']['pointerEvents']=_0xf3671f(_0xfab929._0x2fd347):this[_0xf3671f(0x1f1)]['style']['pointerEvents']='none');}[_0x4f2335(0x21d)](_0x44044a,_0xc7f59b){this['setEchartsOption'](_0x44044a);}['_showHook'](_0x37c463){_0x37c463?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer']['style']['visibility']='hidden';}['_mountedHook'](){const _0x25a9cc={_0x404e77:0x219,_0x3415b7:0x1eb,_0x18b72b:0x1fa,_0x581deb:0x1e5},_0x27aa27=_0x4f2335;this[_0x27aa27(0x1e3)]['scene']['echartsDepthTest']=this['options'][_0x27aa27(0x1f2)]??!![],this['_map']['scene'][_0x27aa27(_0x25a9cc._0x404e77)]=this[_0x27aa27(_0x25a9cc._0x3415b7)]['clampToGround']??![],this[_0x27aa27(0x1e3)][_0x27aa27(_0x25a9cc._0x18b72b)][_0x27aa27(_0x25a9cc._0x581deb)]=this[_0x27aa27(0x1eb)]['fixedHeight']??0x0;}['_addedHook'](){const _0x491d62={_0x1549da:0x1f1,_0x22f8b7:0x1e3,_0x2dfc38:0x1fa},_0x48bbb7=_0x4f2335;this[_0x48bbb7(_0x491d62._0x1549da)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this[_0x48bbb7(0x1f9)][_0x48bbb7(0x1e7)]=this[_0x48bbb7(_0x491d62._0x22f8b7)][_0x48bbb7(_0x491d62._0x2dfc38)],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x41b0a0={_0x13ecd5:0x1e3},_0x4a9483=_0x4f2335;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x4a9483(_0x41b0a0._0x13ecd5)]['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x4f2335(0x20e)](){const _0x9ad12b={_0x19ca98:0x1f6,_0x1f47fc:0x20b,_0x4af20a:0x1eb},_0x39bc00=_0x4f2335,_0x5981d0=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map']['container']);return _0x5981d0['id']=this['id'],_0x5981d0[_0x39bc00(_0x9ad12b._0x19ca98)]['position']='absolute',_0x5981d0['style']['top']=_0x39bc00(_0x9ad12b._0x1f47fc),_0x5981d0['style']['left']=_0x39bc00(0x20b),_0x5981d0[_0x39bc00(0x1f6)]['width']=this[_0x39bc00(0x1e3)]['scene']['canvas']['clientWidth']+'px',_0x5981d0['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x5981d0['style']['pointerEvents']=this['_pointerEvents']?'all':_0x39bc00(0x221),_0x5981d0['style'][_0x39bc00(0x1fb)]=this[_0x39bc00(_0x9ad12b._0x4af20a)][_0x39bc00(0x1fb)]??0x9,_0x5981d0;}['resize'](){const _0x5ccea0={_0x2b4b43:0x1f6,_0x4206c1:0x1f9},_0x133861=_0x4f2335;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this['_map']['scene'][_0x133861(0x1f8)][_0x133861(0x202)]+'px',this['_echartsContainer'][_0x133861(_0x5ccea0._0x2b4b43)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this[_0x133861(_0x5ccea0._0x4206c1)]['resize']();}['setEchartsOption'](_0x57f5ed,_0x5011af,_0x13a5b4){const _0x33596d={_0x5b1c10:0x1f9,_0x45c635:0x209},_0x442e2e=_0x4f2335;this['_echartsInstance']&&(_0x57f5ed['mars3dMap']=_0x57f5ed['mars3dMap']||{},this[_0x442e2e(_0x33596d._0x5b1c10)][_0x442e2e(_0x33596d._0x45c635)](_0x57f5ed,_0x5011af,_0x13a5b4));}[_0x4f2335(0x1f3)](_0x45c783){const _0x32833a={_0x2ec10b:0x1fc,_0x2ee4a8:0x216},_0x59ba65={_0x4de168:0x213};let _0x302760,_0x2d745f,_0x35105e,_0x21adf0;function _0x47f980(_0x4f3106){const _0x324fc4=_0x1bb9;if(!Array['isArray'](_0x4f3106))return;const _0x36a90e=_0x4f3106[0x0]||0x0,_0x4258be=_0x4f3106[0x1]||0x0;_0x36a90e!==0x0&&_0x4258be!==0x0&&(_0x302760===undefined?(_0x302760=_0x36a90e,_0x2d745f=_0x36a90e,_0x35105e=_0x4258be,_0x21adf0=_0x4258be):(_0x302760=Math[_0x324fc4(_0x59ba65._0x4de168)](_0x302760,_0x36a90e),_0x2d745f=Math['max'](_0x2d745f,_0x36a90e),_0x35105e=Math['min'](_0x35105e,_0x4258be),_0x21adf0=Math['max'](_0x21adf0,_0x4258be)));}const _0x3ecc76=this['options']['series'];_0x3ecc76&&_0x3ecc76['forEach'](_0x40afa1=>{const _0x1209ab=_0x1bb9;_0x40afa1['data']&&_0x40afa1[_0x1209ab(_0x32833a._0x2ec10b)][_0x1209ab(_0x32833a._0x2ee4a8)](_0x2f095c=>{const _0x5dd63a=_0x1209ab;if(_0x2f095c['value'])_0x47f980(_0x2f095c['value']);else _0x2f095c[_0x5dd63a(0x1fe)]&&_0x2f095c['coords']['forEach'](_0x45d523=>{_0x47f980(_0x45d523);});});});if(_0x302760===0x0&&_0x35105e===0x0&&_0x2d745f===0x0&&_0x21adf0===0x0)return null;return _0x45c783!==null&&_0x45c783!==void 0x0&&_0x45c783['isFormat']?{'xmin':_0x302760,'xmax':_0x2d745f,'ymin':_0x35105e,'ymax':_0x21adf0}:Cesium['Rectangle']['fromDegrees'](_0x302760,_0x35105e,_0x2d745f,_0x21adf0);}['on'](_0x1cf4b6,_0x5d7b8a,_0x2ef441){return this['_echartsInstance']['on'](_0x1cf4b6,_0x5d7b8a,_0x2ef441||this),this;}['onByQuery'](_0x31e116,_0x4d3429,_0x3ffe3a,_0x1b8e7b){return this['_echartsInstance']['on'](_0x31e116,_0x4d3429,_0x3ffe3a,_0x1b8e7b||this),this;}[_0x4f2335(0x211)](_0x4653f3,_0x57be87,_0x345714){const _0x206174={_0xf3b70a:0x211},_0x24c9da=_0x4f2335;return this['_echartsInstance'][_0x24c9da(_0x206174._0xf3b70a)](_0x4653f3,_0x57be87,_0x345714||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x4f2335(0x1f0),EchartsLayer),mars3d__namespace['layer'][_0x4f2335(0x21a)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0x4f2335(0x216)](function(_0x3fdd3a){const _0x53981c={_0x47a36e:0x21b},_0x301b26=_0x4f2335;if(_0x3fdd3a!=='default'&&!exports[_0x301b26(_0x53981c._0x47a36e)](_0x3fdd3a))Object['defineProperty'](exports,_0x3fdd3a,{'enumerable':!![],'get':function(){return echarts[_0x3fdd3a];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]}); | ||
'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':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.5.16", | ||
"version": "3.5.17", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.5.16" | ||
"mars3d": "~3.5.17" | ||
}, | ||
@@ -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
17266