lg_frontend/static/libs/mars3d/plugins/echarts/mars3d-echarts.js

16 lines
13 KiB
JavaScript
Raw Permalink Normal View History

/**
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
*
* 版本信息v3.7.3
* 编译日期2024-02-05 13:29:31
* 版权所有Copyright by 火星科技 http://mars3d.cn
* 使用单位免费公开版 2024-01-15
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, (window.echarts || require('echarts')), (window.mars3d || require('mars3d'))) :
typeof define === 'function' && define.amd ? define(['exports', 'echarts', 'mars3d'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars3d-echarts"] = {}, global.echarts, global.mars3d));
})(this, (function (exports, echarts, mars3d) {
'use strict';const _0x3f6d53=_0x8af0;(function(_0x56f7eb,_0x5e77fd){const _0x312205={_0x2b33e2:0x18f,_0x2bbc9d:0x189,_0x1f2576:0x15c,_0x186edf:0x18e,_0x47cdcd:0x16c,_0xd8749c:0x187,_0x363716:0x15f},_0x186cd3=_0x8af0,_0x53b11e=_0x56f7eb();while(!![]){try{const _0x28ce4a=-parseInt(_0x186cd3(_0x312205._0x2b33e2))/0x1*(-parseInt(_0x186cd3(_0x312205._0x2bbc9d))/0x2)+parseInt(_0x186cd3(0x172))/0x3*(parseInt(_0x186cd3(_0x312205._0x1f2576))/0x4)+parseInt(_0x186cd3(0x157))/0x5+-parseInt(_0x186cd3(_0x312205._0x186edf))/0x6+parseInt(_0x186cd3(_0x312205._0x47cdcd))/0x7*(-parseInt(_0x186cd3(0x184))/0x8)+parseInt(_0x186cd3(0x177))/0x9*(-parseInt(_0x186cd3(_0x312205._0xd8749c))/0xa)+-parseInt(_0x186cd3(_0x312205._0x363716))/0xb*(-parseInt(_0x186cd3(0x18c))/0xc);if(_0x28ce4a===_0x5e77fd)break;else _0x53b11e['push'](_0x53b11e['shift']());}catch(_0x5b57ab){_0x53b11e['push'](_0x53b11e['shift']());}}}(_0x43b4,0xaf4a7));function _0x8af0(_0x45a7b4,_0x21d27f){const _0x43b494=_0x43b4();return _0x8af0=function(_0x8af0c1,_0x807508){_0x8af0c1=_0x8af0c1-0x155;let _0x5a7b0c=_0x43b494[_0x8af0c1];return _0x5a7b0c;},_0x8af0(_0x45a7b4,_0x21d27f);}function _interopNamespace(_0xbe2d59){const _0x17073f={_0x294d77:0x161,_0x379ffa:0x18b},_0x566184={_0x131f66:0x166},_0x57e0ba=_0x8af0;if(_0xbe2d59&&_0xbe2d59[_0x57e0ba(_0x17073f._0x294d77)])return _0xbe2d59;var _0x190df4=Object['create'](null);return _0xbe2d59&&Object[_0x57e0ba(_0x17073f._0x379ffa)](_0xbe2d59)['forEach'](function(_0x1408d8){const _0x35a8a8=_0x57e0ba;if(_0x1408d8!=='default'){var _0x501cca=Object['getOwnPropertyDescriptor'](_0xbe2d59,_0x1408d8);Object[_0x35a8a8(_0x566184._0x131f66)](_0x190df4,_0x1408d8,_0x501cca['get']?_0x501cca:{'enumerable':!![],'get':function(){return _0xbe2d59[_0x1408d8];}});}}),_0x190df4['default']=_0xbe2d59,_0x190df4;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x7867ac,_0x137c2f){this['_mars3d_scene']=_0x7867ac,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x137c2f;}['setMapOffset'](_0x41bfed){this['_mapOffset']=_0x41bfed;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x5c1c63){const _0x2840ce={_0x990e92:0x186,_0x58a2bb:0x179,_0x373495:0x16f,_0x28f5f7:0x162},_0x3b512f=_0x8af0,_0x3995a2=this[_0x3b512f(_0x2840ce._0x990e92)],_0x1c2d92=[NaN,NaN];let _0x122da4=_0x3995a2[_0x3b512f(0x156)];_0x3995a2['echartsAutoHeight']&&(_0x122da4=_0x3995a2['getHeight'](Cesium$1[_0x3b512f(_0x2840ce._0x58a2bb)]['fromDegrees'](_0x5c1c63[0x0],_0x5c1c63[0x1])));const _0x50ff36=Cesium$1['Cartesian3']['fromDegrees'](_0x5c1c63[0x0],_0x5c1c63[0x1],_0x122da4);if(!_0x50ff36)return _0x1c2d92;const _0x2d3b8f=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x3995a2,_0x50ff36);if(!_0x2d3b8f)return _0x1c2d92;if(_0x3995a2[_0x3b512f(0x176)]&&_0x3995a2[_0x3b512f(_0x2840ce._0x373495)]===Cesium$1['SceneMode']['SCENE3D']){const _0x7aecfb=new Cesium$1['EllipsoidalOccluder'](_0x3995a2['globe']['ellipsoid'],_0x3995a2['camera']['positionWC']),_0x25ee1a=_0x7aecfb[_0x3b512f(_0x2840ce._0x28f5f7)](_0x50ff36);if(!_0x25ee1a)return _0x1c2d92;}return[_0x2d3b8f['x']-this['_mapOffset'][0x0],_0x2d3b8f['y']-this[_0x3b512f(0x155)][0x1]];}['getViewRect'](){const _0x2f7513={_0x5a2dee:0x170,_0x1807f0:0x165},_0xdebf02=_0x8af0,_0x583197=this['_api'];return new echarts__namespace['graphic'][(_0xdebf02(_0x2f7513._0x5a2dee))](0x0,0x0,_0x583197[_0xdebf02(0x185)](),_0x583197[_0xdebf02(_0x2f7513._0x1807f0)]());}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x3be320,_0x4108c2){const _0x14bc60=_0x8af0;let _0x221176;const _0x328f20=_0x3be320['scheduler']['ecInstance']['_mars3d_scene'];_0x3be320['eachComponent']('mars3dMap',function(_0x249588){const _0x2c42e8=_0x4108c2['getZr']()['painter'];if(!_0x2c42e8)return;!_0x221176&&(_0x221176=new CompositeCoordinateSystem(_0x328f20,_0x4108c2)),_0x249588['coordinateSystem']=_0x221176,_0x22117
}));