mars3d-echarts
Advanced tools
Comparing version 3.7.6 to 3.7.7
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.7.6 | ||
* 编译日期:2024-03-12 20:54:02 | ||
* 版本信息:v3.7.7 | ||
* 编译日期:2024-03-19 15:55:34 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2024-01-15 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';const _0x49b2fb=_0x72b4;(function(_0x2973fa,_0x239a4e){const _0x4ae821={_0x38f5ba:0xac,_0x346206:0xa9,_0x494616:0x9c,_0x59c4a8:0x87,_0x1c22a3:0xb8,_0x355fb4:0xb9,_0x3e9963:0x85},_0x20ce35=_0x72b4,_0x1592bc=_0x2973fa();while(!![]){try{const _0x48199e=-parseInt(_0x20ce35(0xa5))/0x1+parseInt(_0x20ce35(_0x4ae821._0x38f5ba))/0x2*(-parseInt(_0x20ce35(0x90))/0x3)+parseInt(_0x20ce35(_0x4ae821._0x346206))/0x4+parseInt(_0x20ce35(_0x4ae821._0x494616))/0x5+parseInt(_0x20ce35(_0x4ae821._0x59c4a8))/0x6*(-parseInt(_0x20ce35(_0x4ae821._0x1c22a3))/0x7)+-parseInt(_0x20ce35(_0x4ae821._0x355fb4))/0x8+-parseInt(_0x20ce35(_0x4ae821._0x3e9963))/0x9*(-parseInt(_0x20ce35(0xc8))/0xa);if(_0x48199e===_0x239a4e)break;else _0x1592bc['push'](_0x1592bc['shift']());}catch(_0x1a74be){_0x1592bc['push'](_0x1592bc['shift']());}}}(_0x4f3b,0x457f6));function _interopNamespace(_0x1d7738){if(_0x1d7738&&_0x1d7738['__esModule'])return _0x1d7738;var _0xb5d938=Object['create'](null);return _0x1d7738&&Object['keys'](_0x1d7738)['forEach'](function(_0x4eb85e){if(_0x4eb85e!=='default'){var _0x13f0f3=Object['getOwnPropertyDescriptor'](_0x1d7738,_0x4eb85e);Object['defineProperty'](_0xb5d938,_0x4eb85e,_0x13f0f3['get']?_0x13f0f3:{'enumerable':!![],'get':function(){return _0x1d7738[_0x4eb85e];}});}}),_0xb5d938['default']=_0x1d7738,_0xb5d938;}function _0x72b4(_0x1e997e,_0x25dd02){const _0x4f3bcd=_0x4f3b();return _0x72b4=function(_0x72b4ee,_0xbbf3c){_0x72b4ee=_0x72b4ee-0x83;let _0x11af7c=_0x4f3bcd[_0x72b4ee];return _0x11af7c;},_0x72b4(_0x1e997e,_0x25dd02);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x426b35,_0x230103){const _0x35a056={_0x84b11d:0x95,_0xc7a246:0x91,_0x4823e5:0xc7},_0xa52380=_0x72b4;this[_0xa52380(_0x35a056._0x84b11d)]=_0x426b35,this[_0xa52380(_0x35a056._0xc7a246)]=['lng',_0xa52380(_0x35a056._0x4823e5)],this['_mapOffset']=[0x0,0x0],this[_0xa52380(0xc6)]=_0x230103;}[_0x49b2fb(0x86)](_0x2c54a8){const _0x11faed={_0x33abfd:0x8c},_0x55f362=_0x49b2fb;this[_0x55f362(_0x11faed._0x33abfd)]=_0x2c54a8;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x210997){const _0x471f94={_0x345133:0xab,_0x52183c:0xbf,_0x58c2af:0xa8,_0x5d9ecc:0x92},_0x314356=_0x49b2fb,_0x2fc3f4=this['_mars3d_scene'],_0x45bcac=[NaN,NaN];let _0x44906d=_0x2fc3f4['echartsFixedHeight'];_0x2fc3f4['echartsAutoHeight']&&(_0x44906d=_0x2fc3f4['getHeight'](Cesium$1['Cartographic'][_0x314356(0x96)](_0x210997[0x0],_0x210997[0x1])));const _0x597c47=Cesium$1[_0x314356(_0x471f94._0x345133)]['fromDegrees'](_0x210997[0x0],_0x210997[0x1],_0x44906d);if(!_0x597c47)return _0x45bcac;const _0x4846fc=Cesium$1['SceneTransforms'][_0x314356(_0x471f94._0x52183c)](_0x2fc3f4,_0x597c47);if(!_0x4846fc)return _0x45bcac;if(_0x2fc3f4['echartsDepthTest']&&_0x2fc3f4[_0x314356(_0x471f94._0x58c2af)]===Cesium$1['SceneMode']['SCENE3D']){const _0x42ae69=new Cesium$1[(_0x314356(_0x471f94._0x5d9ecc))](_0x2fc3f4[_0x314356(0xca)]['ellipsoid'],_0x2fc3f4['camera'][_0x314356(0x8b)]),_0x822ac8=_0x42ae69[_0x314356(0x83)](_0x597c47);if(!_0x822ac8)return _0x45bcac;}return[_0x4846fc['x']-this['_mapOffset'][0x0],_0x4846fc['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x15e3b9={_0x253c5d:0xa2},_0x4e133e=_0x49b2fb,_0x44f2e7=this['_api'];return new echarts__namespace[(_0x4e133e(_0x15e3b9._0x253c5d))][(_0x4e133e(0x94))](0x0,0x0,_0x44f2e7['getWidth'](),_0x44f2e7[_0x4e133e(0xbb)]());}['getRoamTransform'](){const _0x49bb8c={_0x1033aa:0x9b},_0x449235=_0x49b2fb;return echarts__namespace['matrix'][_0x449235(_0x49bb8c._0x1033aa)]();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x1d2147,_0x156244){const _0x461499={_0x2e6701:0xb5},_0x6c66a9={_0x534495:0xb1},_0x34a7b2=_0x49b2fb;let _0x5564a1;const _0x1f3a6d=_0x1d2147['scheduler']['ecInstance']['_mars3d_scene'];_0x1d2147[_0x34a7b2(0xb0)](_0x34a7b2(0x8e),function(_0x2a2acf){const _0x57a3d5=_0x34a7b2,_0x387579=_0x156244[_0x57a3d5(0xb7)]()['painter'];if(!_0x387579)return;!_0x5564a1&&(_0x5564a1=new CompositeCoordinateSystem(_0x1f3a6d,_0x156244)),_0x2a2acf[_0x57a3d5(0xb3)]=_0x5564a1,_0x5564a1['setMapOffset'](_0x2a2acf[_0x57a3d5(_0x6c66a9._0x534495)]||[0x0,0x0]);}),_0x1d2147['eachSeries'](function(_0x5af2ac){const _0x2d9106=_0x34a7b2;_0x5af2ac[_0x2d9106(_0x461499._0x2e6701)](_0x2d9106(0xb3))==='mars3dMap'&&(!_0x5564a1&&(_0x5564a1=new CompositeCoordinateSystem(_0x1f3a6d,_0x156244)),_0x5af2ac[_0x2d9106(0xb3)]=_0x5564a1);});};function _0x4f3b(){const _0x50afa2=['onByQuery','none','_map','create','782555gvpYEH','style','options','isArray','forEach','moveHandler','graphic','BaseLayer','setEchartsOption','169381sKltok','canvas','updateLayout','mode','2127560iMSHKZ','resize','Cartesian3','10cnsQTA','echartsAutoHeight','position','scene','eachComponent','__mapOffset','pointerEvents','coordinateSystem','echarts','get','_pointerEvents','getZr','1330rIRTqq','1852056hzsTLc','zIndex','getHeight','keys','clientWidth','_createChartOverlay','wgs84ToWindowCoordinates','width','off','scheduler','visible','layer','_addedHook','_api','lat','10SocHLq','coords','globe','isPointVisible','postRender','5244381Jpenxg','setMapOffset','5556vwwAtx','_echartsInstance','mars3dMapRoam','extendComponentModel','positionWC','_mapOffset','_echartsContainer','mars3dMap','removeChild','245772QBtmVp','dimensions','EllipsoidalOccluder','defineProperty','BoundingRect','_mars3d_scene','fromDegrees','depthTest'];_0x4f3b=function(){return _0x50afa2;};return _0x4f3b();}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x49b2fb(0x89),'update':_0x49b2fb(0xa7)},function(_0x503475,_0x5d6092){}),echarts__namespace[_0x49b2fb(0x8a)]({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x550070,_0xc7daa1){const _0x190d08={_0x2bb04c:0xaf},_0x173652=_0x49b2fb;this['api']=_0xc7daa1,this['scene']=_0x550070[_0x173652(0xc2)]['ecInstance']['_mars3d_scene'],this[_0x173652(_0x190d08._0x2bb04c)]['postRender']['addEventListener'](this[_0x173652(0xa1)],this);},'moveHandler':function(_0x2eb3b5,_0xeb33a3){const _0x472fbf={_0x57751a:0x89},_0x1590c5=_0x49b2fb;this['api']['dispatchAction']({'type':_0x1590c5(_0x472fbf._0x57751a)});},'render':function(_0x4fb5d5,_0x938f81,_0x578418){},'dispose':function(_0x4f57cd){const _0x3eaf47=_0x49b2fb;this['scene'][_0x3eaf47(0x84)]['removeEventListener'](this[_0x3eaf47(0xa1)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x49b2fb(0xc4)][_0x49b2fb(0xa3)];class EchartsLayer extends BaseLayer{constructor(_0x5c2559={}){const _0x5c4596=_0x49b2fb;super(_0x5c2559),this['_pointerEvents']=this[_0x5c4596(0x9e)]['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get[_0x49b2fb(0xb2)](){return this['_pointerEvents'];}set['pointerEvents'](_0x2cf77f){const _0x414359={_0x4de212:0x8d,_0x30a208:0x99},_0x15aa89=_0x49b2fb;this['_pointerEvents']=_0x2cf77f,this['_echartsContainer']&&(_0x2cf77f?this['_echartsContainer'][_0x15aa89(0x9d)][_0x15aa89(0xb2)]='all':this[_0x15aa89(_0x414359._0x4de212)]['style']['pointerEvents']=_0x15aa89(_0x414359._0x30a208));}['_setOptionsHook'](_0x1fa6d0,_0x4f7654){this['setEchartsOption'](_0x1fa6d0);}['_showHook'](_0x5e8d42){const _0x2e90df=_0x49b2fb;_0x5e8d42?this[_0x2e90df(0x8d)]['style']['visibility']=_0x2e90df(0xc3):this[_0x2e90df(0x8d)][_0x2e90df(0x9d)]['visibility']='hidden';}['_mountedHook'](){const _0x5d2980={_0x3e8447:0x9e,_0x500c10:0x97,_0x4f19eb:0xad,_0x5dbcd3:0x9e},_0x473231=_0x49b2fb;this[_0x473231(0x9a)]['scene']['echartsDepthTest']=this[_0x473231(_0x5d2980._0x3e8447)][_0x473231(_0x5d2980._0x500c10)]??!![],this[_0x473231(0x9a)]['scene'][_0x473231(_0x5d2980._0x4f19eb)]=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this[_0x473231(_0x5d2980._0x5dbcd3)]['fixedHeight']??0x0;}[_0x49b2fb(0xc5)](){const _0x3cff1d={_0x16f5dd:0x95},_0x16a58d=_0x49b2fb;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this[_0x16a58d(0x88)][_0x16a58d(_0x3cff1d._0x16f5dd)]=this['_map']['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x5aa8eb={_0x5f0924:0x88,_0x40bfa5:0x8d},_0x4e6e99=_0x49b2fb;this['_echartsInstance']&&(this[_0x4e6e99(0x88)]['clear'](),this[_0x4e6e99(_0x5aa8eb._0x5f0924)]['dispose'](),delete this[_0x4e6e99(_0x5aa8eb._0x5f0924)]),this[_0x4e6e99(_0x5aa8eb._0x40bfa5)]&&(this['_map']['container'][_0x4e6e99(0x8f)](this[_0x4e6e99(_0x5aa8eb._0x40bfa5)]),delete this['_echartsContainer']);}[_0x49b2fb(0xbe)](){const _0x4e4db0={_0x3d21db:0x9b,_0x2a784c:0xa6,_0x2ea976:0xb6,_0x9e5c75:0xba},_0x502fcc=_0x49b2fb,_0x44f5dc=mars3d__namespace['DomUtil'][_0x502fcc(_0x4e4db0._0x3d21db)]('div','mars3d-echarts',this[_0x502fcc(0x9a)]['container']);return _0x44f5dc['id']=this['id'],_0x44f5dc['style'][_0x502fcc(0xae)]='absolute',_0x44f5dc['style']['top']='0px',_0x44f5dc['style']['left']='0px',_0x44f5dc[_0x502fcc(0x9d)]['width']=this['_map']['scene']['canvas'][_0x502fcc(0xbd)]+'px',_0x44f5dc['style']['height']=this['_map']['scene'][_0x502fcc(_0x4e4db0._0x2a784c)]['clientHeight']+'px',_0x44f5dc['style']['pointerEvents']=this[_0x502fcc(_0x4e4db0._0x2ea976)]?'all':_0x502fcc(0x99),_0x44f5dc['style']['zIndex']=this['options'][_0x502fcc(_0x4e4db0._0x9e5c75)]??0x9,_0x44f5dc;}[_0x49b2fb(0xaa)](){const _0x46117f={_0x1a71e0:0xbd},_0x3d5d20=_0x49b2fb;if(!this[_0x3d5d20(0x88)])return;this['_echartsContainer']['style'][_0x3d5d20(0xc0)]=this[_0x3d5d20(0x9a)]['scene'][_0x3d5d20(0xa6)][_0x3d5d20(_0x46117f._0x1a71e0)]+'px',this['_echartsContainer']['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}[_0x49b2fb(0xa4)](_0x15eb19,_0x5d6002,_0x184511){const _0x36e9c4=_0x49b2fb;this[_0x36e9c4(0x88)]&&(_0x15eb19={'mars3dMap':{},...mars3d__namespace['Util']['getAttrVal'](_0x15eb19,{'onlySimpleType':!![]})},delete _0x15eb19['eventParent'],this['_echartsInstance']['setOption'](_0x15eb19,_0x5d6002,_0x184511));}['getRectangle'](_0xe00e6a){const _0x50f1b6={_0x296c7a:0x9f};let _0x43d3f2,_0x18f858,_0x50be30,_0x1ec04f;function _0x293beb(_0x5404d7){const _0x2502d1=_0x72b4;if(!Array[_0x2502d1(_0x50f1b6._0x296c7a)](_0x5404d7))return;const _0x2b7bcb=_0x5404d7[0x0]||0x0,_0xd8c741=_0x5404d7[0x1]||0x0;_0x2b7bcb!==0x0&&_0xd8c741!==0x0&&(_0x43d3f2===undefined?(_0x43d3f2=_0x2b7bcb,_0x18f858=_0x2b7bcb,_0x50be30=_0xd8c741,_0x1ec04f=_0xd8c741):(_0x43d3f2=Math['min'](_0x43d3f2,_0x2b7bcb),_0x18f858=Math['max'](_0x18f858,_0x2b7bcb),_0x50be30=Math['min'](_0x50be30,_0xd8c741),_0x1ec04f=Math['max'](_0x1ec04f,_0xd8c741)));}const _0x2165e3=this['options']['series'];_0x2165e3&&_0x2165e3['forEach'](_0x203f05=>{const _0x52a2d3={_0x479c23:0xc9,_0x114fe7:0xa0},_0x38218f=_0x72b4;_0x203f05['data']&&_0x203f05['data'][_0x38218f(0xa0)](_0xe47c69=>{const _0x31ca53=_0x38218f;if(_0xe47c69['value'])_0x293beb(_0xe47c69['value']);else _0xe47c69[_0x31ca53(_0x52a2d3._0x479c23)]&&_0xe47c69[_0x31ca53(0xc9)][_0x31ca53(_0x52a2d3._0x114fe7)](_0xfb8204=>{_0x293beb(_0xfb8204);});});});if(_0x43d3f2===0x0&&_0x50be30===0x0&&_0x18f858===0x0&&_0x1ec04f===0x0)return null;return _0xe00e6a!==null&&_0xe00e6a!==void 0x0&&_0xe00e6a['isFormat']?{'xmin':_0x43d3f2,'xmax':_0x18f858,'ymin':_0x50be30,'ymax':_0x1ec04f}:Cesium['Rectangle']['fromDegrees'](_0x43d3f2,_0x50be30,_0x18f858,_0x1ec04f);}['on'](_0x4d332b,_0xf670c8,_0x5025dd){const _0xb29e73=_0x49b2fb;return this[_0xb29e73(0x88)]['on'](_0x4d332b,_0xf670c8,_0x5025dd||this),this;}[_0x49b2fb(0x98)](_0x4d3d32,_0x19a9cd,_0x1d7e82,_0x278a10){return this['_echartsInstance']['on'](_0x4d3d32,_0x19a9cd,_0x1d7e82,_0x278a10||this),this;}['off'](_0x13ada4,_0x374abc,_0x20a557){const _0x59a7dc=_0x49b2fb;return this['_echartsInstance'][_0x59a7dc(0xc1)](_0x13ada4,_0x374abc,_0x20a557||this),this;}}mars3d__namespace['LayerUtil']['register'](_0x49b2fb(0xb4),EchartsLayer),mars3d__namespace[_0x49b2fb(0xc4)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0x49b2fb(0xbc)](echarts)[_0x49b2fb(0xa0)](function(_0x452219){const _0x51716f={_0x51fcd9:0x93},_0x445617=_0x49b2fb;if(_0x452219!=='default'&&!exports['hasOwnProperty'](_0x452219))Object[_0x445617(_0x51716f._0x51fcd9)](exports,_0x452219,{'enumerable':!![],'get':function(){return echarts[_0x452219];}});}),Object[_0x49b2fb(0x93)](exports,'__esModule',{'value':!![]}); | ||
'use strict';const _0x2205c6=_0x4453;(function(_0x5ccd18,_0x51705e){const _0x4ef5f2={_0x69f2b9:0x89,_0x269ce2:0x9b,_0x1640df:0x82,_0x4d9a85:0xa9,_0x2558af:0x7c,_0x59a847:0xb4},_0x100451=_0x4453,_0x557882=_0x5ccd18();while(!![]){try{const _0x47cc47=parseInt(_0x100451(0xa8))/0x1*(parseInt(_0x100451(_0x4ef5f2._0x69f2b9))/0x2)+parseInt(_0x100451(0xaa))/0x3+parseInt(_0x100451(_0x4ef5f2._0x269ce2))/0x4*(-parseInt(_0x100451(0x88))/0x5)+parseInt(_0x100451(_0x4ef5f2._0x1640df))/0x6+parseInt(_0x100451(0x8a))/0x7+-parseInt(_0x100451(_0x4ef5f2._0x4d9a85))/0x8*(-parseInt(_0x100451(_0x4ef5f2._0x2558af))/0x9)+-parseInt(_0x100451(_0x4ef5f2._0x59a847))/0xa;if(_0x47cc47===_0x51705e)break;else _0x557882['push'](_0x557882['shift']());}catch(_0x7417ca){_0x557882['push'](_0x557882['shift']());}}}(_0x2363,0x4e395));function _interopNamespace(_0xd6c067){const _0x5bf4c6={_0x1d6542:0x76},_0x163148=_0x4453;if(_0xd6c067&&_0xd6c067['__esModule'])return _0xd6c067;var _0x1a00d8=Object[_0x163148(0x7e)](null);return _0xd6c067&&Object['keys'](_0xd6c067)[_0x163148(_0x5bf4c6._0x1d6542)](function(_0x1b7531){if(_0x1b7531!=='default'){var _0x530203=Object['getOwnPropertyDescriptor'](_0xd6c067,_0x1b7531);Object['defineProperty'](_0x1a00d8,_0x1b7531,_0x530203['get']?_0x530203:{'enumerable':!![],'get':function(){return _0xd6c067[_0x1b7531];}});}}),_0x1a00d8['default']=_0xd6c067,_0x1a00d8;}function _0x4453(_0x11506d,_0xbd56b9){const _0x2363b2=_0x2363();return _0x4453=function(_0x445350,_0x26b7b6){_0x445350=_0x445350-0x74;let _0x260e9c=_0x2363b2[_0x445350];return _0x260e9c;},_0x4453(_0x11506d,_0xbd56b9);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x359d61,_0xdad956){const _0x32086b={_0x3d8967:0x75},_0x2c2a8b=_0x4453;this[_0x2c2a8b(_0x32086b._0x3d8967)]=_0x359d61,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0xdad956;}['setMapOffset'](_0x49a99b){const _0x15862a=_0x4453;this[_0x15862a(0x84)]=_0x49a99b;}[_0x2205c6(0xa5)](){return this['_mars3d_scene'];}['dataToPoint'](_0xe21edf){const _0x23b7ce={_0x4e1a57:0xa0,_0x21f52c:0xb0,_0x343f99:0xac,_0x3ea45a:0x90,_0x4e96ee:0xad},_0xc2d4c7=_0x2205c6,_0x358276=this[_0xc2d4c7(0x75)],_0x559e73=[NaN,NaN];let _0x1e36fc=_0x358276[_0xc2d4c7(_0x23b7ce._0x4e1a57)];_0x358276[_0xc2d4c7(0xa2)]&&(_0x1e36fc=_0x358276[_0xc2d4c7(_0x23b7ce._0x21f52c)](Cesium$1[_0xc2d4c7(_0x23b7ce._0x343f99)]['fromDegrees'](_0xe21edf[0x0],_0xe21edf[0x1])));const _0x4ae915=Cesium$1['Cartesian3'][_0xc2d4c7(0x98)](_0xe21edf[0x0],_0xe21edf[0x1],_0x1e36fc);if(!_0x4ae915)return _0x559e73;const _0x1cd510=Cesium$1[_0xc2d4c7(0x92)]['wgs84ToWindowCoordinates'](_0x358276,_0x4ae915);if(!_0x1cd510)return _0x559e73;if(_0x358276['echartsDepthTest']&&_0x358276['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x354760=new Cesium$1['EllipsoidalOccluder'](_0x358276[_0xc2d4c7(_0x23b7ce._0x3ea45a)]['ellipsoid'],_0x358276['camera']['positionWC']),_0x25fdf4=_0x354760[_0xc2d4c7(_0x23b7ce._0x4e96ee)](_0x4ae915);if(!_0x25fdf4)return _0x559e73;}return[_0x1cd510['x']-this['_mapOffset'][0x0],_0x1cd510['y']-this['_mapOffset'][0x1]];}[_0x2205c6(0xa7)](){const _0x4a546b={_0x2f4beb:0xa1},_0x3dfbcd=_0x2205c6,_0x363c9a=this[_0x3dfbcd(0x79)];return new echarts__namespace['graphic'][(_0x3dfbcd(0x97))](0x0,0x0,_0x363c9a[_0x3dfbcd(_0x4a546b._0x2f4beb)](),_0x363c9a['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=[_0x2205c6(0x77),'lat'],CompositeCoordinateSystem[_0x2205c6(0x7e)]=function(_0xe4f5b6,_0x1e959c){const _0x4723fb={_0x1e2809:0x75},_0x3dc9d8={_0x58d01c:0xa6},_0x531208={_0x58052e:0xa6},_0x582413=_0x2205c6;let _0x39952a;const _0x2848c6=_0xe4f5b6['scheduler']['ecInstance'][_0x582413(_0x4723fb._0x1e2809)];_0xe4f5b6['eachComponent']('mars3dMap',function(_0xc3d607){const _0x8897=_0x582413,_0x42bdb5=_0x1e959c['getZr']()['painter'];if(!_0x42bdb5)return;!_0x39952a&&(_0x39952a=new CompositeCoordinateSystem(_0x2848c6,_0x1e959c)),_0xc3d607[_0x8897(_0x531208._0x58052e)]=_0x39952a,_0x39952a['setMapOffset'](_0xc3d607['__mapOffset']||[0x0,0x0]);}),_0xe4f5b6[_0x582413(0x7f)](function(_0x4679aa){const _0x5740e0=_0x582413;_0x4679aa['get']('coordinateSystem')==='mars3dMap'&&(!_0x39952a&&(_0x39952a=new CompositeCoordinateSystem(_0x2848c6,_0x1e959c)),_0x4679aa[_0x5740e0(_0x3dc9d8._0x58d01c)]=_0x39952a);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x2205c6(0x7d)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x2205c6(0xb3)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x218e54,_0x28b606){}),echarts__namespace['extendComponentModel']({'type':_0x2205c6(0xb5),'getBMap':function(){const _0x101b5c=_0x2205c6;return this[_0x101b5c(0x75)];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x4c4f52,_0x359727){const _0x535f2e={_0x3c3c3e:0x9d},_0x41a80f=_0x2205c6;this['api']=_0x359727,this['scene']=_0x4c4f52['scheduler'][_0x41a80f(0x91)]['_mars3d_scene'],this['scene'][_0x41a80f(_0x535f2e._0x3c3c3e)][_0x41a80f(0x99)](this['moveHandler'],this);},'moveHandler':function(_0x2a6c99,_0x566512){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x53b697,_0x34451e,_0x17d174){},'dispose':function(_0x580b1d){const _0x516af9=_0x2205c6;this['scene']['postRender'][_0x516af9(0x7b)](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x400d99={}){const _0x2be7bf=_0x2205c6;super(_0x400d99),this['_pointerEvents']=this['options'][_0x2be7bf(0x9a)];}get[_0x2205c6(0x95)](){return this['_echartsInstance'];}get[_0x2205c6(0x9a)](){return this['_pointerEvents'];}set['pointerEvents'](_0xec4ac5){const _0x6fb23f={_0x37074c:0x9a},_0x2123e3=_0x2205c6;this['_pointerEvents']=_0xec4ac5,this['_echartsContainer']&&(_0xec4ac5?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style'][_0x2123e3(_0x6fb23f._0x37074c)]='none');}[_0x2205c6(0xab)](_0x54e78a,_0x12fa23){this['setEchartsOption'](_0x54e78a);}[_0x2205c6(0x9c)](_0x21449d){const _0x4650b7={_0x320c97:0x96,_0x24082f:0x93,_0x679fac:0x78},_0x4086d0=_0x2205c6;_0x21449d?this['_echartsContainer'][_0x4086d0(_0x4650b7._0x320c97)]['visibility']='visible':this[_0x4086d0(0x8b)]['style'][_0x4086d0(_0x4650b7._0x24082f)]=_0x4086d0(_0x4650b7._0x679fac);}['_mountedHook'](){const _0x5a8ba8={_0x26b13a:0xae,_0x48f977:0x8d},_0x4c955d=_0x2205c6;this[_0x4c955d(0x9f)]['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this[_0x4c955d(0x9f)]['scene'][_0x4c955d(0xa2)]=this['options'][_0x4c955d(_0x5a8ba8._0x26b13a)]??![],this['_map']['scene']['echartsFixedHeight']=this['options'][_0x4c955d(_0x5a8ba8._0x48f977)]??0x0;}['_addedHook'](){const _0x550c7d=_0x2205c6;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace[_0x550c7d(0x8e)](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this[_0x550c7d(0x9f)]['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x26825b={_0x2e386a:0xaf},_0x593ab6=_0x2205c6;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0x593ab6(_0x26825b._0x2e386a)]['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map'][_0x593ab6(0x81)]['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0xddfc6a={_0x19cb58:0x80,_0x14307a:0x96,_0x414075:0xa4,_0xdb92c7:0x83,_0x355d4b:0xb2,_0x21e681:0x9f,_0x156957:0x85,_0x19502f:0x7a},_0x17bfb6=_0x2205c6,_0x494da6=mars3d__namespace['DomUtil'][_0x17bfb6(0x7e)](_0x17bfb6(_0xddfc6a._0x19cb58),'mars3d-echarts',this['_map']['container']);return _0x494da6['id']=this['id'],_0x494da6[_0x17bfb6(_0xddfc6a._0x14307a)]['position']='absolute',_0x494da6[_0x17bfb6(0x96)]['top']=_0x17bfb6(_0xddfc6a._0x414075),_0x494da6['style']['left']='0px',_0x494da6[_0x17bfb6(_0xddfc6a._0x14307a)][_0x17bfb6(_0xddfc6a._0xdb92c7)]=this['_map']['scene']['canvas']['clientWidth']+'px',_0x494da6['style'][_0x17bfb6(_0xddfc6a._0x355d4b)]=this[_0x17bfb6(_0xddfc6a._0x21e681)]['scene']['canvas']['clientHeight']+'px',_0x494da6[_0x17bfb6(_0xddfc6a._0x14307a)]['pointerEvents']=this['_pointerEvents']?_0x17bfb6(_0xddfc6a._0x156957):'none',_0x494da6[_0x17bfb6(_0xddfc6a._0x14307a)]['zIndex']=this['options'][_0x17bfb6(_0xddfc6a._0x19502f)]??0x9,_0x494da6;}['resize'](){const _0x46bec8={_0x15fbe4:0xaf,_0x106c28:0xb1},_0x428f59=_0x2205c6;if(!this[_0x428f59(_0x46bec8._0x15fbe4)])return;this['_echartsContainer']['style']['width']=this[_0x428f59(0x9f)]['scene']['canvas']['clientWidth']+'px',this[_0x428f59(0x8b)]['style']['height']=this['_map']['scene']['canvas'][_0x428f59(_0x46bec8._0x106c28)]+'px',this['_echartsInstance']['resize']();}[_0x2205c6(0xa3)](_0x105cfa,_0x3a8ea6,_0x2c5af9){const _0x527df3={_0x2428a0:0xaf},_0x24fdd2=_0x2205c6;this[_0x24fdd2(_0x527df3._0x2428a0)]&&(_0x105cfa={'mars3dMap':{},...mars3d__namespace['Util']['getAttrVal'](_0x105cfa,{'onlySimpleType':!![]})},delete _0x105cfa['eventParent'],this['_echartsInstance']['setOption'](_0x105cfa,_0x3a8ea6,_0x2c5af9));}[_0x2205c6(0x74)](_0xac4147){const _0x2cf730={_0x439f21:0x8f};let _0x16528f,_0x5d15c6,_0x1983f4,_0x27b8a4;function _0x5ded03(_0x234600){const _0xac8f7=_0x4453;if(!Array['isArray'](_0x234600))return;const _0x5ec920=_0x234600[0x0]||0x0,_0x1ca1fd=_0x234600[0x1]||0x0;_0x5ec920!==0x0&&_0x1ca1fd!==0x0&&(_0x16528f===undefined?(_0x16528f=_0x5ec920,_0x5d15c6=_0x5ec920,_0x1983f4=_0x1ca1fd,_0x27b8a4=_0x1ca1fd):(_0x16528f=Math['min'](_0x16528f,_0x5ec920),_0x5d15c6=Math['max'](_0x5d15c6,_0x5ec920),_0x1983f4=Math['min'](_0x1983f4,_0x1ca1fd),_0x27b8a4=Math[_0xac8f7(0x86)](_0x27b8a4,_0x1ca1fd)));}const _0x38f6b0=this['options']['series'];_0x38f6b0&&_0x38f6b0['forEach'](_0x224233=>{const _0x2fbbb3=_0x4453;_0x224233[_0x2fbbb3(0x94)]&&_0x224233['data']['forEach'](_0x5e295b=>{const _0xb7897=_0x2fbbb3;if(_0x5e295b['value'])_0x5ded03(_0x5e295b['value']);else _0x5e295b[_0xb7897(_0x2cf730._0x439f21)]&&_0x5e295b['coords']['forEach'](_0x3845f0=>{_0x5ded03(_0x3845f0);});});});if(_0x16528f===0x0&&_0x1983f4===0x0&&_0x5d15c6===0x0&&_0x27b8a4===0x0)return null;return _0xac4147!==null&&_0xac4147!==void 0x0&&_0xac4147['isFormat']?{'xmin':_0x16528f,'xmax':_0x5d15c6,'ymin':_0x1983f4,'ymax':_0x27b8a4}:Cesium['Rectangle']['fromDegrees'](_0x16528f,_0x1983f4,_0x5d15c6,_0x27b8a4);}['on'](_0x5e356f,_0x97b340,_0xf24765){const _0x1bdd37=_0x2205c6;return this[_0x1bdd37(0xaf)]['on'](_0x5e356f,_0x97b340,_0xf24765||this),this;}['onByQuery'](_0x2dbbc9,_0x767bb6,_0x3ad590,_0x39f1eb){return this['_echartsInstance']['on'](_0x2dbbc9,_0x767bb6,_0x3ad590,_0x39f1eb||this),this;}['off'](_0x186144,_0x196f9a,_0x32030d){return this['_echartsInstance']['off'](_0x186144,_0x196f9a,_0x32030d||this),this;}}function _0x2363(){const _0x41147=['hidden','_api','zIndex','removeEventListener','512730AVrmqa','registerCoordinateSystem','create','eachSeries','div','container','2816508KptfWJ','width','_mapOffset','all','max','EchartsLayer','25610YhzwwU','584GCHLpG','639093gncKPF','_echartsContainer','hasOwnProperty','fixedHeight','init','coords','globe','ecInstance','SceneTransforms','visibility','data','layer','style','BoundingRect','fromDegrees','addEventListener','pointerEvents','120TNkmWu','_showHook','postRender','__esModule','_map','echartsFixedHeight','getWidth','echartsAutoHeight','setEchartsOption','0px','getBMap','coordinateSystem','getViewRect','544AVsRWW','24gtKsAt','1791576NpfwFn','_setOptionsHook','Cartographic','isPointVisible','clampToGround','_echartsInstance','getHeight','clientHeight','height','registerAction','10136020nhvQQO','mars3dMap','getRectangle','_mars3d_scene','forEach','lng'];_0x2363=function(){return _0x41147;};return _0x2363();}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace['layer'][_0x2205c6(0x87)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x5013f8){const _0x4b44da={_0x3978ac:0x8c},_0xde6742=_0x2205c6;if(_0x5013f8!=='default'&&!exports[_0xde6742(_0x4b44da._0x3978ac)](_0x5013f8))Object['defineProperty'](exports,_0x5013f8,{'enumerable':!![],'get':function(){return echarts[_0x5013f8];}});}),Object['defineProperty'](exports,_0x2205c6(0x9e),{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.7.6", | ||
"version": "3.7.7", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.7.6" | ||
"mars3d": "~3.7.7" | ||
}, | ||
@@ -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
16928
63