mars3d-echarts 3.5.11 → 3.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mars3d-echarts.js +3 -3
- package/package.json +2 -2
package/dist/mars3d-echarts.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
|
|
3
3
|
*
|
|
4
|
-
* 版本信息:v3.5.
|
|
5
|
-
* 编译日期:2023-06-
|
|
4
|
+
* 版本信息:v3.5.13
|
|
5
|
+
* 编译日期:2023-06-26 22:15:59
|
|
6
6
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
7
7
|
* 使用单位:免费公开版 ,2023-03-17
|
|
8
8
|
*/
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
typeof define === 'function' && define.amd ? define(['exports', 'echarts', 'mars3d'], factory) :
|
|
12
12
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars3d-echarts"] = {}, global.echarts, global.mars3d));
|
|
13
13
|
})(this, (function (exports, echarts, mars3d) {
|
|
14
|
-
'use strict';const _0x1feee5=_0x4206;(function(_0x2757a4,_0x3bf639){const _0x19c41f={_0xb0e6a4:0xe5,_0x1bd2b5:0xf9,_0xb22565:0xe7,_0x364ab4:0xd3,_0x5a7805:0xf5,_0x59518e:0xd5},_0x580b23=_0x4206,_0x50c080=_0x2757a4();while(!![]){try{const _0x3b5e85=parseInt(_0x580b23(_0x19c41f._0xb0e6a4))/0x1+-parseInt(_0x580b23(_0x19c41f._0x1bd2b5))/0x2+parseInt(_0x580b23(_0x19c41f._0xb22565))/0x3+-parseInt(_0x580b23(0x106))/0x4*(parseInt(_0x580b23(_0x19c41f._0x364ab4))/0x5)+parseInt(_0x580b23(_0x19c41f._0x5a7805))/0x6+-parseInt(_0x580b23(_0x19c41f._0x59518e))/0x7+parseInt(_0x580b23(0xdc))/0x8*(parseInt(_0x580b23(0xdb))/0x9);if(_0x3b5e85===_0x3bf639)break;else _0x50c080['push'](_0x50c080['shift']());}catch(_0x4460dd){_0x50c080['push'](_0x50c080['shift']());}}}(_0x1af0,0x2f641));function _interopNamespace(_0x137f13){const _0x1334b1={_0x2cf4f8:0xe4},_0x274d77=_0x4206;if(_0x137f13&&_0x137f13['__esModule'])return _0x137f13;var _0x5842d6=Object[_0x274d77(_0x1334b1._0x2cf4f8)](null);return _0x137f13&&Object['keys'](_0x137f13)['forEach'](function(_0x5422ac){if(_0x5422ac!=='default'){var _0x4b6d32=Object['getOwnPropertyDescriptor'](_0x137f13,_0x5422ac);Object['defineProperty'](_0x5842d6,_0x5422ac,_0x4b6d32['get']?_0x4b6d32:{'enumerable':!![],'get':function(){return _0x137f13[_0x5422ac];}});}}),_0x5842d6['default']=_0x137f13,_0x5842d6;}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x1feee5(0xd8)];class CompositeCoordinateSystem{constructor(_0x590548,_0xd6ab61){const _0x415725={_0x4f4c61:0x108},_0x12bdeb=_0x1feee5;this['_mars3d_scene']=_0x590548,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this[_0x12bdeb(_0x415725._0x4f4c61)]=_0xd6ab61;}['setMapOffset'](_0x1f16f6){this['_mapOffset']=_0x1f16f6;}['getBMap'](){const _0x5ebb67=_0x1feee5;return this[_0x5ebb67(0xdf)];}['dataToPoint'](_0x941a2d){const _0x42e457={_0x1cf1ce:0x102},_0x51ef1b=_0x1feee5,_0x29d523=this['_mars3d_scene'],_0x509575=[NaN,NaN];let _0x37ba6d=_0x29d523[_0x51ef1b(0xf2)];_0x29d523['echartsAutoHeight']&&(_0x37ba6d=_0x29d523[_0x51ef1b(0xde)]['getHeight'](Cesium$1['Cartographic'][_0x51ef1b(_0x42e457._0x1cf1ce)](_0x941a2d[0x0],_0x941a2d[0x1])));const _0x57e203=Cesium$1['Cartesian3']['fromDegrees'](_0x941a2d[0x0],_0x941a2d[0x1],_0x37ba6d);if(!_0x57e203)return _0x509575;const _0x3577e0=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x29d523,_0x57e203);if(!_0x3577e0)return _0x509575;if(_0x29d523['echartsDepthTest']&&_0x29d523['mode']===Cesium$1[_0x51ef1b(0xda)]['SCENE3D']){const _0x52beee=new Cesium$1['EllipsoidalOccluder'](_0x29d523['globe']['ellipsoid'],_0x29d523[_0x51ef1b(0x103)]['positionWC']),_0x4f886f=_0x52beee[_0x51ef1b(0xd2)](_0x57e203);if(!_0x4f886f)return _0x509575;}return[_0x3577e0['x']-this['_mapOffset'][0x0],_0x3577e0['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x36f4d1={_0xa28790:0xeb},_0x46a9a7=_0x1feee5,_0x263845=this['_api'];return new echarts__namespace['graphic'][(_0x46a9a7(_0x36f4d1._0xa28790))](0x0,0x0,_0x263845['getWidth'](),_0x263845['getHeight']());}['getRoamTransform'](){const _0xcbc932={_0x56ebc8:0xf6,_0x12d5ab:0xe4},_0x3a3e1c=_0x1feee5;return echarts__namespace[_0x3a3e1c(_0xcbc932._0x56ebc8)][_0x3a3e1c(_0xcbc932._0x12d5ab)]();}}CompositeCoordinateSystem[_0x1feee5(0xd6)]=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x583924,_0x2ec48a){const _0x5b3021=_0x1feee5;let _0x4dacd0;const _0x3821de=_0x583924[_0x5b3021(0xe1)]['ecInstance']['_mars3d_scene'];_0x583924['eachComponent']('mars3dMap',function(_0x3e2f90){const _0x514dee=_0x5b3021,_0x2fbd60=_0x2ec48a['getZr']()['painter'];if(!_0x2fbd60)return;!_0x4dacd0&&(_0x4dacd0=new CompositeCoordinateSystem(_0x3821de,_0x2ec48a)),_0x3e2f90[_0x514dee(0xed)]=_0x4dacd0,_0x4dacd0['setMapOffset'](_0x3e2f90[_0x514dee(0xe8)]||[0x0,0x0]);}),_0x583924[_0x5b3021(0xe0)](function(_0x51760e){_0x51760e['get']('coordinateSystem')==='mars3dMap'&&(!_0x4dacd0&&(_0x4dacd0=new CompositeCoordinateSystem(_0x3821de,_0x2ec48a)),_0x51760e['coordinateSystem']=_0x4dacd0);});};function _0x4206(_0x3cff74,_0x528cb8){const _0x1af0a1=_0x1af0();return _0x4206=function(_0x4206b7,_0x29f469){_0x4206b7=_0x4206b7-0xcd;let _0x4a628d=_0x1af0a1[_0x4206b7];return _0x4a628d;},_0x4206(_0x3cff74,_0x528cb8);}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace[_0x1feee5(0xd9)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x1feee5(0x109)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x2d69ed,_0x14e4dc){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x5f38a2,_0x5ae2c0){const _0x3f83d1={_0x20f44a:0x10d,_0x55ad2a:0x100,_0xf4b069:0x100},_0x45f182=_0x1feee5;this[_0x45f182(_0x3f83d1._0x20f44a)]=_0x5ae2c0,this[_0x45f182(_0x3f83d1._0x55ad2a)]=_0x5f38a2['scheduler']['ecInstance']['_mars3d_scene'],this[_0x45f182(_0x3f83d1._0xf4b069)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x545481,_0x316e52){const _0x2ac2b4={_0x17c16b:0x10d,_0xef85d0:0xe9},_0x58bf23=_0x1feee5;this[_0x58bf23(_0x2ac2b4._0x17c16b)]['dispatchAction']({'type':_0x58bf23(_0x2ac2b4._0xef85d0)});},'render':function(_0x5f251c,_0x3d5a78,_0x36dbf3){},'dispose':function(_0x28ebbd){const _0x279582=_0x1feee5;this['scene']['postRender']['removeEventListener'](this[_0x279582(0xf1)],this);}});else throw new Error(_0x1feee5(0xcf));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x1feee5(0xee)]['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x3fa608={}){super(_0x3fa608),this['_pointerEvents']=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x358658=_0x1feee5;return this[_0x358658(0x107)];}set['pointerEvents'](_0x153638){const _0x5b9d20={_0x5394cf:0xf3,_0x1c3e21:0x104},_0x3af899=_0x1feee5;this['_pointerEvents']=_0x153638,this[_0x3af899(_0x5b9d20._0x5394cf)]&&(_0x153638?this[_0x3af899(0xf3)]['style']['pointerEvents']='all':this[_0x3af899(0xf3)][_0x3af899(0xf8)][_0x3af899(_0x5b9d20._0x1c3e21)]='none');}[_0x1feee5(0x10b)](_0x4f5987,_0x31eec1){const _0x2db01e={_0xb429a0:0xfd},_0x261566=_0x1feee5;this[_0x261566(_0x2db01e._0xb429a0)](_0x4f5987);}['_showHook'](_0x430d8a){const _0x3bd93c=_0x1feee5;_0x430d8a?this['_echartsContainer']['style']['visibility']=_0x3bd93c(0xf7):this[_0x3bd93c(0xf3)][_0x3bd93c(0xf8)][_0x3bd93c(0xfe)]='hidden';}['_mountedHook'](){const _0x253ced={_0x448195:0xfc,_0x511d10:0xd0,_0x34919b:0xd7,_0x28b493:0xf2},_0x37ee88=_0x1feee5;this['_map']['scene']['echartsDepthTest']=this[_0x37ee88(_0x253ced._0x448195)][_0x37ee88(_0x253ced._0x511d10)]??!![],this[_0x37ee88(0xd7)]['scene']['echartsAutoHeight']=this['options']['clampToGround']??![],this[_0x37ee88(_0x253ced._0x34919b)]['scene'][_0x37ee88(_0x253ced._0x28b493)]=this['options']['fixedHeight']??0x0;}[_0x1feee5(0xe6)](){const _0x598995={_0x3d7ad6:0xf3,_0x11cb32:0xfd},_0x2d9d59=_0x1feee5;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x2d9d59(_0x598995._0x3d7ad6)]),this['_echartsInstance']['_mars3d_scene']=this['_map']['scene'],this[_0x2d9d59(_0x598995._0x11cb32)](this['options']);}['_removedHook'](){const _0x2caf0a={_0x14900e:0xf4},_0x30c4c5=_0x1feee5;this['_echartsInstance']&&(this['_echartsInstance'][_0x30c4c5(_0x2caf0a._0x14900e)](),this['_echartsInstance']['dispose'](),delete this['_echartsInstance']),this['_echartsContainer']&&(this[_0x30c4c5(0xd7)]['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x58a27a={_0x1afccb:0xf8,_0x3aa893:0x101,_0x5d48ab:0xce,_0x5a443c:0xd7,_0x2434db:0xdd,_0x2132f6:0xd7,_0x2190f9:0x104},_0x134260=_0x1feee5,_0xc70fee=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map'][_0x134260(0x10a)]);return _0xc70fee['id']=this['id'],_0xc70fee[_0x134260(_0x58a27a._0x1afccb)]['position']='absolute',_0xc70fee['style'][_0x134260(_0x58a27a._0x3aa893)]=_0x134260(0xce),_0xc70fee['style']['left']=_0x134260(_0x58a27a._0x5d48ab),_0xc70fee['style'][_0x134260(0x10c)]=this[_0x134260(_0x58a27a._0x5a443c)]['scene'][_0x134260(_0x58a27a._0x2434db)]['clientWidth']+'px',_0xc70fee['style']['height']=this[_0x134260(_0x58a27a._0x2132f6)]['scene'][_0x134260(_0x58a27a._0x2434db)][_0x134260(0xe3)]+'px',_0xc70fee['style'][_0x134260(_0x58a27a._0x2190f9)]=this['_pointerEvents']?'all':'none',_0xc70fee['style']['zIndex']=this['options']['zIndex']??0x9,_0xc70fee;}['resize'](){const _0x4d91e3={_0xca5265:0xf8,_0x221bdc:0x100,_0x4f1416:0xe3,_0x49d367:0xec},_0x2f37c9=_0x1feee5;if(!this[_0x2f37c9(0xef)])return;this['_echartsContainer'][_0x2f37c9(_0x4d91e3._0xca5265)]['width']=this['_map'][_0x2f37c9(_0x4d91e3._0x221bdc)]['canvas']['clientWidth']+'px',this['_echartsContainer']['style'][_0x2f37c9(0xea)]=this['_map']['scene'][_0x2f37c9(0xdd)][_0x2f37c9(_0x4d91e3._0x4f1416)]+'px',this['_echartsInstance'][_0x2f37c9(_0x4d91e3._0x49d367)]();}['setEchartsOption'](_0xf73ea3,_0x11d5f8,_0x51cff8){const _0x4de979={_0x2ef8a8:0x105},_0x40f1d8=_0x1feee5;this[_0x40f1d8(0xef)]&&(_0xf73ea3['mars3dMap']=_0xf73ea3[_0x40f1d8(_0x4de979._0x2ef8a8)]||{},this['_echartsInstance']['setOption'](_0xf73ea3,_0x11d5f8,_0x51cff8));}[_0x1feee5(0xfb)](_0xcce6e8){const _0x98e3eb={_0x40c07d:0x102},_0x4e6c99={_0x3c015a:0xe2},_0x114051=_0x1feee5;let _0x35c399,_0x4de811,_0x4113e2,_0x39c0e3;function _0x460b37(_0x45f972){const _0x32c875=_0x4206;if(!Array['isArray'](_0x45f972))return;const _0x34c2c1=_0x45f972[0x0]||0x0,_0xddf9af=_0x45f972[0x1]||0x0;_0x34c2c1!==0x0&&_0xddf9af!==0x0&&(_0x35c399===undefined?(_0x35c399=_0x34c2c1,_0x4de811=_0x34c2c1,_0x4113e2=_0xddf9af,_0x39c0e3=_0xddf9af):(_0x35c399=Math['min'](_0x35c399,_0x34c2c1),_0x4de811=Math[_0x32c875(0xd4)](_0x4de811,_0x34c2c1),_0x4113e2=Math[_0x32c875(_0x4e6c99._0x3c015a)](_0x4113e2,_0xddf9af),_0x39c0e3=Math['max'](_0x39c0e3,_0xddf9af)));}const _0x40e629=this['options']['series'];_0x40e629&&_0x40e629['forEach'](_0x97c98a=>{const _0x336fdc=_0x4206;_0x97c98a['data']&&_0x97c98a[_0x336fdc(0xcd)]['forEach'](_0x5e7aef=>{if(_0x5e7aef['value'])_0x460b37(_0x5e7aef['value']);else _0x5e7aef['coords']&&_0x5e7aef['coords']['forEach'](_0x578f58=>{_0x460b37(_0x578f58);});});});if(_0x35c399===0x0&&_0x4113e2===0x0&&_0x4de811===0x0&&_0x39c0e3===0x0)return null;return _0xcce6e8!==null&&_0xcce6e8!==void 0x0&&_0xcce6e8['isFormat']?{'xmin':_0x35c399,'xmax':_0x4de811,'ymin':_0x4113e2,'ymax':_0x39c0e3}:Cesium['Rectangle'][_0x114051(_0x98e3eb._0x40c07d)](_0x35c399,_0x4113e2,_0x4de811,_0x39c0e3);}['on'](_0x55f08b,_0x3881e8,_0x4cc2ed){return this['_echartsInstance']['on'](_0x55f08b,_0x3881e8,_0x4cc2ed||this),this;}['onByQuery'](_0x24a728,_0x2b45e6,_0x34aac5,_0x322f79){const _0xa6fdc3=_0x1feee5;return this[_0xa6fdc3(0xef)]['on'](_0x24a728,_0x2b45e6,_0x34aac5,_0x322f79||this),this;}['off'](_0x2e6353,_0x1deac0,_0x42bb56){return this['_echartsInstance']['off'](_0x2e6353,_0x1deac0,_0x42bb56||this),this;}}mars3d__namespace[_0x1feee5(0xfa)]['register'](_0x1feee5(0xff),EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0x1feee5(0xf0)](echarts)['forEach'](function(_0x47319e){const _0x123666=_0x1feee5;if(_0x47319e!=='default'&&!exports[_0x123666(0xd1)](_0x47319e))Object['defineProperty'](exports,_0x47319e,{'enumerable':!![],'get':function(){return echarts[_0x47319e];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});function _0x1af0(){const _0x2b2c83=['691338sPNCsd','LayerUtil','getRectangle','options','setEchartsOption','visibility','echarts','scene','top','fromDegrees','camera','pointerEvents','mars3dMap','124AspQaI','_pointerEvents','_api','registerAction','container','_setOptionsHook','width','api','data','0px','请引入\x20echarts\x20库\x20','depthTest','hasOwnProperty','isPointVisible','54715uZwymG','max','1013243AERKAj','dimensions','_map','Cesium','registerCoordinateSystem','SceneMode','27dxNVwP','1213144QflRXm','canvas','globe','_mars3d_scene','eachSeries','scheduler','min','clientHeight','create','240538VSrtIy','_addedHook','912231WOPwBE','__mapOffset','mars3dMapRoam','height','BoundingRect','resize','coordinateSystem','layer','_echartsInstance','keys','moveHandler','echartsFixedHeight','_echartsContainer','clear','145320MmUsoa','matrix','visible','style'];_0x1af0=function(){return _0x2b2c83;};return _0x1af0();}
|
|
14
|
+
'use strict';const _0x1e1b08=_0x5ab3;(function(_0x2cd464,_0x5093a0){const _0x31fdd6={_0x3f862c:0x145,_0x3f8b1a:0x147,_0x8aa4f1:0x162,_0x21e409:0x169,_0x1ee63c:0x15f,_0x25c496:0x137},_0x37ef2b=_0x5ab3,_0x234251=_0x2cd464();while(!![]){try{const _0x2b7d7c=parseInt(_0x37ef2b(_0x31fdd6._0x3f862c))/0x1*(parseInt(_0x37ef2b(0x152))/0x2)+-parseInt(_0x37ef2b(0x166))/0x3*(parseInt(_0x37ef2b(_0x31fdd6._0x3f8b1a))/0x4)+parseInt(_0x37ef2b(0x163))/0x5+-parseInt(_0x37ef2b(_0x31fdd6._0x8aa4f1))/0x6+parseInt(_0x37ef2b(0x160))/0x7+parseInt(_0x37ef2b(_0x31fdd6._0x21e409))/0x8*(-parseInt(_0x37ef2b(_0x31fdd6._0x1ee63c))/0x9)+-parseInt(_0x37ef2b(0x149))/0xa*(-parseInt(_0x37ef2b(_0x31fdd6._0x25c496))/0xb);if(_0x2b7d7c===_0x5093a0)break;else _0x234251['push'](_0x234251['shift']());}catch(_0x1d36a9){_0x234251['push'](_0x234251['shift']());}}}(_0x40f7,0x6a441));function _interopNamespace(_0x22dc01){const _0x5cb447=_0x5ab3;if(_0x22dc01&&_0x22dc01['__esModule'])return _0x22dc01;var _0x1b72f4=Object[_0x5cb447(0x12f)](null);return _0x22dc01&&Object[_0x5cb447(0x157)](_0x22dc01)[_0x5cb447(0x144)](function(_0x400869){if(_0x400869!=='default'){var _0x1e49c7=Object['getOwnPropertyDescriptor'](_0x22dc01,_0x400869);Object['defineProperty'](_0x1b72f4,_0x400869,_0x1e49c7['get']?_0x1e49c7:{'enumerable':!![],'get':function(){return _0x22dc01[_0x400869];}});}}),_0x1b72f4['default']=_0x22dc01,_0x1b72f4;}function _0x40f7(){const _0x55b5ee=['isFormat','8136tusSYo','_showHook','width','237352dtsVXj','pointerEvents','defineProperty','style','zIndex','create','top','layer','setMapOffset','max','scene','_createChartOverlay','value','22oBznaX','__esModule','echartsDepthTest','echarts','registerCoordinateSystem','isPointVisible','getRectangle','_echartsInstance','hidden','dispatchAction','fixedHeight','graphic','coords','forEach','22969lUlspr','data','1276tdNKjO','positionWC','5884570oQBECL','EchartsLayer','clientWidth','registerAction','postRender','isArray','_echartsContainer','absolute','options','10aoenEI','Cartographic','_map','getZr','init','keys','left','register','_mars3d_scene','matrix','_mountedHook','SCENE3D','_api','9NyywAx','529746JvnBWQ','none','2644050gMUYcD','2016500HnEDlD','_mapOffset'];_0x40f7=function(){return _0x55b5ee;};return _0x40f7();}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x34bfcd,_0x5d1cd2){const _0x48add7={_0x43e4c3:0x164},_0x199ac1=_0x5ab3;this['_mars3d_scene']=_0x34bfcd,this['dimensions']=['lng','lat'],this[_0x199ac1(_0x48add7._0x43e4c3)]=[0x0,0x0],this['_api']=_0x5d1cd2;}[_0x1e1b08(0x132)](_0x229eab){this['_mapOffset']=_0x229eab;}['getBMap'](){const _0x167cda={_0x265046:0x15a},_0x33555b=_0x1e1b08;return this[_0x33555b(_0x167cda._0x265046)];}['dataToPoint'](_0x4cb80b){const _0xf5b5={_0x51fc73:0x153,_0x47b2c6:0x148,_0x46e0f5:0x13c},_0x4c3def=_0x1e1b08,_0x378b81=this['_mars3d_scene'],_0x58575b=[NaN,NaN];let _0x1dd08f=_0x378b81['echartsFixedHeight'];_0x378b81['echartsAutoHeight']&&(_0x1dd08f=_0x378b81['globe']['getHeight'](Cesium$1[_0x4c3def(_0xf5b5._0x51fc73)]['fromDegrees'](_0x4cb80b[0x0],_0x4cb80b[0x1])));const _0x3f11db=Cesium$1['Cartesian3']['fromDegrees'](_0x4cb80b[0x0],_0x4cb80b[0x1],_0x1dd08f);if(!_0x3f11db)return _0x58575b;const _0x47026c=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x378b81,_0x3f11db);if(!_0x47026c)return _0x58575b;if(_0x378b81['echartsDepthTest']&&_0x378b81['mode']===Cesium$1['SceneMode'][_0x4c3def(0x15d)]){const _0x53fd4f=new Cesium$1['EllipsoidalOccluder'](_0x378b81['globe']['ellipsoid'],_0x378b81['camera'][_0x4c3def(_0xf5b5._0x47b2c6)]),_0x15f5e6=_0x53fd4f[_0x4c3def(_0xf5b5._0x46e0f5)](_0x3f11db);if(!_0x15f5e6)return _0x58575b;}return[_0x47026c['x']-this['_mapOffset'][0x0],_0x47026c['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x349dc8=_0x1e1b08,_0x25c3a0=this[_0x349dc8(0x15e)];return new echarts__namespace[(_0x349dc8(0x142))]['BoundingRect'](0x0,0x0,_0x25c3a0['getWidth'](),_0x25c3a0['getHeight']());}['getRoamTransform'](){const _0x2fdc15=_0x1e1b08;return echarts__namespace[_0x2fdc15(0x15b)]['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem[_0x1e1b08(0x12f)]=function(_0x5a376c,_0x4c12ab){const _0x1cae02={_0xe0a60a:0x132};let _0x1492e7;const _0x19b97e=_0x5a376c['scheduler']['ecInstance']['_mars3d_scene'];_0x5a376c['eachComponent']('mars3dMap',function(_0x3d648b){const _0x373af9=_0x5ab3,_0x59bb51=_0x4c12ab[_0x373af9(0x155)]()['painter'];if(!_0x59bb51)return;!_0x1492e7&&(_0x1492e7=new CompositeCoordinateSystem(_0x19b97e,_0x4c12ab)),_0x3d648b['coordinateSystem']=_0x1492e7,_0x1492e7[_0x373af9(_0x1cae02._0xe0a60a)](_0x3d648b['__mapOffset']||[0x0,0x0]);}),_0x5a376c['eachSeries'](function(_0x2fc9f8){_0x2fc9f8['get']('coordinateSystem')==='mars3dMap'&&(!_0x1492e7&&(_0x1492e7=new CompositeCoordinateSystem(_0x19b97e,_0x4c12ab)),_0x2fc9f8['coordinateSystem']=_0x1492e7);});};function _0x5ab3(_0x153b58,_0x546242){const _0x40f799=_0x40f7();return _0x5ab3=function(_0x5ab3d1,_0x1d39c9){_0x5ab3d1=_0x5ab3d1-0x12b;let _0x167b9a=_0x40f799[_0x5ab3d1];return _0x167b9a;},_0x5ab3(_0x153b58,_0x546242);}if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x1e1b08(0x156)])echarts__namespace[_0x1e1b08(0x13b)]('mars3dMap',CompositeCoordinateSystem),echarts__namespace[_0x1e1b08(0x14c)]({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x46ac3a,_0x436e39){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x3d0c08,_0xe77377){const _0x431760={_0x7f69a7:0x134},_0xca6fd3=_0x1e1b08;this['api']=_0xe77377,this['scene']=_0x3d0c08['scheduler']['ecInstance'][_0xca6fd3(0x15a)],this[_0xca6fd3(_0x431760._0x7f69a7)]['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x6ebdd9,_0x72f46){const _0x18fa21=_0x1e1b08;this['api'][_0x18fa21(0x140)]({'type':'mars3dMapRoam'});},'render':function(_0x4dc91c,_0x5da845,_0x41405f){},'dispose':function(_0x1497f7){const _0x3dc4a0={_0x512681:0x14d},_0x4f52d4=_0x1e1b08;this['scene'][_0x4f52d4(_0x3dc4a0._0x512681)]['removeEventListener'](this['moveHandler'],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x1e1b08(0x131)]['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x2139f2={}){const _0xcc7d23={_0x4ea2ec:0x151},_0x1e94d3=_0x1e1b08;super(_0x2139f2),this['_pointerEvents']=this[_0x1e94d3(_0xcc7d23._0x4ea2ec)][_0x1e94d3(0x12b)];}get[_0x1e1b08(0x131)](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x4c0c4d){const _0x543c37=_0x1e1b08;this['_pointerEvents']=_0x4c0c4d,this['_echartsContainer']&&(_0x4c0c4d?this[_0x543c37(0x14f)]['style'][_0x543c37(0x12b)]='all':this['_echartsContainer']['style']['pointerEvents']='none');}['_setOptionsHook'](_0x59ec7b,_0x29a713){this['setEchartsOption'](_0x59ec7b);}[_0x1e1b08(0x167)](_0x5eaccc){const _0x404cc7={_0x1e8a70:0x14f},_0x35663b=_0x1e1b08;_0x5eaccc?this[_0x35663b(_0x404cc7._0x1e8a70)]['style']['visibility']='visible':this['_echartsContainer']['style']['visibility']=_0x35663b(0x13f);}[_0x1e1b08(0x15c)](){const _0x3c6932={_0x1fc98c:0x139,_0x57cdbb:0x151,_0x43e72a:0x134,_0x188d3e:0x141},_0x108b1c=_0x1e1b08;this['_map']['scene'][_0x108b1c(_0x3c6932._0x1fc98c)]=this[_0x108b1c(_0x3c6932._0x57cdbb)]['depthTest']??!![],this['_map'][_0x108b1c(_0x3c6932._0x43e72a)]['echartsAutoHeight']=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this[_0x108b1c(0x151)][_0x108b1c(_0x3c6932._0x188d3e)]??0x0;}['_addedHook'](){const _0x1f56e8={_0x28659e:0x154},_0x4c089a=_0x1e1b08;this['_echartsContainer']=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this[_0x4c089a(_0x1f56e8._0x28659e)]['scene'],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x59eeac={_0x46b6d4:0x14f},_0xae705b=_0x1e1b08;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0xae705b(0x13e)]['dispose'](),delete this['_echartsInstance']),this[_0xae705b(_0x59eeac._0x46b6d4)]&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}[_0x1e1b08(0x135)](){const _0x4e8d7b={_0x4d0e6d:0x12f,_0x1a7f4b:0x12d,_0x541170:0x158,_0x48230f:0x12d,_0x4100b3:0x14b,_0x36d17e:0x12b,_0xdf3dbd:0x161,_0x1235ba:0x12e},_0x374ddd=_0x1e1b08,_0x1de7e7=mars3d__namespace['DomUtil'][_0x374ddd(_0x4e8d7b._0x4d0e6d)]('div','mars3d-echarts',this['_map']['container']);return _0x1de7e7['id']=this['id'],_0x1de7e7['style']['position']=_0x374ddd(0x150),_0x1de7e7[_0x374ddd(_0x4e8d7b._0x1a7f4b)][_0x374ddd(0x130)]='0px',_0x1de7e7['style'][_0x374ddd(_0x4e8d7b._0x541170)]='0px',_0x1de7e7[_0x374ddd(_0x4e8d7b._0x48230f)]['width']=this['_map'][_0x374ddd(0x134)]['canvas'][_0x374ddd(_0x4e8d7b._0x4100b3)]+'px',_0x1de7e7[_0x374ddd(0x12d)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x1de7e7['style'][_0x374ddd(_0x4e8d7b._0x36d17e)]=this['_pointerEvents']?'all':_0x374ddd(_0x4e8d7b._0xdf3dbd),_0x1de7e7['style'][_0x374ddd(_0x4e8d7b._0x1235ba)]=this['options']['zIndex']??0x9,_0x1de7e7;}['resize'](){const _0x5b52cb={_0x519dbf:0x14f,_0x5568d5:0x168},_0x2d973b=_0x1e1b08;if(!this[_0x2d973b(0x13e)])return;this[_0x2d973b(_0x5b52cb._0x519dbf)]['style'][_0x2d973b(_0x5b52cb._0x5568d5)]=this['_map']['scene']['canvas']['clientWidth']+'px',this['_echartsContainer']['style']['height']=this[_0x2d973b(0x154)]['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x549e82,_0x44fd80,_0x2b70c1){const _0xa62669=_0x1e1b08;this[_0xa62669(0x13e)]&&(_0x549e82['mars3dMap']=_0x549e82['mars3dMap']||{},this['_echartsInstance']['setOption'](_0x549e82,_0x44fd80,_0x2b70c1));}[_0x1e1b08(0x13d)](_0x4390cf){const _0x37058d={_0x57e932:0x165},_0x127506={_0x12840c:0x146},_0x14fa8d={_0x18a60f:0x136,_0xaa240c:0x144},_0x24d335={_0x1a61b9:0x14e,_0x2f9d91:0x133},_0x1e1670=_0x1e1b08;let _0x164a88,_0x5c5d34,_0x578aaa,_0x4ac6b4;function _0x4fc794(_0x3724b1){const _0x4a6eef=_0x5ab3;if(!Array[_0x4a6eef(_0x24d335._0x1a61b9)](_0x3724b1))return;const _0x37264e=_0x3724b1[0x0]||0x0,_0x48b00f=_0x3724b1[0x1]||0x0;_0x37264e!==0x0&&_0x48b00f!==0x0&&(_0x164a88===undefined?(_0x164a88=_0x37264e,_0x5c5d34=_0x37264e,_0x578aaa=_0x48b00f,_0x4ac6b4=_0x48b00f):(_0x164a88=Math['min'](_0x164a88,_0x37264e),_0x5c5d34=Math[_0x4a6eef(_0x24d335._0x2f9d91)](_0x5c5d34,_0x37264e),_0x578aaa=Math['min'](_0x578aaa,_0x48b00f),_0x4ac6b4=Math[_0x4a6eef(0x133)](_0x4ac6b4,_0x48b00f)));}const _0x1960c2=this['options']['series'];_0x1960c2&&_0x1960c2['forEach'](_0x4532fd=>{const _0x33f159=_0x5ab3;_0x4532fd[_0x33f159(_0x127506._0x12840c)]&&_0x4532fd[_0x33f159(_0x127506._0x12840c)]['forEach'](_0x413e34=>{const _0x2f28ff=_0x33f159;if(_0x413e34['value'])_0x4fc794(_0x413e34[_0x2f28ff(_0x14fa8d._0x18a60f)]);else _0x413e34['coords']&&_0x413e34[_0x2f28ff(0x143)][_0x2f28ff(_0x14fa8d._0xaa240c)](_0x506c21=>{_0x4fc794(_0x506c21);});});});if(_0x164a88===0x0&&_0x578aaa===0x0&&_0x5c5d34===0x0&&_0x4ac6b4===0x0)return null;return _0x4390cf!==null&&_0x4390cf!==void 0x0&&_0x4390cf[_0x1e1670(_0x37058d._0x57e932)]?{'xmin':_0x164a88,'xmax':_0x5c5d34,'ymin':_0x578aaa,'ymax':_0x4ac6b4}:Cesium['Rectangle']['fromDegrees'](_0x164a88,_0x578aaa,_0x5c5d34,_0x4ac6b4);}['on'](_0x4ee5bf,_0x5e2e3d,_0x5618d8){return this['_echartsInstance']['on'](_0x4ee5bf,_0x5e2e3d,_0x5618d8||this),this;}['onByQuery'](_0x5b8c32,_0x2fd3c1,_0x4b8bb9,_0x1afb1c){return this['_echartsInstance']['on'](_0x5b8c32,_0x2fd3c1,_0x4b8bb9,_0x1afb1c||this),this;}['off'](_0x56158f,_0x416d84,_0x282507){const _0x1a0ed7=_0x1e1b08;return this[_0x1a0ed7(0x13e)]['off'](_0x56158f,_0x416d84,_0x282507||this),this;}}mars3d__namespace['LayerUtil'][_0x1e1b08(0x159)]('echarts',EchartsLayer),mars3d__namespace[_0x1e1b08(0x131)]['EchartsLayer']=EchartsLayer,mars3d__namespace[_0x1e1b08(0x13a)]=echarts__namespace,exports[_0x1e1b08(0x14a)]=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x141def){if(_0x141def!=='default'&&!exports['hasOwnProperty'](_0x141def))Object['defineProperty'](exports,_0x141def,{'enumerable':!![],'get':function(){return echarts[_0x141def];}});}),Object[_0x1e1b08(0x12c)](exports,_0x1e1b08(0x138),{'value':!![]});
|
|
15
15
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mars3d-echarts",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.13",
|
|
4
4
|
"description": "Mars3D平台插件,结合echarts可视化功能插件",
|
|
5
5
|
"main": "dist/mars3d-echarts.js",
|
|
6
6
|
"files": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"echarts": "^5.4.1"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"mars3d": "~3.5.
|
|
13
|
+
"mars3d": "~3.5.13"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"lint": "eslint ./src/**/*.{js,ts} --fix"
|