mars3d-echarts
Advanced tools
Comparing version 3.6.17 to 3.6.18
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.6.17 | ||
* 编译日期:2023-12-18 20:13:45 | ||
* 版本信息:v3.6.18 | ||
* 编译日期:2023-12-31 22:36:48 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';const _0x3d1e8b=_0x2a73;(function(_0x28df0b,_0x4ed32a){const _0xe14cf3={_0x4b18b9:0x1f9,_0x4d5fe5:0x1d5,_0x409929:0x1e8},_0x39df2b=_0x2a73,_0x1fbd4d=_0x28df0b();while(!![]){try{const _0x57faec=parseInt(_0x39df2b(0x1f8))/0x1*(parseInt(_0x39df2b(_0xe14cf3._0x4b18b9))/0x2)+-parseInt(_0x39df2b(0x1de))/0x3+parseInt(_0x39df2b(_0xe14cf3._0x4d5fe5))/0x4*(-parseInt(_0x39df2b(0x1f6))/0x5)+-parseInt(_0x39df2b(0x1d1))/0x6+-parseInt(_0x39df2b(0x1fb))/0x7*(-parseInt(_0x39df2b(0x20b))/0x8)+-parseInt(_0x39df2b(0x1e0))/0x9+parseInt(_0x39df2b(_0xe14cf3._0x409929))/0xa;if(_0x57faec===_0x4ed32a)break;else _0x1fbd4d['push'](_0x1fbd4d['shift']());}catch(_0x415fc8){_0x1fbd4d['push'](_0x1fbd4d['shift']());}}}(_0x5f32,0x75087));function _0x5f32(){const _0x27c128=['EchartsLayer','SCENE3D','graphic','api','default','5684904xMZEgJ','pointerEvents','painter','_echartsInstance','4vmqIKW','moveHandler','register','value','extendComponentView','postRender','zIndex','getOwnPropertyDescriptor','__esModule','1645608JZmwpN','dimensions','8099100GFUhgz','_mars3d_scene','min','scene','forEach','coords','_setOptionsHook','setEchartsOption','18820810RlkwYx','echartsFixedHeight','eventParent','coordinateSystem','all','echartsDepthTest','setMapOffset','style','addEventListener','_echartsContainer','_mapOffset','_createChartOverlay','mars3dMap','wgs84ToWindowCoordinates','449615TEXGqi','Cartographic','891453yHfkEx','2rtImLy','create','42GYNghT','visibility','__mapOffset','defineProperty','keys','Util','max','position','registerAction','positionWC','getBMap','Rectangle','options','lat','clientHeight','_map','255568jOYYTm'];_0x5f32=function(){return _0x27c128;};return _0x5f32();}function _0x2a73(_0x578ed6,_0x1919d9){const _0x5f326f=_0x5f32();return _0x2a73=function(_0x2a73d1,_0x21a71a){_0x2a73d1=_0x2a73d1-0x1cc;let _0x3c81f6=_0x5f326f[_0x2a73d1];return _0x3c81f6;},_0x2a73(_0x578ed6,_0x1919d9);}function _interopNamespace(_0x174e4e){const _0x4efcde={_0x32d218:0x1ff,_0x3bf485:0x1d0},_0x5d4538={_0x19d983:0x1dc},_0x355817=_0x2a73;if(_0x174e4e&&_0x174e4e['__esModule'])return _0x174e4e;var _0x3f3421=Object['create'](null);return _0x174e4e&&Object[_0x355817(_0x4efcde._0x32d218)](_0x174e4e)['forEach'](function(_0x2c59d4){const _0x2bb757=_0x355817;if(_0x2c59d4!==_0x2bb757(0x1d0)){var _0x46a82b=Object[_0x2bb757(_0x5d4538._0x19d983)](_0x174e4e,_0x2c59d4);Object['defineProperty'](_0x3f3421,_0x2c59d4,_0x46a82b['get']?_0x46a82b:{'enumerable':!![],'get':function(){return _0x174e4e[_0x2c59d4];}});}}),_0x3f3421[_0x355817(_0x4efcde._0x3bf485)]=_0x174e4e,_0x3f3421;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x2243d8,_0x501ae8){this['_mars3d_scene']=_0x2243d8,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x501ae8;}['setMapOffset'](_0x1653fc){const _0x57ae79=_0x2a73;this[_0x57ae79(0x1f2)]=_0x1653fc;}[_0x3d1e8b(0x205)](){return this['_mars3d_scene'];}['dataToPoint'](_0x135b0b){const _0x2cef25={_0x541cf5:0x1e9,_0x3e0772:0x1f5,_0x5e8463:0x1ed,_0x18f79b:0x1cd,_0x48bd17:0x204},_0x28cfd6=_0x3d1e8b,_0x5adf39=this['_mars3d_scene'],_0x63900f=[NaN,NaN];let _0x28e28c=_0x5adf39[_0x28cfd6(_0x2cef25._0x541cf5)];_0x5adf39['echartsAutoHeight']&&(_0x28e28c=_0x5adf39['globe']['getHeight'](Cesium$1[_0x28cfd6(0x1f7)]['fromDegrees'](_0x135b0b[0x0],_0x135b0b[0x1])));const _0x35e48d=Cesium$1['Cartesian3']['fromDegrees'](_0x135b0b[0x0],_0x135b0b[0x1],_0x28e28c);if(!_0x35e48d)return _0x63900f;const _0xe43088=Cesium$1['SceneTransforms'][_0x28cfd6(_0x2cef25._0x3e0772)](_0x5adf39,_0x35e48d);if(!_0xe43088)return _0x63900f;if(_0x5adf39[_0x28cfd6(_0x2cef25._0x5e8463)]&&_0x5adf39['mode']===Cesium$1['SceneMode'][_0x28cfd6(_0x2cef25._0x18f79b)]){const _0x1dec21=new Cesium$1['EllipsoidalOccluder'](_0x5adf39['globe']['ellipsoid'],_0x5adf39['camera'][_0x28cfd6(_0x2cef25._0x48bd17)]),_0x155b93=_0x1dec21['isPointVisible'](_0x35e48d);if(!_0x155b93)return _0x63900f;}return[_0xe43088['x']-this['_mapOffset'][0x0],_0xe43088['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x44a7d9={_0x2b1af6:0x1ce},_0x1baf89=_0x3d1e8b,_0x2065c9=this['_api'];return new echarts__namespace[(_0x1baf89(_0x44a7d9._0x2b1af6))]['BoundingRect'](0x0,0x0,_0x2065c9['getWidth'](),_0x2065c9['getHeight']());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem[_0x3d1e8b(0x1df)]=['lng',_0x3d1e8b(0x208)],CompositeCoordinateSystem[_0x3d1e8b(0x1fa)]=function(_0x8179ff,_0x3534b9){const _0x1b5d64={_0x5e8a3e:0x1eb},_0x540b2b={_0x1ef0c8:0x1d3,_0x45d40c:0x1ee},_0x3df607=_0x3d1e8b;let _0x1cba39;const _0x35c0c1=_0x8179ff['scheduler']['ecInstance'][_0x3df607(0x1e1)];_0x8179ff['eachComponent']('mars3dMap',function(_0x4f3fa3){const _0x106ec5=_0x3df607,_0x3f200a=_0x3534b9['getZr']()[_0x106ec5(_0x540b2b._0x1ef0c8)];if(!_0x3f200a)return;!_0x1cba39&&(_0x1cba39=new CompositeCoordinateSystem(_0x35c0c1,_0x3534b9)),_0x4f3fa3['coordinateSystem']=_0x1cba39,_0x1cba39[_0x106ec5(_0x540b2b._0x45d40c)](_0x4f3fa3[_0x106ec5(0x1fd)]||[0x0,0x0]);}),_0x8179ff['eachSeries'](function(_0x3e3784){const _0x22154a=_0x3df607;_0x3e3784['get']('coordinateSystem')==='mars3dMap'&&(!_0x1cba39&&(_0x1cba39=new CompositeCoordinateSystem(_0x35c0c1,_0x3534b9)),_0x3e3784[_0x22154a(_0x1b5d64._0x5e8a3e)]=_0x1cba39);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem'](_0x3d1e8b(0x1f4),CompositeCoordinateSystem),echarts__namespace[_0x3d1e8b(0x203)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x3241b1,_0x13efbe){}),echarts__namespace['extendComponentModel']({'type':_0x3d1e8b(0x1f4),'getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0x3d1e8b(0x1d9)]({'type':'mars3dMap','init':function(_0x2a7d95,_0x335499){const _0x46a4d2={_0x4f3c96:0x1cf,_0xdcaf73:0x1f0},_0x32cbb5=_0x3d1e8b;this[_0x32cbb5(_0x46a4d2._0x4f3c96)]=_0x335499,this['scene']=_0x2a7d95['scheduler']['ecInstance']['_mars3d_scene'],this[_0x32cbb5(0x1e3)][_0x32cbb5(0x1da)][_0x32cbb5(_0x46a4d2._0xdcaf73)](this['moveHandler'],this);},'moveHandler':function(_0x457d1b,_0xe4d489){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x4ecad9,_0x2f6da4,_0x547bb6){},'dispose':function(_0x28b4c8){const _0x4b9c2d={_0x58224b:0x1d6},_0x47958c=_0x3d1e8b;this['scene']['postRender']['removeEventListener'](this[_0x47958c(_0x4b9c2d._0x58224b)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x132886={}){super(_0x132886),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x318357){const _0x53079c=_0x3d1e8b;this['_pointerEvents']=_0x318357,this['_echartsContainer']&&(_0x318357?this[_0x53079c(0x1f1)][_0x53079c(0x1ef)][_0x53079c(0x1d2)]=_0x53079c(0x1ec):this['_echartsContainer'][_0x53079c(0x1ef)]['pointerEvents']='none');}[_0x3d1e8b(0x1e6)](_0x154bf5,_0x52d309){const _0x113088={_0x14ef10:0x1e7},_0x26f75f=_0x3d1e8b;this[_0x26f75f(_0x113088._0x14ef10)](_0x154bf5);}['_showHook'](_0x2cb185){const _0x346822=_0x3d1e8b;_0x2cb185?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer']['style'][_0x346822(0x1fc)]='hidden';}['_mountedHook'](){const _0x25d618={_0x102b1d:0x1e9},_0x26e280=_0x3d1e8b;this['_map']['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this['_map'][_0x26e280(0x1e3)]['echartsAutoHeight']=this[_0x26e280(0x207)]['clampToGround']??![],this[_0x26e280(0x20a)]['scene'][_0x26e280(_0x25d618._0x102b1d)]=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x56b673={_0x531d23:0x1f1,_0x4c5c6f:0x1f3,_0x5cfa3b:0x1f1,_0x5be6f6:0x1e1},_0x4eaaa4=_0x3d1e8b;this[_0x4eaaa4(_0x56b673._0x531d23)]=this[_0x4eaaa4(_0x56b673._0x4c5c6f)](),this['_echartsInstance']=echarts__namespace['init'](this[_0x4eaaa4(_0x56b673._0x5cfa3b)]),this['_echartsInstance'][_0x4eaaa4(_0x56b673._0x5be6f6)]=this['_map']['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x42c048={_0x2f7c49:0x1d4},_0x228498=_0x3d1e8b;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0x228498(_0x42c048._0x2f7c49)]['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x37625d={_0x56e8a:0x20a,_0x9cbe59:0x1e3,_0x2997c8:0x20a},_0x281311=_0x3d1e8b,_0x4cd5c6=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map']['container']);return _0x4cd5c6['id']=this['id'],_0x4cd5c6['style'][_0x281311(0x202)]='absolute',_0x4cd5c6['style']['top']='0px',_0x4cd5c6[_0x281311(0x1ef)]['left']='0px',_0x4cd5c6['style']['width']=this[_0x281311(_0x37625d._0x56e8a)][_0x281311(_0x37625d._0x9cbe59)]['canvas']['clientWidth']+'px',_0x4cd5c6['style']['height']=this[_0x281311(_0x37625d._0x2997c8)]['scene']['canvas'][_0x281311(0x209)]+'px',_0x4cd5c6[_0x281311(0x1ef)][_0x281311(0x1d2)]=this['_pointerEvents']?'all':'none',_0x4cd5c6['style']['zIndex']=this['options'][_0x281311(0x1db)]??0x9,_0x4cd5c6;}['resize'](){const _0x1962ba={_0x8ff88c:0x1f1,_0x228900:0x209},_0x43bab9=_0x3d1e8b;if(!this[_0x43bab9(0x1d4)])return;this['_echartsContainer'][_0x43bab9(0x1ef)]['width']=this['_map'][_0x43bab9(0x1e3)]['canvas']['clientWidth']+'px',this[_0x43bab9(_0x1962ba._0x8ff88c)]['style']['height']=this['_map']['scene']['canvas'][_0x43bab9(_0x1962ba._0x228900)]+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x4ce498,_0x3e7a4f,_0x51a1ef){const _0x189a37={_0x493148:0x1ea},_0x50ca91=_0x3d1e8b;this['_echartsInstance']&&(_0x4ce498={'mars3dMap':{},...mars3d__namespace[_0x50ca91(0x200)]['getAttrVal'](_0x4ce498,{'onlySimpleType':!![]})},delete _0x4ce498[_0x50ca91(_0x189a37._0x493148)],this['_echartsInstance']['setOption'](_0x4ce498,_0x3e7a4f,_0x51a1ef));}['getRectangle'](_0x11659e){const _0x3628d1={_0x525133:0x1e4,_0x21cd56:0x206},_0x5c214a={_0x2c834d:0x201},_0x5423fe=_0x3d1e8b;let _0x72d710,_0x3a8007,_0x4cfceb,_0x36ee64;function _0x465c7d(_0x5b8091){const _0x8f822e=_0x2a73;if(!Array['isArray'](_0x5b8091))return;const _0x38caf4=_0x5b8091[0x0]||0x0,_0x4bfc18=_0x5b8091[0x1]||0x0;_0x38caf4!==0x0&&_0x4bfc18!==0x0&&(_0x72d710===undefined?(_0x72d710=_0x38caf4,_0x3a8007=_0x38caf4,_0x4cfceb=_0x4bfc18,_0x36ee64=_0x4bfc18):(_0x72d710=Math['min'](_0x72d710,_0x38caf4),_0x3a8007=Math[_0x8f822e(_0x5c214a._0x2c834d)](_0x3a8007,_0x38caf4),_0x4cfceb=Math[_0x8f822e(0x1e2)](_0x4cfceb,_0x4bfc18),_0x36ee64=Math[_0x8f822e(0x201)](_0x36ee64,_0x4bfc18)));}const _0x14a1f3=this['options']['series'];_0x14a1f3&&_0x14a1f3[_0x5423fe(_0x3628d1._0x525133)](_0x2b74d5=>{const _0x44d90={_0x4ce1cf:0x1d8,_0x150aa0:0x1d8,_0x2bc060:0x1e5};_0x2b74d5['data']&&_0x2b74d5['data']['forEach'](_0x5980f5=>{const _0xd08665=_0x2a73;if(_0x5980f5[_0xd08665(_0x44d90._0x4ce1cf)])_0x465c7d(_0x5980f5[_0xd08665(_0x44d90._0x150aa0)]);else _0x5980f5[_0xd08665(_0x44d90._0x2bc060)]&&_0x5980f5['coords']['forEach'](_0x3cb21c=>{_0x465c7d(_0x3cb21c);});});});if(_0x72d710===0x0&&_0x4cfceb===0x0&&_0x3a8007===0x0&&_0x36ee64===0x0)return null;return _0x11659e!==null&&_0x11659e!==void 0x0&&_0x11659e['isFormat']?{'xmin':_0x72d710,'xmax':_0x3a8007,'ymin':_0x4cfceb,'ymax':_0x36ee64}:Cesium[_0x5423fe(_0x3628d1._0x21cd56)]['fromDegrees'](_0x72d710,_0x4cfceb,_0x3a8007,_0x36ee64);}['on'](_0x2d6a16,_0xd0d289,_0xc24fa6){return this['_echartsInstance']['on'](_0x2d6a16,_0xd0d289,_0xc24fa6||this),this;}['onByQuery'](_0x2d2ba6,_0x8d6727,_0x25bca4,_0xbf73ba){return this['_echartsInstance']['on'](_0x2d2ba6,_0x8d6727,_0x25bca4,_0xbf73ba||this),this;}['off'](_0x481b6e,_0x54d85e,_0x2aed80){return this['_echartsInstance']['off'](_0x481b6e,_0x54d85e,_0x2aed80||this),this;}}mars3d__namespace['LayerUtil'][_0x3d1e8b(0x1d7)]('echarts',EchartsLayer),mars3d__namespace['layer'][_0x3d1e8b(0x1cc)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x466144){const _0x4c10fc={_0x46f8db:0x1d0},_0x421522=_0x3d1e8b;if(_0x466144!==_0x421522(_0x4c10fc._0x46f8db)&&!exports['hasOwnProperty'](_0x466144))Object[_0x421522(0x1fe)](exports,_0x466144,{'enumerable':!![],'get':function(){return echarts[_0x466144];}});}),Object['defineProperty'](exports,_0x3d1e8b(0x1dd),{'value':!![]}); | ||
'use strict';const _0x4ebc41=_0x2518;(function(_0xc70dde,_0x27e4a5){const _0x35339b={_0x2fcb04:0x185,_0x535383:0x17b,_0xd7fd41:0x1a8,_0xc5e3c9:0x17e,_0x3ad940:0x178},_0x46ddc4=_0x2518,_0x1973a4=_0xc70dde();while(!![]){try{const _0x571dff=-parseInt(_0x46ddc4(0x197))/0x1+-parseInt(_0x46ddc4(0x1aa))/0x2*(parseInt(_0x46ddc4(_0x35339b._0x2fcb04))/0x3)+-parseInt(_0x46ddc4(_0x35339b._0x535383))/0x4*(parseInt(_0x46ddc4(_0x35339b._0xd7fd41))/0x5)+parseInt(_0x46ddc4(0x19e))/0x6*(-parseInt(_0x46ddc4(_0x35339b._0xc5e3c9))/0x7)+parseInt(_0x46ddc4(0x172))/0x8+-parseInt(_0x46ddc4(0x1a3))/0x9+parseInt(_0x46ddc4(_0x35339b._0x3ad940))/0xa;if(_0x571dff===_0x27e4a5)break;else _0x1973a4['push'](_0x1973a4['shift']());}catch(_0x3cf434){_0x1973a4['push'](_0x1973a4['shift']());}}}(_0x3ba3,0x8b0f5));function _interopNamespace(_0x2919fe){const _0xa291d={_0x101947:0x1a7},_0x5c3ca5={_0x34c8cd:0x19c},_0xc1d1d4=_0x2518;if(_0x2919fe&&_0x2919fe['__esModule'])return _0x2919fe;var _0x51ab5e=Object[_0xc1d1d4(_0xa291d._0x101947)](null);return _0x2919fe&&Object['keys'](_0x2919fe)['forEach'](function(_0x3ca4de){const _0x225dae=_0xc1d1d4;if(_0x3ca4de!=='default'){var _0x654a91=Object[_0x225dae(_0x5c3ca5._0x34c8cd)](_0x2919fe,_0x3ca4de);Object['defineProperty'](_0x51ab5e,_0x3ca4de,_0x654a91['get']?_0x654a91:{'enumerable':!![],'get':function(){return _0x2919fe[_0x3ca4de];}});}}),_0x51ab5e['default']=_0x2919fe,_0x51ab5e;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x2518(_0x86885a,_0x1fdcb0){const _0x3ba33d=_0x3ba3();return _0x2518=function(_0x2518dd,_0x2e8561){_0x2518dd=_0x2518dd-0x166;let _0x38da4d=_0x3ba33d[_0x2518dd];return _0x38da4d;},_0x2518(_0x86885a,_0x1fdcb0);}const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x1451a0,_0xc352a9){const _0x48a69f={_0x3e0131:0x19a,_0x276a86:0x16a},_0x853ea=_0x2518;this['_mars3d_scene']=_0x1451a0,this['dimensions']=[_0x853ea(_0x48a69f._0x3e0131),'lat'],this[_0x853ea(_0x48a69f._0x276a86)]=[0x0,0x0],this[_0x853ea(0x181)]=_0xc352a9;}[_0x4ebc41(0x184)](_0x593c0f){this['_mapOffset']=_0x593c0f;}[_0x4ebc41(0x188)](){return this['_mars3d_scene'];}['dataToPoint'](_0x186919){const _0x459703={_0x2bb43d:0x198,_0x4c30de:0x176},_0x3a8184=_0x4ebc41,_0x51ea49=this['_mars3d_scene'],_0x14b891=[NaN,NaN];let _0x5f399f=_0x51ea49['echartsFixedHeight'];_0x51ea49['echartsAutoHeight']&&(_0x5f399f=_0x51ea49['globe'][_0x3a8184(_0x459703._0x2bb43d)](Cesium$1['Cartographic']['fromDegrees'](_0x186919[0x0],_0x186919[0x1])));const _0x55f8c7=Cesium$1[_0x3a8184(_0x459703._0x4c30de)]['fromDegrees'](_0x186919[0x0],_0x186919[0x1],_0x5f399f);if(!_0x55f8c7)return _0x14b891;const _0xe15463=Cesium$1[_0x3a8184(0x1a1)]['wgs84ToWindowCoordinates'](_0x51ea49,_0x55f8c7);if(!_0xe15463)return _0x14b891;if(_0x51ea49[_0x3a8184(0x174)]&&_0x51ea49['mode']===Cesium$1[_0x3a8184(0x18b)]['SCENE3D']){const _0x15b7b3=new Cesium$1['EllipsoidalOccluder'](_0x51ea49['globe']['ellipsoid'],_0x51ea49['camera']['positionWC']),_0x667d7=_0x15b7b3[_0x3a8184(0x16f)](_0x55f8c7);if(!_0x667d7)return _0x14b891;}return[_0xe15463['x']-this['_mapOffset'][0x0],_0xe15463['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0xbcce82={_0xb2813:0x19b},_0x3288f4=_0x4ebc41,_0x224a0d=this['_api'];return new echarts__namespace[(_0x3288f4(_0xbcce82._0xb2813))]['BoundingRect'](0x0,0x0,_0x224a0d['getWidth'](),_0x224a0d['getHeight']());}['getRoamTransform'](){const _0x15d386=_0x4ebc41;return echarts__namespace[_0x15d386(0x175)]['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem[_0x4ebc41(0x1a7)]=function(_0x519cd0,_0x1de40f){const _0x4b3087={_0x1c07ce:0x1a4},_0x3369fb=_0x4ebc41;let _0x1ac497;const _0x45233a=_0x519cd0['scheduler'][_0x3369fb(0x193)]['_mars3d_scene'];_0x519cd0['eachComponent']('mars3dMap',function(_0x481559){const _0x50e054=_0x3369fb,_0x330488=_0x1de40f[_0x50e054(0x171)]()['painter'];if(!_0x330488)return;!_0x1ac497&&(_0x1ac497=new CompositeCoordinateSystem(_0x45233a,_0x1de40f)),_0x481559['coordinateSystem']=_0x1ac497,_0x1ac497['setMapOffset'](_0x481559[_0x50e054(0x1ab)]||[0x0,0x0]);}),_0x519cd0['eachSeries'](function(_0x28b854){const _0xce41b8=_0x3369fb;_0x28b854[_0xce41b8(0x1a5)]('coordinateSystem')===_0xce41b8(_0x4b3087._0x1c07ce)&&(!_0x1ac497&&(_0x1ac497=new CompositeCoordinateSystem(_0x45233a,_0x1de40f)),_0x28b854['coordinateSystem']=_0x1ac497);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x4ebc41(0x191)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x9c8d0a,_0xb8d12f){}),echarts__namespace[_0x4ebc41(0x1a9)]({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x2c8bd8,_0x549d2f){const _0x2c5696={_0x35ec0e:0x16b},_0x2b7471=_0x4ebc41;this['api']=_0x549d2f,this['scene']=_0x2c8bd8[_0x2b7471(0x18d)][_0x2b7471(0x193)][_0x2b7471(_0x2c5696._0x35ec0e)],this['scene'][_0x2b7471(0x190)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x3b598a,_0x1bdde3){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x5be373,_0x1d6683,_0x48013b){},'dispose':function(_0x430dfe){const _0x562699=_0x4ebc41;this['scene']['postRender'][_0x562699(0x186)](this['moveHandler'],this);}});else throw new Error(_0x4ebc41(0x1a2));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x561652={}){super(_0x561652),this['_pointerEvents']=this['options']['pointerEvents'];}get[_0x4ebc41(0x182)](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x3ba365=_0x4ebc41;return this[_0x3ba365(0x199)];}set[_0x4ebc41(0x17d)](_0x5a630d){const _0x3d4c6a={_0xeacc99:0x199,_0x34b3c3:0x17d,_0x1b4fba:0x19f},_0xf21002=_0x4ebc41;this[_0xf21002(_0x3d4c6a._0xeacc99)]=_0x5a630d,this['_echartsContainer']&&(_0x5a630d?this[_0xf21002(0x167)]['style'][_0xf21002(_0x3d4c6a._0x34b3c3)]=_0xf21002(_0x3d4c6a._0x1b4fba):this['_echartsContainer'][_0xf21002(0x1a0)]['pointerEvents']='none');}['_setOptionsHook'](_0xb2a89e,_0x28cc69){this['setEchartsOption'](_0xb2a89e);}['_showHook'](_0x437390){const _0x182ea1={_0x242213:0x18e},_0x23d5ed=_0x4ebc41;_0x437390?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer']['style'][_0x23d5ed(_0x182ea1._0x242213)]='hidden';}['_mountedHook'](){const _0x400561={_0x350f50:0x177,_0xcce3be:0x192,_0x33475f:0x18c},_0x361d32=_0x4ebc41;this['_map']['scene']['echartsDepthTest']=this[_0x361d32(_0x400561._0x350f50)][_0x361d32(_0x400561._0xcce3be)]??!![],this['_map'][_0x361d32(0x17f)]['echartsAutoHeight']=this[_0x361d32(0x177)]['clampToGround']??![],this['_map']['scene'][_0x361d32(_0x400561._0x33475f)]=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x9ba510={_0x22e580:0x187,_0x182775:0x166,_0x1da9ee:0x17c,_0x2f08c6:0x177},_0x173e1c=_0x4ebc41;this['_echartsContainer']=this[_0x173e1c(_0x9ba510._0x22e580)](),this[_0x173e1c(0x1a6)]=echarts__namespace[_0x173e1c(_0x9ba510._0x182775)](this['_echartsContainer']),this[_0x173e1c(0x1a6)]['_mars3d_scene']=this[_0x173e1c(_0x9ba510._0x1da9ee)]['scene'],this[_0x173e1c(0x16c)](this[_0x173e1c(_0x9ba510._0x2f08c6)]);}['_removedHook'](){const _0x18d78e={_0x45fa67:0x1a6},_0xd38438=_0x4ebc41;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0xd38438(_0x18d78e._0x45fa67)]['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0xd38438(0x17c)]['container']['removeChild'](this[_0xd38438(0x167)]),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x43370c={_0x2d17e5:0x17c,_0x321b30:0x1a0},_0x5bba4b=_0x4ebc41,_0x40d2c8=mars3d__namespace['DomUtil']['create'](_0x5bba4b(0x183),'mars3d-echarts',this[_0x5bba4b(_0x43370c._0x2d17e5)]['container']);return _0x40d2c8['id']=this['id'],_0x40d2c8[_0x5bba4b(_0x43370c._0x321b30)]['position']='absolute',_0x40d2c8[_0x5bba4b(0x1a0)]['top']='0px',_0x40d2c8['style']['left']='0px',_0x40d2c8['style']['width']=this['_map']['scene'][_0x5bba4b(0x19d)]['clientWidth']+'px',_0x40d2c8['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x40d2c8['style']['pointerEvents']=this['_pointerEvents']?'all':'none',_0x40d2c8['style']['zIndex']=this['options']['zIndex']??0x9,_0x40d2c8;}['resize'](){const _0x126691={_0x468fdf:0x195,_0x9c27cf:0x179,_0x48f024:0x19d},_0x108bb7=_0x4ebc41;if(!this['_echartsInstance'])return;this['_echartsContainer']['style'][_0x108bb7(_0x126691._0x468fdf)]=this['_map']['scene']['canvas']['clientWidth']+'px',this['_echartsContainer']['style'][_0x108bb7(_0x126691._0x9c27cf)]=this['_map'][_0x108bb7(0x17f)][_0x108bb7(_0x126691._0x48f024)]['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x7952b7,_0x4f8ca3,_0xfbe1ce){const _0x262d1f={_0x574ff7:0x16d},_0x440896=_0x4ebc41;this['_echartsInstance']&&(_0x7952b7={'mars3dMap':{},...mars3d__namespace[_0x440896(0x18f)]['getAttrVal'](_0x7952b7,{'onlySimpleType':!![]})},delete _0x7952b7[_0x440896(_0x262d1f._0x574ff7)],this['_echartsInstance'][_0x440896(0x180)](_0x7952b7,_0x4f8ca3,_0xfbe1ce));}[_0x4ebc41(0x17a)](_0x59a4bd){const _0x26c721={_0x4419d2:0x168,_0x1e813c:0x1ac},_0x53e242={_0x30baf0:0x18a,_0x187b6f:0x16e},_0x530691=_0x4ebc41;let _0xbf19eb,_0x27474b,_0x46f78d,_0x5ef2d3;function _0x19ef9a(_0x441c84){const _0x54dd86=_0x2518;if(!Array['isArray'](_0x441c84))return;const _0x1c62b1=_0x441c84[0x0]||0x0,_0x1da04c=_0x441c84[0x1]||0x0;_0x1c62b1!==0x0&&_0x1da04c!==0x0&&(_0xbf19eb===undefined?(_0xbf19eb=_0x1c62b1,_0x27474b=_0x1c62b1,_0x46f78d=_0x1da04c,_0x5ef2d3=_0x1da04c):(_0xbf19eb=Math[_0x54dd86(_0x53e242._0x30baf0)](_0xbf19eb,_0x1c62b1),_0x27474b=Math[_0x54dd86(_0x53e242._0x187b6f)](_0x27474b,_0x1c62b1),_0x46f78d=Math['min'](_0x46f78d,_0x1da04c),_0x5ef2d3=Math[_0x54dd86(0x16e)](_0x5ef2d3,_0x1da04c)));}const _0x14e7a6=this['options']['series'];_0x14e7a6&&_0x14e7a6[_0x530691(_0x26c721._0x4419d2)](_0xe3591e=>{_0xe3591e['data']&&_0xe3591e['data']['forEach'](_0x15ada5=>{if(_0x15ada5['value'])_0x19ef9a(_0x15ada5['value']);else _0x15ada5['coords']&&_0x15ada5['coords']['forEach'](_0x1aa74b=>{_0x19ef9a(_0x1aa74b);});});});if(_0xbf19eb===0x0&&_0x46f78d===0x0&&_0x27474b===0x0&&_0x5ef2d3===0x0)return null;return _0x59a4bd!==null&&_0x59a4bd!==void 0x0&&_0x59a4bd['isFormat']?{'xmin':_0xbf19eb,'xmax':_0x27474b,'ymin':_0x46f78d,'ymax':_0x5ef2d3}:Cesium['Rectangle'][_0x530691(_0x26c721._0x1e813c)](_0xbf19eb,_0x46f78d,_0x27474b,_0x5ef2d3);}['on'](_0x1f919e,_0x3c6cbc,_0xa4a84b){return this['_echartsInstance']['on'](_0x1f919e,_0x3c6cbc,_0xa4a84b||this),this;}['onByQuery'](_0x30d698,_0x5d4088,_0x27b702,_0x2ad439){return this['_echartsInstance']['on'](_0x30d698,_0x5d4088,_0x27b702,_0x2ad439||this),this;}[_0x4ebc41(0x169)](_0x3603a8,_0x578bee,_0x4f29f8){return this['_echartsInstance']['off'](_0x3603a8,_0x578bee,_0x4f29f8||this),this;}}function _0x3ba3(){const _0x116a9b=['4394530QTUuaa','extendComponentModel','2lJghUu','__mapOffset','fromDegrees','init','_echartsContainer','forEach','off','_mapOffset','_mars3d_scene','setEchartsOption','eventParent','max','isPointVisible','defineProperty','getZr','2236216iXqjlF','echarts','echartsDepthTest','matrix','Cartesian3','options','29223550sXtkUW','height','getRectangle','4JNpqTA','_map','pointerEvents','4614785cZdoCa','scene','setOption','_api','layer','div','setMapOffset','1246389npmWIW','removeEventListener','_createChartOverlay','getBMap','EchartsLayer','min','SceneMode','echartsFixedHeight','scheduler','visibility','Util','postRender','registerAction','depthTest','ecInstance','LayerUtil','width','__esModule','12170kBIXdp','getHeight','_pointerEvents','lng','graphic','getOwnPropertyDescriptor','canvas','6bFiLvz','all','style','SceneTransforms','请引入\x20echarts\x20库\x20','5998491zOhikS','mars3dMap','get','_echartsInstance','create'];_0x3ba3=function(){return _0x116a9b;};return _0x3ba3();}mars3d__namespace[_0x4ebc41(0x194)]['register']('echarts',EchartsLayer),mars3d__namespace['layer'][_0x4ebc41(0x189)]=EchartsLayer,mars3d__namespace[_0x4ebc41(0x173)]=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x1aea6d){const _0x2e3659=_0x4ebc41;if(_0x1aea6d!=='default'&&!exports['hasOwnProperty'](_0x1aea6d))Object[_0x2e3659(0x170)](exports,_0x1aea6d,{'enumerable':!![],'get':function(){return echarts[_0x1aea6d];}});}),Object['defineProperty'](exports,_0x4ebc41(0x196),{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.6.17", | ||
"version": "3.6.18", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.6.17" | ||
"mars3d": "~3.6.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
17006