mars3d-echarts
Advanced tools
Comparing version 3.6.3 to 3.6.4
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.6.3 | ||
* 编译日期:2023-08-29 15:40:48 | ||
* 版本信息:v3.6.4 | ||
* 编译日期:2023-09-05 22:32:16 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';const _0x1b5e11=_0xddfa;(function(_0x4632f1,_0x48c90e){const _0x309afb={_0x384f68:0x1e6,_0x361c9b:0x1ba,_0xf15616:0x1c6,_0x5f52dc:0x1e1,_0x33c9c0:0x1d6},_0x5d72a5=_0xddfa,_0x55a010=_0x4632f1();while(!![]){try{const _0x40fe31=parseInt(_0x5d72a5(0x1d8))/0x1*(-parseInt(_0x5d72a5(_0x309afb._0x384f68))/0x2)+-parseInt(_0x5d72a5(_0x309afb._0x361c9b))/0x3*(parseInt(_0x5d72a5(0x1b2))/0x4)+parseInt(_0x5d72a5(0x1cd))/0x5*(parseInt(_0x5d72a5(_0x309afb._0xf15616))/0x6)+-parseInt(_0x5d72a5(_0x309afb._0x5f52dc))/0x7+parseInt(_0x5d72a5(0x1b6))/0x8+-parseInt(_0x5d72a5(0x1e7))/0x9*(parseInt(_0x5d72a5(0x1b3))/0xa)+parseInt(_0x5d72a5(_0x309afb._0x33c9c0))/0xb;if(_0x40fe31===_0x48c90e)break;else _0x55a010['push'](_0x55a010['shift']());}catch(_0x211a61){_0x55a010['push'](_0x55a010['shift']());}}}(_0x517d,0x1f630));function _interopNamespace(_0x3b4101){const _0xfba1df=_0xddfa;if(_0x3b4101&&_0x3b4101['__esModule'])return _0x3b4101;var _0x3cd231=Object['create'](null);return _0x3b4101&&Object['keys'](_0x3b4101)[_0xfba1df(0x1d9)](function(_0x527e0c){const _0x200432=_0xfba1df;if(_0x527e0c!==_0x200432(0x1d7)){var _0x327e67=Object['getOwnPropertyDescriptor'](_0x3b4101,_0x527e0c);Object['defineProperty'](_0x3cd231,_0x527e0c,_0x327e67['get']?_0x327e67:{'enumerable':!![],'get':function(){return _0x3b4101[_0x527e0c];}});}}),_0x3cd231['default']=_0x3b4101,_0x3cd231;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x517d(){const _0x50eecf=['__mapOffset','getZr','ellipsoid','mode','2788456DvuXRf','default','33lTZLdz','forEach','mars3dMap','setEchartsOption','coords','moveHandler','eachComponent','zIndex','absolute','229432jpgsBC','LayerUtil','value','dispatchAction','height','7874YyZsBs','680274sooSXX','registerAction','ecInstance','removeEventListener','_createChartOverlay','coordinateSystem','2476TkEXgl','10WIbnQr','positionWC','none','1863752mcmumj','_pointerEvents','resize','echartsAutoHeight','732icbgWv','_map','SceneTransforms','_mars3d_scene','_echartsContainer','mars3d-echarts','_echartsInstance','addEventListener','echarts','width','layer','_mapOffset','94242PPgxng','lng','defineProperty','style','options','isArray','fromDegrees','10wMUzRK','create','pointerEvents','scene','getBMap'];_0x517d=function(){return _0x50eecf;};return _0x517d();}const Cesium$1=mars3d__namespace['Cesium'];function _0xddfa(_0x566c37,_0x388d5f){const _0x517d2d=_0x517d();return _0xddfa=function(_0xddfa54,_0x40c3fe){_0xddfa54=_0xddfa54-0x1b0;let _0x5de221=_0x517d2d[_0xddfa54];return _0x5de221;},_0xddfa(_0x566c37,_0x388d5f);}class CompositeCoordinateSystem{constructor(_0x44b373,_0x649ef3){this['_mars3d_scene']=_0x44b373,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x649ef3;}['setMapOffset'](_0x523329){const _0x27d9b0=_0xddfa;this[_0x27d9b0(0x1c5)]=_0x523329;}[_0x1b5e11(0x1d1)](){const _0x1d7bc2=_0x1b5e11;return this[_0x1d7bc2(0x1bd)];}['dataToPoint'](_0x3eecf0){const _0x3ad624={_0x19ed02:0x1d5,_0xce8f49:0x1b4},_0x4613fb=_0x1b5e11,_0x3e8fff=this['_mars3d_scene'],_0x29f2dd=[NaN,NaN];let _0x11d06f=_0x3e8fff['echartsFixedHeight'];_0x3e8fff['echartsAutoHeight']&&(_0x11d06f=_0x3e8fff['globe']['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x3eecf0[0x0],_0x3eecf0[0x1])));const _0x2a62c3=Cesium$1['Cartesian3']['fromDegrees'](_0x3eecf0[0x0],_0x3eecf0[0x1],_0x11d06f);if(!_0x2a62c3)return _0x29f2dd;const _0x533068=Cesium$1[_0x4613fb(0x1bc)]['wgs84ToWindowCoordinates'](_0x3e8fff,_0x2a62c3);if(!_0x533068)return _0x29f2dd;if(_0x3e8fff['echartsDepthTest']&&_0x3e8fff[_0x4613fb(_0x3ad624._0x19ed02)]===Cesium$1['SceneMode']['SCENE3D']){const _0x5c429e=new Cesium$1['EllipsoidalOccluder'](_0x3e8fff['globe'][_0x4613fb(0x1d4)],_0x3e8fff['camera'][_0x4613fb(_0x3ad624._0xce8f49)]),_0x32c2c4=_0x5c429e['isPointVisible'](_0x2a62c3);if(!_0x32c2c4)return _0x29f2dd;}return[_0x533068['x']-this[_0x4613fb(0x1c5)][0x0],_0x533068['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x265616=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x265616['getWidth'](),_0x265616['getHeight']());}['getRoamTransform'](){const _0x13a2fc={_0x2e1267:0x1ce},_0xb43597=_0x1b5e11;return echarts__namespace['matrix'][_0xb43597(_0x13a2fc._0x2e1267)]();}}CompositeCoordinateSystem['dimensions']=[_0x1b5e11(0x1c7),'lat'],CompositeCoordinateSystem['create']=function(_0x309e63,_0x541656){const _0x28d0bf={_0x5c1194:0x1d3,_0x244afe:0x1d2},_0x13ae80=_0x1b5e11;let _0x1fb0b3;const _0x312690=_0x309e63['scheduler']['ecInstance'][_0x13ae80(0x1bd)];_0x309e63[_0x13ae80(0x1de)]('mars3dMap',function(_0x1fad06){const _0x5d0d33=_0x13ae80,_0x1e10dd=_0x541656[_0x5d0d33(_0x28d0bf._0x5c1194)]()['painter'];if(!_0x1e10dd)return;!_0x1fb0b3&&(_0x1fb0b3=new CompositeCoordinateSystem(_0x312690,_0x541656)),_0x1fad06['coordinateSystem']=_0x1fb0b3,_0x1fb0b3['setMapOffset'](_0x1fad06[_0x5d0d33(_0x28d0bf._0x244afe)]||[0x0,0x0]);}),_0x309e63['eachSeries'](function(_0x4473f3){const _0x5740bb=_0x13ae80;_0x4473f3['get']('coordinateSystem')==='mars3dMap'&&(!_0x1fb0b3&&(_0x1fb0b3=new CompositeCoordinateSystem(_0x312690,_0x541656)),_0x4473f3[_0x5740bb(0x1b1)]=_0x1fb0b3);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x1b5e11(0x1e8)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x3922d7,_0x1a0b0c){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':_0x1b5e11(0x1da),'init':function(_0x301ad7,_0x547b8e){const _0x3218fe={_0x423146:0x1d0,_0x1bc32a:0x1e9,_0x3298da:0x1dd},_0x40be3b=_0x1b5e11;this['api']=_0x547b8e,this[_0x40be3b(_0x3218fe._0x423146)]=_0x301ad7['scheduler'][_0x40be3b(_0x3218fe._0x1bc32a)]['_mars3d_scene'],this['scene']['postRender'][_0x40be3b(0x1c1)](this[_0x40be3b(_0x3218fe._0x3298da)],this);},'moveHandler':function(_0x14ac65,_0x505885){const _0x3ba86f=_0x1b5e11;this['api'][_0x3ba86f(0x1e4)]({'type':'mars3dMapRoam'});},'render':function(_0x3fc6bb,_0x95ab42,_0x24d82e){},'dispose':function(_0x5ba21e){const _0xf1e002=_0x1b5e11;this['scene']['postRender'][_0xf1e002(0x1ea)](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x1b5e11(0x1c4)]['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x2387b4={}){const _0x3eec9d=_0x1b5e11;super(_0x2387b4),this[_0x3eec9d(0x1b7)]=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get[_0x1b5e11(0x1cf)](){return this['_pointerEvents'];}set[_0x1b5e11(0x1cf)](_0x5f273d){const _0x448bed={_0x1d0b18:0x1b7},_0x378274=_0x1b5e11;this[_0x378274(_0x448bed._0x1d0b18)]=_0x5f273d,this['_echartsContainer']&&(_0x5f273d?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style']['pointerEvents']=_0x378274(0x1b5));}['_setOptionsHook'](_0x5a3365,_0xa49c8e){this['setEchartsOption'](_0x5a3365);}['_showHook'](_0x4bb558){const _0x5957be={_0x5adb7d:0x1be},_0x48ca17=_0x1b5e11;_0x4bb558?this[_0x48ca17(_0x5957be._0x5adb7d)]['style']['visibility']='visible':this['_echartsContainer']['style']['visibility']='hidden';}['_mountedHook'](){const _0x21908d={_0x227df2:0x1ca},_0x3ff046=_0x1b5e11;this['_map']['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this['_map']['scene'][_0x3ff046(0x1b9)]=this[_0x3ff046(_0x21908d._0x227df2)]['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x367d8c=_0x1b5e11;this['_echartsContainer']=this[_0x367d8c(0x1b0)](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance'][_0x367d8c(0x1bd)]=this['_map']['scene'],this[_0x367d8c(0x1db)](this['options']);}['_removedHook'](){const _0x589ca7={_0x1606e5:0x1c0},_0x40c4b5=_0x1b5e11;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0x40c4b5(0x1c0)]['dispose'](),delete this[_0x40c4b5(_0x589ca7._0x1606e5)]),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x1b5e11(0x1b0)](){const _0x594241={_0x5056e3:0x1bf,_0x39ea0a:0x1bb,_0x22c453:0x1c9,_0x3dbe2f:0x1e0,_0x2a183a:0x1d0,_0x74911a:0x1d0,_0x376d1f:0x1b7,_0x2e305b:0x1ca},_0x4e789f=_0x1b5e11,_0x6cc0c3=mars3d__namespace['DomUtil']['create']('div',_0x4e789f(_0x594241._0x5056e3),this[_0x4e789f(_0x594241._0x39ea0a)]['container']);return _0x6cc0c3['id']=this['id'],_0x6cc0c3[_0x4e789f(_0x594241._0x22c453)]['position']=_0x4e789f(_0x594241._0x3dbe2f),_0x6cc0c3['style']['top']='0px',_0x6cc0c3['style']['left']='0px',_0x6cc0c3['style']['width']=this['_map'][_0x4e789f(_0x594241._0x2a183a)]['canvas']['clientWidth']+'px',_0x6cc0c3['style'][_0x4e789f(0x1e5)]=this['_map'][_0x4e789f(_0x594241._0x74911a)]['canvas']['clientHeight']+'px',_0x6cc0c3['style']['pointerEvents']=this[_0x4e789f(_0x594241._0x376d1f)]?'all':'none',_0x6cc0c3[_0x4e789f(0x1c9)]['zIndex']=this[_0x4e789f(_0x594241._0x2e305b)][_0x4e789f(0x1df)]??0x9,_0x6cc0c3;}[_0x1b5e11(0x1b8)](){const _0xdfca22={_0x3d0261:0x1be,_0x2798d8:0x1c3},_0x45b19a=_0x1b5e11;if(!this['_echartsInstance'])return;this[_0x45b19a(_0xdfca22._0x3d0261)][_0x45b19a(0x1c9)][_0x45b19a(_0xdfca22._0x2798d8)]=this[_0x45b19a(0x1bb)]['scene']['canvas']['clientWidth']+'px',this['_echartsContainer']['style']['height']=this['_map'][_0x45b19a(0x1d0)]['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x24acbf,_0x41186e,_0x19c2cf){const _0x57becd={_0x58a9c0:0x1da},_0x393811=_0x1b5e11;this[_0x393811(0x1c0)]&&(_0x24acbf['mars3dMap']=_0x24acbf[_0x393811(_0x57becd._0x58a9c0)]||{},this['_echartsInstance']['setOption'](_0x24acbf,_0x41186e,_0x19c2cf));}['getRectangle'](_0xdfe15d){const _0x771b2c={_0x3b75e9:0x1d9},_0x3f106d=_0x1b5e11;let _0x1324f2,_0x1896b4,_0x359b89,_0x76bb30;function _0x4eab6e(_0xe9b53c){const _0x8027=_0xddfa;if(!Array[_0x8027(0x1cb)](_0xe9b53c))return;const _0x144c73=_0xe9b53c[0x0]||0x0,_0x50abe8=_0xe9b53c[0x1]||0x0;_0x144c73!==0x0&&_0x50abe8!==0x0&&(_0x1324f2===undefined?(_0x1324f2=_0x144c73,_0x1896b4=_0x144c73,_0x359b89=_0x50abe8,_0x76bb30=_0x50abe8):(_0x1324f2=Math['min'](_0x1324f2,_0x144c73),_0x1896b4=Math['max'](_0x1896b4,_0x144c73),_0x359b89=Math['min'](_0x359b89,_0x50abe8),_0x76bb30=Math['max'](_0x76bb30,_0x50abe8)));}const _0x59d755=this['options']['series'];_0x59d755&&_0x59d755[_0x3f106d(_0x771b2c._0x3b75e9)](_0x197c79=>{_0x197c79['data']&&_0x197c79['data']['forEach'](_0x2b5efd=>{const _0x54e8d4=_0xddfa;if(_0x2b5efd[_0x54e8d4(0x1e3)])_0x4eab6e(_0x2b5efd[_0x54e8d4(0x1e3)]);else _0x2b5efd[_0x54e8d4(0x1dc)]&&_0x2b5efd['coords'][_0x54e8d4(0x1d9)](_0x3e41c5=>{_0x4eab6e(_0x3e41c5);});});});if(_0x1324f2===0x0&&_0x359b89===0x0&&_0x1896b4===0x0&&_0x76bb30===0x0)return null;return _0xdfe15d!==null&&_0xdfe15d!==void 0x0&&_0xdfe15d['isFormat']?{'xmin':_0x1324f2,'xmax':_0x1896b4,'ymin':_0x359b89,'ymax':_0x76bb30}:Cesium['Rectangle'][_0x3f106d(0x1cc)](_0x1324f2,_0x359b89,_0x1896b4,_0x76bb30);}['on'](_0x46a9de,_0x9da125,_0x56474a){return this['_echartsInstance']['on'](_0x46a9de,_0x9da125,_0x56474a||this),this;}['onByQuery'](_0x13544a,_0x5909f1,_0x1a06aa,_0x1f9e11){return this['_echartsInstance']['on'](_0x13544a,_0x5909f1,_0x1a06aa,_0x1f9e11||this),this;}['off'](_0x50d175,_0x4bd4c7,_0x21d78e){return this['_echartsInstance']['off'](_0x50d175,_0x4bd4c7,_0x21d78e||this),this;}}mars3d__namespace[_0x1b5e11(0x1e2)]['register']('echarts',EchartsLayer),mars3d__namespace[_0x1b5e11(0x1c4)]['EchartsLayer']=EchartsLayer,mars3d__namespace[_0x1b5e11(0x1c2)]=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x2f492a){const _0x1a3900=_0x1b5e11;if(_0x2f492a!=='default'&&!exports['hasOwnProperty'](_0x2f492a))Object[_0x1a3900(0x1c8)](exports,_0x2f492a,{'enumerable':!![],'get':function(){return echarts[_0x2f492a];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]}); | ||
'use strict';const _0x40f80f=_0x38f0;(function(_0x434db8,_0x1c3f22){const _0x122d99={_0x1563a8:0x1d3,_0x28b79e:0x1d6,_0x557193:0x1b2,_0xeda5ad:0x1c7},_0x52f721=_0x38f0,_0x32bee1=_0x434db8();while(!![]){try{const _0x5a81ca=parseInt(_0x52f721(0x1b4))/0x1+-parseInt(_0x52f721(0x1a8))/0x2*(-parseInt(_0x52f721(_0x122d99._0x1563a8))/0x3)+parseInt(_0x52f721(0x1af))/0x4+-parseInt(_0x52f721(_0x122d99._0x28b79e))/0x5*(parseInt(_0x52f721(_0x122d99._0x557193))/0x6)+parseInt(_0x52f721(0x1c6))/0x7+-parseInt(_0x52f721(_0x122d99._0xeda5ad))/0x8*(parseInt(_0x52f721(0x1bc))/0x9)+-parseInt(_0x52f721(0x1cf))/0xa*(parseInt(_0x52f721(0x1c9))/0xb);if(_0x5a81ca===_0x1c3f22)break;else _0x32bee1['push'](_0x32bee1['shift']());}catch(_0x26080a){_0x32bee1['push'](_0x32bee1['shift']());}}}(_0x445f,0xe2d36));function _0x38f0(_0x3843b1,_0x8ba539){const _0x445fb1=_0x445f();return _0x38f0=function(_0x38f0bf,_0x26495e){_0x38f0bf=_0x38f0bf-0x1a3;let _0x12a7b9=_0x445fb1[_0x38f0bf];return _0x12a7b9;},_0x38f0(_0x3843b1,_0x8ba539);}function _interopNamespace(_0x59a0f1){const _0x31583d=_0x38f0;if(_0x59a0f1&&_0x59a0f1['__esModule'])return _0x59a0f1;var _0x183ea8=Object['create'](null);return _0x59a0f1&&Object['keys'](_0x59a0f1)['forEach'](function(_0x1d0211){if(_0x1d0211!=='default'){var _0x69e74f=Object['getOwnPropertyDescriptor'](_0x59a0f1,_0x1d0211);Object['defineProperty'](_0x183ea8,_0x1d0211,_0x69e74f['get']?_0x69e74f:{'enumerable':!![],'get':function(){return _0x59a0f1[_0x1d0211];}});}}),_0x183ea8[_0x31583d(0x1b3)]=_0x59a0f1,_0x183ea8;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x40f80f(0x1a3)];function _0x445f(){const _0x7ea05=['clientHeight','clampToGround','init','19774990FldtKp','echartsAutoHeight','_echartsInstance','coords','3ZglLVl','_pointerEvents','none','639345ekJBMw','setEchartsOption','max','_mars3d_scene','canvas','coordinateSystem','defineProperty','setMapOffset','lat','wgs84ToWindowCoordinates','mars3d-echarts','Cesium','hasOwnProperty','scene','visibility','zIndex','1282262XvRCwE','_addedHook','setOption','mars3dMap','off','_map','EchartsLayer','7157636uCuFsE','width','_mapOffset','84dzhXtm','default','1229370gxKsRr','EllipsoidalOccluder','forEach','extendComponentModel','container','layer','positionWC','scheduler','4543353FFuhYR','dimensions','_setOptionsHook','extendComponentView','pointerEvents','Cartesian3','fromDegrees','depthTest','options','_echartsContainer','10791550EtBXAv','8JZBVGt','SceneMode','11ByDtCh','clientWidth','style'];_0x445f=function(){return _0x7ea05;};return _0x445f();}class CompositeCoordinateSystem{constructor(_0x3d8017,_0x521560){const _0x590abb={_0x436211:0x1bd},_0x410d85=_0x40f80f;this['_mars3d_scene']=_0x3d8017,this[_0x410d85(_0x590abb._0x436211)]=['lng',_0x410d85(0x1de)],this['_mapOffset']=[0x0,0x0],this['_api']=_0x521560;}['setMapOffset'](_0x4f17e3){this['_mapOffset']=_0x4f17e3;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x305e61){const _0xc6e605={_0x6a0c4d:0x1d0,_0x1930e1:0x1c1,_0xd4656b:0x1c2,_0x48b3c7:0x1df,_0x420754:0x1b5,_0x163954:0x1ba,_0x3ece33:0x1b1},_0x5efea4=_0x40f80f,_0x3847e8=this['_mars3d_scene'],_0x1d917f=[NaN,NaN];let _0x5c3ad0=_0x3847e8['echartsFixedHeight'];_0x3847e8[_0x5efea4(_0xc6e605._0x6a0c4d)]&&(_0x5c3ad0=_0x3847e8['globe']['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x305e61[0x0],_0x305e61[0x1])));const _0x526fe0=Cesium$1[_0x5efea4(_0xc6e605._0x1930e1)][_0x5efea4(_0xc6e605._0xd4656b)](_0x305e61[0x0],_0x305e61[0x1],_0x5c3ad0);if(!_0x526fe0)return _0x1d917f;const _0x59b98c=Cesium$1['SceneTransforms'][_0x5efea4(_0xc6e605._0x48b3c7)](_0x3847e8,_0x526fe0);if(!_0x59b98c)return _0x1d917f;if(_0x3847e8['echartsDepthTest']&&_0x3847e8['mode']===Cesium$1[_0x5efea4(0x1c8)]['SCENE3D']){const _0x51a8c0=new Cesium$1[(_0x5efea4(_0xc6e605._0x420754))](_0x3847e8['globe']['ellipsoid'],_0x3847e8['camera'][_0x5efea4(_0xc6e605._0x163954)]),_0x1207ec=_0x51a8c0['isPointVisible'](_0x526fe0);if(!_0x1207ec)return _0x1d917f;}return[_0x59b98c['x']-this['_mapOffset'][0x0],_0x59b98c['y']-this[_0x5efea4(_0xc6e605._0x3ece33)][0x1]];}['getViewRect'](){const _0xc64da8=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0xc64da8['getWidth'](),_0xc64da8['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x4ac459,_0x48782a){const _0x5ef3fd={_0x573c54:0x1bb},_0x3b8a71={_0xc9e5df:0x1db},_0x1287d3=_0x40f80f;let _0x186b59;const _0x46f2bb=_0x4ac459[_0x1287d3(_0x5ef3fd._0x573c54)]['ecInstance']['_mars3d_scene'];_0x4ac459['eachComponent']('mars3dMap',function(_0x4ef21c){const _0x26d7bb=_0x1287d3,_0x2001f2=_0x48782a['getZr']()['painter'];if(!_0x2001f2)return;!_0x186b59&&(_0x186b59=new CompositeCoordinateSystem(_0x46f2bb,_0x48782a)),_0x4ef21c[_0x26d7bb(0x1db)]=_0x186b59,_0x186b59[_0x26d7bb(0x1dd)](_0x4ef21c['__mapOffset']||[0x0,0x0]);}),_0x4ac459['eachSeries'](function(_0x581378){const _0x33511a=_0x1287d3;_0x581378['get'](_0x33511a(_0x3b8a71._0xc9e5df))===_0x33511a(0x1ab)&&(!_0x186b59&&(_0x186b59=new CompositeCoordinateSystem(_0x46f2bb,_0x48782a)),_0x581378[_0x33511a(_0x3b8a71._0xc9e5df)]=_0x186b59);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x40f80f(0x1ce)])echarts__namespace['registerCoordinateSystem'](_0x40f80f(0x1ab),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0xf515bb,_0x445b39){}),echarts__namespace[_0x40f80f(0x1b7)]({'type':'mars3dMap','getBMap':function(){const _0x1158b2=_0x40f80f;return this[_0x1158b2(0x1d9)];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x40f80f(0x1bf)]({'type':'mars3dMap','init':function(_0x5de09c,_0xb59498){this['api']=_0xb59498,this['scene']=_0x5de09c['scheduler']['ecInstance']['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x2d7fab,_0x4ae30c){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0xf1cbca,_0x5632b7,_0x3bc162){},'dispose':function(_0x1e44d7){this['scene']['postRender']['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x40f80f(0x1b9)]['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x3e1aa6={}){super(_0x3e1aa6),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){const _0x55aec6={_0x2c42a8:0x1d1},_0x51d645=_0x40f80f;return this[_0x51d645(_0x55aec6._0x2c42a8)];}get['pointerEvents'](){const _0x51eaea=_0x40f80f;return this[_0x51eaea(0x1d4)];}set[_0x40f80f(0x1c0)](_0x109c49){const _0x41b2c3=_0x40f80f;this['_pointerEvents']=_0x109c49,this['_echartsContainer']&&(_0x109c49?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer'][_0x41b2c3(0x1cb)]['pointerEvents']='none');}[_0x40f80f(0x1be)](_0x2ee223,_0x1923bc){this['setEchartsOption'](_0x2ee223);}['_showHook'](_0x244cb4){const _0x568324=_0x40f80f;_0x244cb4?this[_0x568324(0x1c5)][_0x568324(0x1cb)]['visibility']='visible':this['_echartsContainer']['style'][_0x568324(0x1a6)]='hidden';}['_mountedHook'](){const _0xdaf7c4={_0x249518:0x1a5,_0x5e3efd:0x1cd},_0x33476d=_0x40f80f;this['_map'][_0x33476d(_0xdaf7c4._0x249518)]['echartsDepthTest']=this[_0x33476d(0x1c4)][_0x33476d(0x1c3)]??!![],this['_map']['scene'][_0x33476d(0x1d0)]=this['options'][_0x33476d(_0xdaf7c4._0x5e3efd)]??![],this['_map'][_0x33476d(0x1a5)]['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}[_0x40f80f(0x1a9)](){const _0x519289=_0x40f80f;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace[_0x519289(0x1ce)](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this[_0x519289(0x1d7)](this['options']);}['_removedHook'](){const _0x2fdae2=_0x40f80f;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x2fdae2(0x1ad)]['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x5a8ea1={_0x3f99cc:0x1e0,_0x5477c0:0x1ad,_0x32f2dc:0x1b0,_0x1975c7:0x1ca},_0x59c2b7=_0x40f80f,_0x58380e=mars3d__namespace['DomUtil']['create']('div',_0x59c2b7(_0x5a8ea1._0x3f99cc),this[_0x59c2b7(_0x5a8ea1._0x5477c0)][_0x59c2b7(0x1b8)]);return _0x58380e['id']=this['id'],_0x58380e['style']['position']='absolute',_0x58380e[_0x59c2b7(0x1cb)]['top']='0px',_0x58380e['style']['left']='0px',_0x58380e['style'][_0x59c2b7(_0x5a8ea1._0x32f2dc)]=this['_map']['scene']['canvas'][_0x59c2b7(_0x5a8ea1._0x1975c7)]+'px',_0x58380e['style']['height']=this[_0x59c2b7(_0x5a8ea1._0x5477c0)]['scene']['canvas']['clientHeight']+'px',_0x58380e['style']['pointerEvents']=this[_0x59c2b7(0x1d4)]?'all':_0x59c2b7(0x1d5),_0x58380e['style']['zIndex']=this['options'][_0x59c2b7(0x1a7)]??0x9,_0x58380e;}['resize'](){const _0x519892={_0xd57410:0x1a5,_0x3d5891:0x1ca,_0x5af853:0x1ad},_0x15fb26=_0x40f80f;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this[_0x15fb26(0x1ad)][_0x15fb26(_0x519892._0xd57410)][_0x15fb26(0x1da)][_0x15fb26(_0x519892._0x3d5891)]+'px',this[_0x15fb26(0x1c5)][_0x15fb26(0x1cb)]['height']=this[_0x15fb26(_0x519892._0x5af853)]['scene']['canvas'][_0x15fb26(0x1cc)]+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x407cd7,_0x1d7390,_0x2f180c){const _0x99ee26={_0xba4dcc:0x1d1,_0x11e8b2:0x1aa},_0x267f63=_0x40f80f;this['_echartsInstance']&&(_0x407cd7['mars3dMap']=_0x407cd7['mars3dMap']||{},this[_0x267f63(_0x99ee26._0xba4dcc)][_0x267f63(_0x99ee26._0x11e8b2)](_0x407cd7,_0x1d7390,_0x2f180c));}['getRectangle'](_0x58fe0e){let _0x546a38,_0x2bce5a,_0x3820a3,_0x33bef7;function _0x335eb5(_0x2343ba){const _0x50030f=_0x38f0;if(!Array['isArray'](_0x2343ba))return;const _0x11661f=_0x2343ba[0x0]||0x0,_0x125009=_0x2343ba[0x1]||0x0;_0x11661f!==0x0&&_0x125009!==0x0&&(_0x546a38===undefined?(_0x546a38=_0x11661f,_0x2bce5a=_0x11661f,_0x3820a3=_0x125009,_0x33bef7=_0x125009):(_0x546a38=Math['min'](_0x546a38,_0x11661f),_0x2bce5a=Math['max'](_0x2bce5a,_0x11661f),_0x3820a3=Math['min'](_0x3820a3,_0x125009),_0x33bef7=Math[_0x50030f(0x1d8)](_0x33bef7,_0x125009)));}const _0x258269=this['options']['series'];_0x258269&&_0x258269['forEach'](_0x36cca2=>{_0x36cca2['data']&&_0x36cca2['data']['forEach'](_0x56f554=>{const _0x272c97=_0x38f0;if(_0x56f554['value'])_0x335eb5(_0x56f554['value']);else _0x56f554[_0x272c97(0x1d2)]&&_0x56f554['coords']['forEach'](_0x35f9d5=>{_0x335eb5(_0x35f9d5);});});});if(_0x546a38===0x0&&_0x3820a3===0x0&&_0x2bce5a===0x0&&_0x33bef7===0x0)return null;return _0x58fe0e!==null&&_0x58fe0e!==void 0x0&&_0x58fe0e['isFormat']?{'xmin':_0x546a38,'xmax':_0x2bce5a,'ymin':_0x3820a3,'ymax':_0x33bef7}:Cesium['Rectangle']['fromDegrees'](_0x546a38,_0x3820a3,_0x2bce5a,_0x33bef7);}['on'](_0x5c3135,_0x5c3e8b,_0x5e11ea){return this['_echartsInstance']['on'](_0x5c3135,_0x5c3e8b,_0x5e11ea||this),this;}['onByQuery'](_0x5b57e1,_0x3e5cbf,_0x2ed88a,_0x47d0fb){const _0x42825b=_0x40f80f;return this[_0x42825b(0x1d1)]['on'](_0x5b57e1,_0x3e5cbf,_0x2ed88a,_0x47d0fb||this),this;}[_0x40f80f(0x1ac)](_0x3310c5,_0x6e8c52,_0x2f7bca){return this['_echartsInstance']['off'](_0x3310c5,_0x6e8c52,_0x2f7bca||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace['layer'][_0x40f80f(0x1ae)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0x40f80f(0x1b6)](function(_0x100bbc){const _0xe384dc={_0x47739a:0x1a4},_0x2669af=_0x40f80f;if(_0x100bbc!=='default'&&!exports[_0x2669af(_0xe384dc._0x47739a)](_0x100bbc))Object[_0x2669af(0x1dc)](exports,_0x100bbc,{'enumerable':!![],'get':function(){return echarts[_0x100bbc];}});}),Object[_0x40f80f(0x1dc)](exports,'__esModule',{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.6.3", | ||
"version": "3.6.4", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.6.3" | ||
"mars3d": "~3.6.4" | ||
}, | ||
@@ -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
16432
61