mars3d-echarts
Advanced tools
Comparing version 3.5.14 to 3.5.15
/** | ||
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts | ||
* | ||
* 版本信息:v3.5.14 | ||
* 编译日期:2023-07-03 18:37:16 | ||
* 版本信息:v3.5.15 | ||
* 编译日期:2023-07-10 19:14:40 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17 | ||
})(this, (function (exports, echarts, mars3d) { | ||
'use strict';const _0x3d7d13=_0x58b7;(function(_0x260f41,_0x551732){const _0x1212ba={_0x10a43d:0xaa,_0x4d6d36:0xa9,_0x439560:0xa7,_0x21fbbe:0xa0,_0x372725:0xcd,_0x286bf4:0xb3},_0x23c163=_0x58b7,_0x1b3b6b=_0x260f41();while(!![]){try{const _0x116b99=parseInt(_0x23c163(0xc7))/0x1+parseInt(_0x23c163(_0x1212ba._0x10a43d))/0x2+parseInt(_0x23c163(0xad))/0x3+parseInt(_0x23c163(_0x1212ba._0x4d6d36))/0x4+parseInt(_0x23c163(0xb9))/0x5*(-parseInt(_0x23c163(_0x1212ba._0x439560))/0x6)+parseInt(_0x23c163(_0x1212ba._0x21fbbe))/0x7*(-parseInt(_0x23c163(_0x1212ba._0x372725))/0x8)+parseInt(_0x23c163(_0x1212ba._0x286bf4))/0x9;if(_0x116b99===_0x551732)break;else _0x1b3b6b['push'](_0x1b3b6b['shift']());}catch(_0x6cf900){_0x1b3b6b['push'](_0x1b3b6b['shift']());}}}(_0x36f2,0xd8ea2));function _interopNamespace(_0x11c0ce){const _0x1d6be8={_0x9d3e43:0xc0},_0x116a07=_0x58b7;if(_0x11c0ce&&_0x11c0ce['__esModule'])return _0x11c0ce;var _0x5c204f=Object['create'](null);return _0x11c0ce&&Object['keys'](_0x11c0ce)['forEach'](function(_0x316332){const _0x1724da=_0x58b7;if(_0x316332!=='default'){var _0x467d25=Object['getOwnPropertyDescriptor'](_0x11c0ce,_0x316332);Object[_0x1724da(0xb5)](_0x5c204f,_0x316332,_0x467d25['get']?_0x467d25:{'enumerable':!![],'get':function(){return _0x11c0ce[_0x316332];}});}}),_0x5c204f[_0x116a07(_0x1d6be8._0x9d3e43)]=_0x11c0ce,_0x5c204f;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);function _0x36f2(){const _0x440a73=['create','5853744vMceIQ','top','defineProperty','getZr','visibility','moveHandler','15xNQHxx','echartsFixedHeight','postRender','style','__mapOffset','series','_echartsInstance','default','EchartsLayer','resize','_mapOffset','_map','BoundingRect','_mars3d_scene','869532dBWvvk','width','SceneMode','zIndex','getWidth','_addedHook','2708072VdDewd','max','min','scene','_api','div','layer','coordinateSystem','forEach','21SWWnXK','mars3dMap','painter','请引入\x20echarts\x20库\x20','left','__esModule','init','1941330ssBzgR','_createChartOverlay','1218676KicvtM','16328xUZgVM','hasOwnProperty','_echartsContainer','3125679rvjsEW','options','fromDegrees','none','getHeight'];_0x36f2=function(){return _0x440a73;};return _0x36f2();}function _0x58b7(_0x49558a,_0x407f9f){const _0x36f2be=_0x36f2();return _0x58b7=function(_0x58b75f,_0x3b91c0){_0x58b75f=_0x58b75f-0x9c;let _0x402884=_0x36f2be[_0x58b75f];return _0x402884;},_0x58b7(_0x49558a,_0x407f9f);}const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0xa800c7,_0x32b555){const _0x177b80={_0x4678a9:0xc3,_0x3ee844:0xd1},_0x56ba08=_0x58b7;this['_mars3d_scene']=_0xa800c7,this['dimensions']=['lng','lat'],this[_0x56ba08(_0x177b80._0x4678a9)]=[0x0,0x0],this[_0x56ba08(_0x177b80._0x3ee844)]=_0x32b555;}['setMapOffset'](_0x4ea8a2){this['_mapOffset']=_0x4ea8a2;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x5c6a68){const _0x1f0048={_0x144139:0xc6,_0x43a504:0xc9},_0x17a82c=_0x58b7,_0x27031b=this[_0x17a82c(_0x1f0048._0x144139)],_0x184cc4=[NaN,NaN];let _0x30e54e=_0x27031b[_0x17a82c(0xba)];_0x27031b['echartsAutoHeight']&&(_0x30e54e=_0x27031b['globe']['getHeight'](Cesium$1['Cartographic'][_0x17a82c(0xaf)](_0x5c6a68[0x0],_0x5c6a68[0x1])));const _0x3b1964=Cesium$1['Cartesian3']['fromDegrees'](_0x5c6a68[0x0],_0x5c6a68[0x1],_0x30e54e);if(!_0x3b1964)return _0x184cc4;const _0x3560a7=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x27031b,_0x3b1964);if(!_0x3560a7)return _0x184cc4;if(_0x27031b['echartsDepthTest']&&_0x27031b['mode']===Cesium$1[_0x17a82c(_0x1f0048._0x43a504)]['SCENE3D']){const _0x234a99=new Cesium$1['EllipsoidalOccluder'](_0x27031b['globe']['ellipsoid'],_0x27031b['camera']['positionWC']),_0x4fa62f=_0x234a99['isPointVisible'](_0x3b1964);if(!_0x4fa62f)return _0x184cc4;}return[_0x3560a7['x']-this['_mapOffset'][0x0],_0x3560a7['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x2f9804={_0x5ce5e9:0xc5,_0x282240:0xcb},_0x13b1c1=_0x58b7,_0x24f8f6=this['_api'];return new echarts__namespace['graphic'][(_0x13b1c1(_0x2f9804._0x5ce5e9))](0x0,0x0,_0x24f8f6[_0x13b1c1(_0x2f9804._0x282240)](),_0x24f8f6[_0x13b1c1(0xb1)]());}['getRoamTransform'](){const _0x3a4321=_0x58b7;return echarts__namespace['matrix'][_0x3a4321(0xb2)]();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x838c0,_0x1d84bc){const _0x1c2b28={_0x5a14e4:0xa1},_0x3f246c={_0x3a76a4:0xa2};let _0x194e43;const _0x2a2ec4=_0x838c0['scheduler']['ecInstance']['_mars3d_scene'];_0x838c0['eachComponent']('mars3dMap',function(_0x1da8ae){const _0x47b642=_0x58b7,_0x508ef6=_0x1d84bc[_0x47b642(0xb6)]()[_0x47b642(_0x3f246c._0x3a76a4)];if(!_0x508ef6)return;!_0x194e43&&(_0x194e43=new CompositeCoordinateSystem(_0x2a2ec4,_0x1d84bc)),_0x1da8ae[_0x47b642(0x9e)]=_0x194e43,_0x194e43['setMapOffset'](_0x1da8ae[_0x47b642(0xbd)]||[0x0,0x0]);}),_0x838c0['eachSeries'](function(_0x5c3005){const _0x11558e=_0x58b7;_0x5c3005['get']('coordinateSystem')===_0x11558e(_0x1c2b28._0x5a14e4)&&(!_0x194e43&&(_0x194e43=new CompositeCoordinateSystem(_0x2a2ec4,_0x1d84bc)),_0x5c3005['coordinateSystem']=_0x194e43);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x3d7d13(0xa6)])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x45eac6,_0x753f2f){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x5efc84,_0x4f6764){const _0x5d30eb={_0x3ea733:0xd0},_0x54ba9=_0x3d7d13;this['api']=_0x4f6764,this['scene']=_0x5efc84['scheduler']['ecInstance'][_0x54ba9(0xc6)],this[_0x54ba9(_0x5d30eb._0x3ea733)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x1bfd5f,_0x1446ca){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x2a3dcc,_0x4a3970,_0x3d4fed){},'dispose':function(_0x5196ec){const _0x2362cb={_0x129ddc:0xbb,_0x2664e7:0xb8},_0xb161ce=_0x3d7d13;this['scene'][_0xb161ce(_0x2362cb._0x129ddc)]['removeEventListener'](this[_0xb161ce(_0x2362cb._0x2664e7)],this);}});else throw new Error(_0x3d7d13(0xa3));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x11f3b9={}){const _0x5eaa8c=_0x3d7d13;super(_0x11f3b9),this['_pointerEvents']=this[_0x5eaa8c(0xae)]['pointerEvents'];}get[_0x3d7d13(0x9d)](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x493cb7){const _0x353c75=_0x3d7d13;this['_pointerEvents']=_0x493cb7,this[_0x353c75(0xac)]&&(_0x493cb7?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style']['pointerEvents']='none');}['_setOptionsHook'](_0x5cbda7,_0x4cfab2){this['setEchartsOption'](_0x5cbda7);}['_showHook'](_0x58e1ce){const _0x2e8b29={_0x1b40c1:0xb7},_0x41c427=_0x3d7d13;_0x58e1ce?this['_echartsContainer']['style']['visibility']='visible':this['_echartsContainer'][_0x41c427(0xbc)][_0x41c427(_0x2e8b29._0x1b40c1)]='hidden';}['_mountedHook'](){const _0x1da980={_0x1f0d40:0xd0},_0x127414=_0x3d7d13;this[_0x127414(0xc4)]['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this['_map']['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map'][_0x127414(_0x1da980._0x1f0d40)]['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}[_0x3d7d13(0xcc)](){const _0x559087={_0x29aa24:0xbf,_0x555703:0xa6,_0x4ef074:0xac},_0x477dd6=_0x3d7d13;this['_echartsContainer']=this['_createChartOverlay'](),this[_0x477dd6(_0x559087._0x29aa24)]=echarts__namespace[_0x477dd6(_0x559087._0x555703)](this[_0x477dd6(_0x559087._0x4ef074)]),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x1fe6ca={_0x2b4e54:0xbf,_0x408e13:0xac},_0x5ed5b1=_0x3d7d13;this[_0x5ed5b1(_0x1fe6ca._0x2b4e54)]&&(this[_0x5ed5b1(_0x1fe6ca._0x2b4e54)]['clear'](),this['_echartsInstance']['dispose'](),delete this[_0x5ed5b1(0xbf)]),this[_0x5ed5b1(_0x1fe6ca._0x408e13)]&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x3d7d13(0xa8)](){const _0x95bd43={_0x231124:0x9c,_0x23d96c:0xb4,_0x10e88a:0xa4,_0x53cd7b:0xbc,_0x5bca70:0xd0,_0x1f7427:0xb0},_0x13020f=_0x3d7d13,_0x54bcae=mars3d__namespace['DomUtil']['create'](_0x13020f(_0x95bd43._0x231124),'mars3d-echarts',this['_map']['container']);return _0x54bcae['id']=this['id'],_0x54bcae['style']['position']='absolute',_0x54bcae[_0x13020f(0xbc)][_0x13020f(_0x95bd43._0x23d96c)]='0px',_0x54bcae['style'][_0x13020f(_0x95bd43._0x10e88a)]='0px',_0x54bcae['style']['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0x54bcae[_0x13020f(_0x95bd43._0x53cd7b)]['height']=this['_map'][_0x13020f(_0x95bd43._0x5bca70)]['canvas']['clientHeight']+'px',_0x54bcae['style']['pointerEvents']=this['_pointerEvents']?'all':_0x13020f(_0x95bd43._0x1f7427),_0x54bcae['style']['zIndex']=this[_0x13020f(0xae)][_0x13020f(0xca)]??0x9,_0x54bcae;}[_0x3d7d13(0xc2)](){const _0x11e348={_0x42f125:0xbf,_0x2dcc24:0xd0,_0x21af46:0xac,_0x43fd66:0xc4},_0x522441=_0x3d7d13;if(!this[_0x522441(_0x11e348._0x42f125)])return;this['_echartsContainer'][_0x522441(0xbc)][_0x522441(0xc8)]=this[_0x522441(0xc4)][_0x522441(_0x11e348._0x2dcc24)]['canvas']['clientWidth']+'px',this[_0x522441(_0x11e348._0x21af46)][_0x522441(0xbc)]['height']=this[_0x522441(_0x11e348._0x43fd66)]['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x477409,_0x798d7,_0xad7907){const _0x16b9d5={_0x1c325d:0xa1},_0x519895=_0x3d7d13;this['_echartsInstance']&&(_0x477409[_0x519895(_0x16b9d5._0x1c325d)]=_0x477409['mars3dMap']||{},this['_echartsInstance']['setOption'](_0x477409,_0x798d7,_0xad7907));}['getRectangle'](_0x5c7084){const _0x392674={_0x324551:0xbe,_0xc60186:0xaf},_0xda4d74={_0x5aaaac:0xce,_0x30c1f3:0xcf},_0x29f976=_0x3d7d13;let _0x27daad,_0x3c221f,_0x3bd22b,_0x545077;function _0x26d2ae(_0x332fe8){const _0x47332d=_0x58b7;if(!Array['isArray'](_0x332fe8))return;const _0x5ab062=_0x332fe8[0x0]||0x0,_0x381d09=_0x332fe8[0x1]||0x0;_0x5ab062!==0x0&&_0x381d09!==0x0&&(_0x27daad===undefined?(_0x27daad=_0x5ab062,_0x3c221f=_0x5ab062,_0x3bd22b=_0x381d09,_0x545077=_0x381d09):(_0x27daad=Math['min'](_0x27daad,_0x5ab062),_0x3c221f=Math[_0x47332d(_0xda4d74._0x5aaaac)](_0x3c221f,_0x5ab062),_0x3bd22b=Math[_0x47332d(_0xda4d74._0x30c1f3)](_0x3bd22b,_0x381d09),_0x545077=Math['max'](_0x545077,_0x381d09)));}const _0x2a1cc1=this['options'][_0x29f976(_0x392674._0x324551)];_0x2a1cc1&&_0x2a1cc1['forEach'](_0x1ae534=>{const _0x1b94d1=_0x29f976;_0x1ae534['data']&&_0x1ae534['data'][_0x1b94d1(0x9f)](_0x4478aa=>{if(_0x4478aa['value'])_0x26d2ae(_0x4478aa['value']);else _0x4478aa['coords']&&_0x4478aa['coords']['forEach'](_0x24b689=>{_0x26d2ae(_0x24b689);});});});if(_0x27daad===0x0&&_0x3bd22b===0x0&&_0x3c221f===0x0&&_0x545077===0x0)return null;return _0x5c7084!==null&&_0x5c7084!==void 0x0&&_0x5c7084['isFormat']?{'xmin':_0x27daad,'xmax':_0x3c221f,'ymin':_0x3bd22b,'ymax':_0x545077}:Cesium['Rectangle'][_0x29f976(_0x392674._0xc60186)](_0x27daad,_0x3bd22b,_0x3c221f,_0x545077);}['on'](_0x171b07,_0x40378c,_0x4903be){const _0x3d67ef=_0x3d7d13;return this[_0x3d67ef(0xbf)]['on'](_0x171b07,_0x40378c,_0x4903be||this),this;}['onByQuery'](_0x42e2d9,_0x55c249,_0x295876,_0x57472e){const _0x1d2a28={_0xc7426e:0xbf},_0x453317=_0x3d7d13;return this[_0x453317(_0x1d2a28._0xc7426e)]['on'](_0x42e2d9,_0x55c249,_0x295876,_0x57472e||this),this;}['off'](_0x379164,_0x9caa36,_0x2677f1){return this['_echartsInstance']['off'](_0x379164,_0x9caa36,_0x2677f1||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace['layer'][_0x3d7d13(0xc1)]=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x425538){const _0xc1eb55={_0x384991:0xc0,_0x2f6789:0xab},_0x4cebdf=_0x3d7d13;if(_0x425538!==_0x4cebdf(_0xc1eb55._0x384991)&&!exports[_0x4cebdf(_0xc1eb55._0x2f6789)](_0x425538))Object['defineProperty'](exports,_0x425538,{'enumerable':!![],'get':function(){return echarts[_0x425538];}});}),Object[_0x3d7d13(0xb5)](exports,_0x3d7d13(0xa5),{'value':!![]}); | ||
'use strict';const _0x41bde5=_0x1133;(function(_0xedb972,_0x2ec362){const _0x3c4c30={_0x2e9ed8:0x1e2,_0x59b6bc:0x1f0,_0x97aa3d:0x20a},_0x8dadcd=_0x1133,_0x453e3f=_0xedb972();while(!![]){try{const _0x4b422a=-parseInt(_0x8dadcd(_0x3c4c30._0x2e9ed8))/0x1+parseInt(_0x8dadcd(_0x3c4c30._0x59b6bc))/0x2+-parseInt(_0x8dadcd(0x1ed))/0x3+-parseInt(_0x8dadcd(0x1dc))/0x4*(parseInt(_0x8dadcd(0x1e8))/0x5)+parseInt(_0x8dadcd(0x203))/0x6+parseInt(_0x8dadcd(_0x3c4c30._0x97aa3d))/0x7*(parseInt(_0x8dadcd(0x1f4))/0x8)+parseInt(_0x8dadcd(0x20b))/0x9*(parseInt(_0x8dadcd(0x1f1))/0xa);if(_0x4b422a===_0x2ec362)break;else _0x453e3f['push'](_0x453e3f['shift']());}catch(_0x217ebd){_0x453e3f['push'](_0x453e3f['shift']());}}}(_0xe81e,0x3dfa3));function _interopNamespace(_0xcb4090){const _0x41c87d={_0x245e66:0x1e4},_0x4b691d=_0x1133;if(_0xcb4090&&_0xcb4090[_0x4b691d(_0x41c87d._0x245e66)])return _0xcb4090;var _0x3bf8a3=Object['create'](null);return _0xcb4090&&Object['keys'](_0xcb4090)['forEach'](function(_0x30d0f7){if(_0x30d0f7!=='default'){var _0x18fa69=Object['getOwnPropertyDescriptor'](_0xcb4090,_0x30d0f7);Object['defineProperty'](_0x3bf8a3,_0x30d0f7,_0x18fa69['get']?_0x18fa69:{'enumerable':!![],'get':function(){return _0xcb4090[_0x30d0f7];}});}}),_0x3bf8a3['default']=_0xcb4090,_0x3bf8a3;}function _0x1133(_0x78e39b,_0x53532b){const _0xe81e46=_0xe81e();return _0x1133=function(_0x1133f3,_0x59b7de){_0x1133f3=_0x1133f3-0x1c8;let _0x5bda1b=_0xe81e46[_0x1133f3];return _0x5bda1b;},_0x1133(_0x78e39b,_0x53532b);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x5b8c8e,_0x5f0b3e){this['_mars3d_scene']=_0x5b8c8e,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x5f0b3e;}[_0x41bde5(0x1f3)](_0x278ab4){this['_mapOffset']=_0x278ab4;}['getBMap'](){const _0x32185f=_0x41bde5;return this[_0x32185f(0x204)];}[_0x41bde5(0x1f8)](_0x508287){const _0x4a2de4={_0x3556c8:0x1e0,_0x34790d:0x1d8,_0x7aaff2:0x1d2,_0x30fba7:0x1ca},_0x249ae4=_0x41bde5,_0x42c83d=this['_mars3d_scene'],_0x20284e=[NaN,NaN];let _0x551c8c=_0x42c83d['echartsFixedHeight'];_0x42c83d['echartsAutoHeight']&&(_0x551c8c=_0x42c83d[_0x249ae4(0x1d1)][_0x249ae4(_0x4a2de4._0x3556c8)](Cesium$1['Cartographic']['fromDegrees'](_0x508287[0x0],_0x508287[0x1])));const _0x4df845=Cesium$1[_0x249ae4(0x1ee)][_0x249ae4(0x1f9)](_0x508287[0x0],_0x508287[0x1],_0x551c8c);if(!_0x4df845)return _0x20284e;const _0x56944c=Cesium$1[_0x249ae4(0x1da)]['wgs84ToWindowCoordinates'](_0x42c83d,_0x4df845);if(!_0x56944c)return _0x20284e;if(_0x42c83d[_0x249ae4(_0x4a2de4._0x34790d)]&&_0x42c83d['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x1d0af9=new Cesium$1[(_0x249ae4(0x208))](_0x42c83d['globe']['ellipsoid'],_0x42c83d['camera']['positionWC']),_0x3553eb=_0x1d0af9[_0x249ae4(_0x4a2de4._0x7aaff2)](_0x4df845);if(!_0x3553eb)return _0x20284e;}return[_0x56944c['x']-this[_0x249ae4(0x1ca)][0x0],_0x56944c['y']-this[_0x249ae4(_0x4a2de4._0x30fba7)][0x1]];}['getViewRect'](){const _0x1ef78d={_0x121228:0x1de,_0x1ed869:0x1d3,_0x277e59:0x1ff,_0x3f6310:0x1e0},_0x37980f=_0x41bde5,_0x14bd38=this[_0x37980f(_0x1ef78d._0x121228)];return new echarts__namespace['graphic'][(_0x37980f(_0x1ef78d._0x1ed869))](0x0,0x0,_0x14bd38[_0x37980f(_0x1ef78d._0x277e59)](),_0x14bd38[_0x37980f(_0x1ef78d._0x3f6310)]());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x39ef75,_0xc19f98){const _0xc23e18={_0x57a7af:0x1fc},_0x2ca761={_0x13bdbe:0x207,_0x4d6f8b:0x1fc},_0x24126d={_0x4b7feb:0x1df},_0xffaca4=_0x41bde5;let _0x2ec69e;const _0x1e74ad=_0x39ef75['scheduler']['ecInstance']['_mars3d_scene'];_0x39ef75['eachComponent'](_0xffaca4(_0xc23e18._0x57a7af),function(_0xa691a6){const _0x1c4b50=_0xffaca4,_0x40ba50=_0xc19f98[_0x1c4b50(_0x24126d._0x4b7feb)]()['painter'];if(!_0x40ba50)return;!_0x2ec69e&&(_0x2ec69e=new CompositeCoordinateSystem(_0x1e74ad,_0xc19f98)),_0xa691a6['coordinateSystem']=_0x2ec69e,_0x2ec69e[_0x1c4b50(0x1f3)](_0xa691a6['__mapOffset']||[0x0,0x0]);}),_0x39ef75['eachSeries'](function(_0x39d69e){const _0x1d7448=_0xffaca4;_0x39d69e[_0x1d7448(_0x2ca761._0x13bdbe)]('coordinateSystem')===_0x1d7448(_0x2ca761._0x4d6f8b)&&(!_0x2ec69e&&(_0x2ec69e=new CompositeCoordinateSystem(_0x1e74ad,_0xc19f98)),_0x39d69e['coordinateSystem']=_0x2ec69e);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x41bde5(0x1f2)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x41bde5(0x1c9),'update':'updateLayout'},function(_0x1ef6a9,_0x310018){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x1b4ff3,_0x5768cf){const _0x88f27a={_0x531162:0x206,_0x28821d:0x1fe},_0x1bf64f=_0x41bde5;this['api']=_0x5768cf,this[_0x1bf64f(0x1e9)]=_0x1b4ff3['scheduler'][_0x1bf64f(_0x88f27a._0x531162)]['_mars3d_scene'],this['scene']['postRender'][_0x1bf64f(_0x88f27a._0x28821d)](this['moveHandler'],this);},'moveHandler':function(_0x2029a4,_0x4bc4b6){const _0x2a1981=_0x41bde5;this[_0x2a1981(0x1ef)][_0x2a1981(0x1e5)]({'type':'mars3dMapRoam'});},'render':function(_0x3fdf15,_0x53f270,_0x4f0c74){},'dispose':function(_0xf7f37f){const _0x315d4c=_0x41bde5;this['scene']['postRender']['removeEventListener'](this[_0x315d4c(0x200)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');function _0xe81e(){const _0x1a3a0a=['BoundingRect','clientWidth','echartsAutoHeight','clientHeight','top','echartsDepthTest','options','SceneTransforms','layer','8380PePTKr','_echartsInstance','_api','getZr','getHeight','0px','52688KGDVlW','pointerEvents','__esModule','dispatchAction','canvas','data','910sKiARn','scene','width','div','default','99330pSanxQ','Cartesian3','api','542032PGBuqc','250yCPtPA','registerCoordinateSystem','setMapOffset','264iuxOOZ','height','absolute','none','dataToPoint','fromDegrees','BaseLayer','style','mars3dMap','_echartsContainer','addEventListener','getWidth','moveHandler','depthTest','_pointerEvents','261618SfzsMX','_mars3d_scene','create','ecInstance','get','EllipsoidalOccluder','_removedHook','62587sfhulj','40059rIIbAI','removeChild','mars3dMapRoam','_mapOffset','fixedHeight','isArray','_map','forEach','defineProperty','resize','globe','isPointVisible'];_0xe81e=function(){return _0x1a3a0a;};return _0xe81e();}const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x41bde5(0x1fa)];class EchartsLayer extends BaseLayer{constructor(_0x278fef={}){const _0x129a30=_0x41bde5;super(_0x278fef),this[_0x129a30(0x202)]=this['options'][_0x129a30(0x1e3)];}get[_0x41bde5(0x1db)](){const _0xd3bbb4=_0x41bde5;return this[_0xd3bbb4(0x1dd)];}get['pointerEvents'](){const _0x1b7e7b=_0x41bde5;return this[_0x1b7e7b(0x202)];}set[_0x41bde5(0x1e3)](_0x45054f){const _0x58532b=_0x41bde5;this['_pointerEvents']=_0x45054f,this['_echartsContainer']&&(_0x45054f?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style']['pointerEvents']=_0x58532b(0x1f7));}['_setOptionsHook'](_0x50797c,_0x5ee509){this['setEchartsOption'](_0x50797c);}['_showHook'](_0x276650){const _0x48f0cf={_0xcd9b58:0x1fd},_0x1f136e=_0x41bde5;_0x276650?this[_0x1f136e(0x1fd)]['style']['visibility']='visible':this[_0x1f136e(_0x48f0cf._0xcd9b58)][_0x1f136e(0x1fb)]['visibility']='hidden';}['_mountedHook'](){const _0x45ab24={_0x3c79bf:0x201,_0x544cd9:0x1cd,_0x297c22:0x1d5,_0xb99366:0x1d9},_0x26647e=_0x41bde5;this['_map'][_0x26647e(0x1e9)]['echartsDepthTest']=this['options'][_0x26647e(_0x45ab24._0x3c79bf)]??!![],this[_0x26647e(_0x45ab24._0x544cd9)]['scene'][_0x26647e(_0x45ab24._0x297c22)]=this[_0x26647e(0x1d9)]['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this[_0x26647e(_0x45ab24._0xb99366)][_0x26647e(0x1cb)]??0x0;}['_addedHook'](){const _0x504b34={_0x4ac5cd:0x1e9},_0xb3f6a8=_0x41bde5;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this[_0xb3f6a8(0x1cd)][_0xb3f6a8(_0x504b34._0x4ac5cd)],this['setEchartsOption'](this['options']);}[_0x41bde5(0x209)](){const _0x51894c={_0x5558fe:0x1dd,_0x4f2c0b:0x1c8},_0xbe66d=_0x41bde5;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this['_echartsInstance']['dispose'](),delete this[_0xbe66d(_0x51894c._0x5558fe)]),this[_0xbe66d(0x1fd)]&&(this[_0xbe66d(0x1cd)]['container'][_0xbe66d(_0x51894c._0x4f2c0b)](this['_echartsContainer']),delete this[_0xbe66d(0x1fd)]);}['_createChartOverlay'](){const _0x51a71d={_0x3a821f:0x1eb,_0x4f712b:0x1fb,_0x3e854c:0x1e1,_0x5cc557:0x1ea},_0x20cb96=_0x41bde5,_0x43c354=mars3d__namespace['DomUtil'][_0x20cb96(0x205)](_0x20cb96(_0x51a71d._0x3a821f),'mars3d-echarts',this['_map']['container']);return _0x43c354['id']=this['id'],_0x43c354['style']['position']=_0x20cb96(0x1f6),_0x43c354[_0x20cb96(0x1fb)][_0x20cb96(0x1d7)]='0px',_0x43c354[_0x20cb96(_0x51a71d._0x4f712b)]['left']=_0x20cb96(_0x51a71d._0x3e854c),_0x43c354['style'][_0x20cb96(_0x51a71d._0x5cc557)]=this['_map']['scene'][_0x20cb96(0x1e6)]['clientWidth']+'px',_0x43c354['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x43c354['style']['pointerEvents']=this[_0x20cb96(0x202)]?'all':'none',_0x43c354['style']['zIndex']=this['options']['zIndex']??0x9,_0x43c354;}['resize'](){const _0x36ce5a={_0x1d4266:0x1d4,_0x338e0c:0x1f5,_0x2518f5:0x1d6,_0x4c99bf:0x1dd,_0x3f125e:0x1d0},_0x5cb84c=_0x41bde5;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this['_map']['scene']['canvas'][_0x5cb84c(_0x36ce5a._0x1d4266)]+'px',this['_echartsContainer']['style'][_0x5cb84c(_0x36ce5a._0x338e0c)]=this[_0x5cb84c(0x1cd)]['scene']['canvas'][_0x5cb84c(_0x36ce5a._0x2518f5)]+'px',this[_0x5cb84c(_0x36ce5a._0x4c99bf)][_0x5cb84c(_0x36ce5a._0x3f125e)]();}['setEchartsOption'](_0x24af8a,_0x205cdc,_0x4e426a){const _0x969bfa={_0x5eb5b4:0x1fc},_0x424f26=_0x41bde5;this['_echartsInstance']&&(_0x24af8a[_0x424f26(_0x969bfa._0x5eb5b4)]=_0x24af8a[_0x424f26(0x1fc)]||{},this['_echartsInstance']['setOption'](_0x24af8a,_0x205cdc,_0x4e426a));}['getRectangle'](_0x4f855d){const _0x3e8a43={_0x5406a5:0x1d9},_0xe6f83a={_0x1fa676:0x1cc},_0x4d1cbc=_0x41bde5;let _0x4df990,_0x1e150a,_0x385fef,_0x2931d9;function _0x34fd86(_0x3c5651){const _0x1abb9a=_0x1133;if(!Array[_0x1abb9a(_0xe6f83a._0x1fa676)](_0x3c5651))return;const _0x59b286=_0x3c5651[0x0]||0x0,_0x215c1f=_0x3c5651[0x1]||0x0;_0x59b286!==0x0&&_0x215c1f!==0x0&&(_0x4df990===undefined?(_0x4df990=_0x59b286,_0x1e150a=_0x59b286,_0x385fef=_0x215c1f,_0x2931d9=_0x215c1f):(_0x4df990=Math['min'](_0x4df990,_0x59b286),_0x1e150a=Math['max'](_0x1e150a,_0x59b286),_0x385fef=Math['min'](_0x385fef,_0x215c1f),_0x2931d9=Math['max'](_0x2931d9,_0x215c1f)));}const _0x39ee1e=this[_0x4d1cbc(_0x3e8a43._0x5406a5)]['series'];_0x39ee1e&&_0x39ee1e['forEach'](_0x175d9f=>{const _0x43b4fd=_0x4d1cbc;_0x175d9f['data']&&_0x175d9f[_0x43b4fd(0x1e7)][_0x43b4fd(0x1ce)](_0x2ef7e5=>{if(_0x2ef7e5['value'])_0x34fd86(_0x2ef7e5['value']);else _0x2ef7e5['coords']&&_0x2ef7e5['coords']['forEach'](_0x1ebce4=>{_0x34fd86(_0x1ebce4);});});});if(_0x4df990===0x0&&_0x385fef===0x0&&_0x1e150a===0x0&&_0x2931d9===0x0)return null;return _0x4f855d!==null&&_0x4f855d!==void 0x0&&_0x4f855d['isFormat']?{'xmin':_0x4df990,'xmax':_0x1e150a,'ymin':_0x385fef,'ymax':_0x2931d9}:Cesium['Rectangle']['fromDegrees'](_0x4df990,_0x385fef,_0x1e150a,_0x2931d9);}['on'](_0x14d213,_0x12bbd8,_0x194085){const _0x3b84b6={_0x285ce1:0x1dd},_0x2239ae=_0x41bde5;return this[_0x2239ae(_0x3b84b6._0x285ce1)]['on'](_0x14d213,_0x12bbd8,_0x194085||this),this;}['onByQuery'](_0x5001cb,_0x551a8e,_0x4426e1,_0x1dc5a6){const _0x520bbb={_0x5c39c3:0x1dd},_0x2be590=_0x41bde5;return this[_0x2be590(_0x520bbb._0x5c39c3)]['on'](_0x5001cb,_0x551a8e,_0x4426e1,_0x1dc5a6||this),this;}['off'](_0xbe5c75,_0xbe2cf6,_0x2c58d7){return this['_echartsInstance']['off'](_0xbe5c75,_0xbe2cf6,_0x2c58d7||this),this;}}mars3d__namespace['LayerUtil']['register']('echarts',EchartsLayer),mars3d__namespace[_0x41bde5(0x1db)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)[_0x41bde5(0x1ce)](function(_0x4975ef){const _0x101324=_0x41bde5;if(_0x4975ef!==_0x101324(0x1ec)&&!exports['hasOwnProperty'](_0x4975ef))Object['defineProperty'](exports,_0x4975ef,{'enumerable':!![],'get':function(){return echarts[_0x4975ef];}});}),Object[_0x41bde5(0x1cf)](exports,'__esModule',{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-echarts", | ||
"version": "3.5.14", | ||
"version": "3.5.15", | ||
"description": "Mars3D平台插件,结合echarts可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-echarts.js", | ||
"devDependencies": { | ||
"mars3d": "~3.5.14" | ||
"mars3d": "~3.5.15" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
17124
64