mars3d-echarts 3.6.13 → 3.6.15
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.6.
|
|
5
|
-
* 编译日期:2023-
|
|
4
|
+
* 版本信息:v3.6.15
|
|
5
|
+
* 编译日期:2023-12-05 19:27:11
|
|
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 _0x368bdc=_0x3fc2;(function(_0x56b76f,_0x224ede){const _0xee6d76={_0x5b50d:0x179,_0x93ab5b:0x163,_0x1b66f8:0x14c,_0x2fc96b:0x14b,_0x432df9:0x17c},_0x41571c=_0x3fc2,_0x2cf48b=_0x56b76f();while(!![]){try{const _0x44a17a=parseInt(_0x41571c(0x170))/0x1*(parseInt(_0x41571c(_0xee6d76._0x5b50d))/0x2)+parseInt(_0x41571c(0x15e))/0x3+parseInt(_0x41571c(_0xee6d76._0x93ab5b))/0x4*(parseInt(_0x41571c(0x161))/0x5)+-parseInt(_0x41571c(0x172))/0x6+-parseInt(_0x41571c(_0xee6d76._0x1b66f8))/0x7+parseInt(_0x41571c(_0xee6d76._0x2fc96b))/0x8*(parseInt(_0x41571c(0x17a))/0x9)+parseInt(_0x41571c(_0xee6d76._0x432df9))/0xa;if(_0x44a17a===_0x224ede)break;else _0x2cf48b['push'](_0x2cf48b['shift']());}catch(_0x4f53a9){_0x2cf48b['push'](_0x2cf48b['shift']());}}}(_0x390a,0xe14a3));function _interopNamespace(_0x357d22){const _0x4ff7c1={_0x22d9fe:0x14f},_0x814e6c={_0x4e85d5:0x160},_0x14ed51=_0x3fc2;if(_0x357d22&&_0x357d22['__esModule'])return _0x357d22;var _0x292ce4=Object['create'](null);return _0x357d22&&Object['keys'](_0x357d22)['forEach'](function(_0x5616f7){const _0x55073e=_0x3fc2;if(_0x5616f7!==_0x55073e(0x14f)){var _0x5af779=Object['getOwnPropertyDescriptor'](_0x357d22,_0x5616f7);Object[_0x55073e(_0x814e6c._0x4e85d5)](_0x292ce4,_0x5616f7,_0x5af779['get']?_0x5af779:{'enumerable':!![],'get':function(){return _0x357d22[_0x5616f7];}});}}),_0x292ce4[_0x14ed51(_0x4ff7c1._0x22d9fe)]=_0x357d22,_0x292ce4;}function _0x3fc2(_0x5a2aa7,_0x122d02){const _0x390aff=_0x390a();return _0x3fc2=function(_0x3fc21e,_0x2c64ed){_0x3fc21e=_0x3fc21e-0x14a;let _0x34b9f1=_0x390aff[_0x3fc21e];return _0x34b9f1;},_0x3fc2(_0x5a2aa7,_0x122d02);}function _0x390a(){const _0x5b8b4b=['container','getAttrVal','_mars3d_scene','eachComponent','_map','coords','globe','_mapOffset','2529896YmgTEA','12476821FnPOwY','coordinateSystem','LayerUtil','default','removeEventListener','setEchartsOption','0px','ellipsoid','pointerEvents','width','mode','_echartsInstance','top','ecInstance','_pointerEvents','off','getRectangle','dimensions','4234590rtpPcF','clientHeight','defineProperty','426905oyesef','visibility','20MGzvCG','getRoamTransform','echartsAutoHeight','series','scene','painter','zIndex','extendComponentModel','echartsFixedHeight','matrix','EllipsoidalOccluder','_api','请引入\x20echarts\x20库\x20','10Vhcmdm','mars3dMapRoam','9281574nOzhty','_mountedHook','canvas','layer','Util','style','_echartsContainer','262030UQwcML','9sUfJuE','scheduler','7872970ejOfri','getHeight','Cartesian3'];_0x390a=function(){return _0x5b8b4b;};return _0x390a();}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x4ae20f,_0x5e6ea7){const _0x230cf4={_0x45ff9b:0x14a,_0x48ce82:0x16e},_0x3f7a64=_0x3fc2;this['_mars3d_scene']=_0x4ae20f,this['dimensions']=['lng','lat'],this[_0x3f7a64(_0x230cf4._0x45ff9b)]=[0x0,0x0],this[_0x3f7a64(_0x230cf4._0x48ce82)]=_0x5e6ea7;}['setMapOffset'](_0x4deec3){this['_mapOffset']=_0x4deec3;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x3f4816){const _0x4dcb10={_0x49a9cd:0x181,_0x1845d2:0x16b,_0x21a2d1:0x165,_0x259242:0x17d,_0x372fb5:0x17e,_0x3aaf00:0x16d,_0x1dfce3:0x153},_0x95c73=_0x3fc2,_0xfd9c98=this[_0x95c73(_0x4dcb10._0x49a9cd)],_0x263078=[NaN,NaN];let _0x13c032=_0xfd9c98[_0x95c73(_0x4dcb10._0x1845d2)];_0xfd9c98[_0x95c73(_0x4dcb10._0x21a2d1)]&&(_0x13c032=_0xfd9c98['globe'][_0x95c73(_0x4dcb10._0x259242)](Cesium$1['Cartographic']['fromDegrees'](_0x3f4816[0x0],_0x3f4816[0x1])));const _0x52f894=Cesium$1[_0x95c73(_0x4dcb10._0x372fb5)]['fromDegrees'](_0x3f4816[0x0],_0x3f4816[0x1],_0x13c032);if(!_0x52f894)return _0x263078;const _0x889adf=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0xfd9c98,_0x52f894);if(!_0x889adf)return _0x263078;if(_0xfd9c98['echartsDepthTest']&&_0xfd9c98[_0x95c73(0x156)]===Cesium$1['SceneMode']['SCENE3D']){const _0x2015cb=new Cesium$1[(_0x95c73(_0x4dcb10._0x3aaf00))](_0xfd9c98[_0x95c73(0x185)][_0x95c73(_0x4dcb10._0x1dfce3)],_0xfd9c98['camera']['positionWC']),_0x47ce92=_0x2015cb['isPointVisible'](_0x52f894);if(!_0x47ce92)return _0x263078;}return[_0x889adf['x']-this['_mapOffset'][0x0],_0x889adf['y']-this[_0x95c73(0x14a)][0x1]];}['getViewRect'](){const _0x4580d8=this['_api'];return new echarts__namespace['graphic']['BoundingRect'](0x0,0x0,_0x4580d8['getWidth'](),_0x4580d8['getHeight']());}[_0x368bdc(0x164)](){const _0x12312a=_0x368bdc;return echarts__namespace[_0x12312a(0x16c)]['create']();}}CompositeCoordinateSystem[_0x368bdc(0x15d)]=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x248596,_0x3db53e){const _0x56bbb5={_0x347f3e:0x17b,_0x30de98:0x182},_0x37cf6b=_0x368bdc;let _0x268638;const _0x16f9b9=_0x248596[_0x37cf6b(_0x56bbb5._0x347f3e)]['ecInstance']['_mars3d_scene'];_0x248596[_0x37cf6b(_0x56bbb5._0x30de98)]('mars3dMap',function(_0x387e64){const _0x43d8f3=_0x37cf6b,_0x69a033=_0x3db53e['getZr']()[_0x43d8f3(0x168)];if(!_0x69a033)return;!_0x268638&&(_0x268638=new CompositeCoordinateSystem(_0x16f9b9,_0x3db53e)),_0x387e64['coordinateSystem']=_0x268638,_0x268638['setMapOffset'](_0x387e64['__mapOffset']||[0x0,0x0]);}),_0x248596['eachSeries'](function(_0x274ec3){const _0x3afc1f=_0x37cf6b;_0x274ec3['get']('coordinateSystem')==='mars3dMap'&&(!_0x268638&&(_0x268638=new CompositeCoordinateSystem(_0x16f9b9,_0x3db53e)),_0x274ec3[_0x3afc1f(0x14d)]=_0x268638);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace['init'])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':_0x368bdc(0x171),'update':'updateLayout'},function(_0xecb0ee,_0x268e70){}),echarts__namespace[_0x368bdc(0x16a)]({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x3297ab,_0x5eae7f){const _0x9de80={_0x2896a0:0x167,_0x30aa8c:0x17b},_0x4b876e=_0x368bdc;this['api']=_0x5eae7f,this[_0x4b876e(_0x9de80._0x2896a0)]=_0x3297ab[_0x4b876e(_0x9de80._0x30aa8c)][_0x4b876e(0x159)]['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x128135,_0x320e80){this['api']['dispatchAction']({'type':'mars3dMapRoam'});},'render':function(_0x43687b,_0x898957,_0x4cabc9){},'dispose':function(_0x5d46b9){const _0x3295aa=_0x368bdc;this['scene']['postRender'][_0x3295aa(0x150)](this['moveHandler'],this);}});else throw new Error(_0x368bdc(0x16f));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x3cc69b={}){const _0x2f8104={_0x5a09e3:0x15a},_0x486d51=_0x368bdc;super(_0x3cc69b),this[_0x486d51(_0x2f8104._0x5a09e3)]=this['options']['pointerEvents'];}get[_0x368bdc(0x175)](){return this['_echartsInstance'];}get['pointerEvents'](){return this['_pointerEvents'];}set[_0x368bdc(0x154)](_0x20f183){const _0x5bf442=_0x368bdc;this['_pointerEvents']=_0x20f183,this[_0x5bf442(0x178)]&&(_0x20f183?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer']['style'][_0x5bf442(0x154)]='none');}['_setOptionsHook'](_0x2f8993,_0x582ad5){const _0x45e456=_0x368bdc;this[_0x45e456(0x151)](_0x2f8993);}['_showHook'](_0x3fc345){const _0x58d57e={_0x144527:0x177,_0x2cf6d1:0x162},_0x5f1b59=_0x368bdc;_0x3fc345?this['_echartsContainer'][_0x5f1b59(_0x58d57e._0x144527)]['visibility']='visible':this['_echartsContainer']['style'][_0x5f1b59(_0x58d57e._0x2cf6d1)]='hidden';}[_0x368bdc(0x173)](){const _0x1c0f58=_0x368bdc;this['_map']['scene']['echartsDepthTest']=this['options']['depthTest']??!![],this[_0x1c0f58(0x183)]['scene'][_0x1c0f58(0x165)]=this['options']['clampToGround']??![],this['_map']['scene']['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x799e8a=_0x368bdc;this['_echartsContainer']=this['_createChartOverlay'](),this[_0x799e8a(0x157)]=echarts__namespace['init'](this['_echartsContainer']),this['_echartsInstance']['_mars3d_scene']=this['_map'][_0x799e8a(0x167)],this['setEchartsOption'](this['options']);}['_removedHook'](){const _0x30b2f9={_0x3cbc37:0x157},_0x58d5d4=_0x368bdc;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0x58d5d4(_0x30b2f9._0x3cbc37)]['dispose'](),delete this[_0x58d5d4(0x157)]),this['_echartsContainer']&&(this['_map']['container']['removeChild'](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x245e9c={_0x38b5f4:0x177,_0x372a6d:0x152,_0x14af9a:0x155},_0x30d846=_0x368bdc,_0x591a0a=mars3d__namespace['DomUtil']['create']('div','mars3d-echarts',this['_map'][_0x30d846(0x17f)]);return _0x591a0a['id']=this['id'],_0x591a0a['style']['position']='absolute',_0x591a0a['style'][_0x30d846(0x158)]='0px',_0x591a0a[_0x30d846(_0x245e9c._0x38b5f4)]['left']=_0x30d846(_0x245e9c._0x372a6d),_0x591a0a[_0x30d846(0x177)][_0x30d846(_0x245e9c._0x14af9a)]=this['_map']['scene']['canvas']['clientWidth']+'px',_0x591a0a['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x591a0a['style'][_0x30d846(0x154)]=this['_pointerEvents']?'all':'none',_0x591a0a['style']['zIndex']=this['options'][_0x30d846(0x169)]??0x9,_0x591a0a;}['resize'](){const _0x119f96={_0x8cc515:0x157,_0x5cbd03:0x15f},_0xf10107=_0x368bdc;if(!this[_0xf10107(_0x119f96._0x8cc515)])return;this['_echartsContainer']['style']['width']=this[_0xf10107(0x183)]['scene']['canvas']['clientWidth']+'px',this[_0xf10107(0x178)][_0xf10107(0x177)]['height']=this['_map']['scene'][_0xf10107(0x174)][_0xf10107(_0x119f96._0x5cbd03)]+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x82cca0,_0x131c92,_0x4ca06f){const _0x17ddfd=_0x368bdc;this['_echartsInstance']&&(_0x82cca0={'mars3dMap':{},...mars3d__namespace[_0x17ddfd(0x176)][_0x17ddfd(0x180)](_0x82cca0,{'onlySimpleType':!![]})},delete _0x82cca0['eventParent'],this['_echartsInstance']['setOption'](_0x82cca0,_0x131c92,_0x4ca06f));}[_0x368bdc(0x15c)](_0x40bff4){const _0x2fafea=_0x368bdc;let _0x3173a2,_0x14ee4e,_0x93a37d,_0x1826b3;function _0x29c157(_0xbe87c3){if(!Array['isArray'](_0xbe87c3))return;const _0x33e702=_0xbe87c3[0x0]||0x0,_0x351d64=_0xbe87c3[0x1]||0x0;_0x33e702!==0x0&&_0x351d64!==0x0&&(_0x3173a2===undefined?(_0x3173a2=_0x33e702,_0x14ee4e=_0x33e702,_0x93a37d=_0x351d64,_0x1826b3=_0x351d64):(_0x3173a2=Math['min'](_0x3173a2,_0x33e702),_0x14ee4e=Math['max'](_0x14ee4e,_0x33e702),_0x93a37d=Math['min'](_0x93a37d,_0x351d64),_0x1826b3=Math['max'](_0x1826b3,_0x351d64)));}const _0x1d8014=this['options'][_0x2fafea(0x166)];_0x1d8014&&_0x1d8014['forEach'](_0x456f58=>{const _0x52a270={_0x156ae4:0x184};_0x456f58['data']&&_0x456f58['data']['forEach'](_0x327516=>{const _0x201a93=_0x3fc2;if(_0x327516['value'])_0x29c157(_0x327516['value']);else _0x327516[_0x201a93(_0x52a270._0x156ae4)]&&_0x327516['coords']['forEach'](_0x55af98=>{_0x29c157(_0x55af98);});});});if(_0x3173a2===0x0&&_0x93a37d===0x0&&_0x14ee4e===0x0&&_0x1826b3===0x0)return null;return _0x40bff4!==null&&_0x40bff4!==void 0x0&&_0x40bff4['isFormat']?{'xmin':_0x3173a2,'xmax':_0x14ee4e,'ymin':_0x93a37d,'ymax':_0x1826b3}:Cesium['Rectangle']['fromDegrees'](_0x3173a2,_0x93a37d,_0x14ee4e,_0x1826b3);}['on'](_0x1b9369,_0x221f25,_0x4f5f1c){return this['_echartsInstance']['on'](_0x1b9369,_0x221f25,_0x4f5f1c||this),this;}['onByQuery'](_0x274b4e,_0x4d58e4,_0x247df0,_0x28645d){return this['_echartsInstance']['on'](_0x274b4e,_0x4d58e4,_0x247df0,_0x28645d||this),this;}['off'](_0x36413f,_0x53b660,_0x484948){const _0x471d52={_0xeb7ed5:0x15b},_0x58adac=_0x368bdc;return this['_echartsInstance'][_0x58adac(_0x471d52._0xeb7ed5)](_0x36413f,_0x53b660,_0x484948||this),this;}}mars3d__namespace[_0x368bdc(0x14e)]['register']('echarts',EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x18429f){const _0x216a7e={_0x520a42:0x160},_0x5a19a8=_0x368bdc;if(_0x18429f!=='default'&&!exports['hasOwnProperty'](_0x18429f))Object[_0x5a19a8(_0x216a7e._0x520a42)](exports,_0x18429f,{'enumerable':!![],'get':function(){return echarts[_0x18429f];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
|
|
14
|
+
'use strict';const _0xf14be9=_0x99bc;(function(_0x5ded5c,_0xc0e195){const _0x464ea3={_0x21f9f6:0xfa,_0x221b25:0x120,_0x54d3a3:0x121},_0x5bcc9c=_0x99bc,_0x1ac6c3=_0x5ded5c();while(!![]){try{const _0x453db5=parseInt(_0x5bcc9c(0x119))/0x1*(-parseInt(_0x5bcc9c(_0x464ea3._0x21f9f6))/0x2)+parseInt(_0x5bcc9c(0xfd))/0x3+parseInt(_0x5bcc9c(0x108))/0x4*(-parseInt(_0x5bcc9c(_0x464ea3._0x221b25))/0x5)+parseInt(_0x5bcc9c(0x11a))/0x6+-parseInt(_0x5bcc9c(_0x464ea3._0x54d3a3))/0x7*(-parseInt(_0x5bcc9c(0x109))/0x8)+parseInt(_0x5bcc9c(0x122))/0x9+-parseInt(_0x5bcc9c(0xed))/0xa*(-parseInt(_0x5bcc9c(0x112))/0xb);if(_0x453db5===_0xc0e195)break;else _0x1ac6c3['push'](_0x1ac6c3['shift']());}catch(_0x4fdac4){_0x1ac6c3['push'](_0x1ac6c3['shift']());}}}(_0x38b5,0xaaae5));function _0x38b5(){const _0x1eb951=['depthTest','mars3dMap','1735295zLKUkS','7scgaXr','4819527wWGJax','Cesium','coords','extendComponentView','mode','ecInstance','min','all','register','_mapOffset','create','painter','visibility','315310huVHXc','BoundingRect','container','postRender','eventParent','value','clampToGround','dispatchAction','setMapOffset','_echartsInstance','api','position','_echartsContainer','662ebijjn','removeChild','canvas','2891727gulBGR','style','clientWidth','keys','lng','div','default','fixedHeight','_map','getRectangle','ellipsoid','4sYtEMW','1362728nkEVEz','eachSeries','_pointerEvents','scene','Cartesian3','zIndex','forEach','_removedHook','options','44JYFQgW','pointerEvents','max','init','getRoamTransform','getHeight','moveHandler','3099uxkbau','1656360mPPFyL','globe','clear','data'];_0x38b5=function(){return _0x1eb951;};return _0x38b5();}function _interopNamespace(_0x334b3e){const _0x19b6a2={_0x1101ac:0x103},_0x16d509={_0x208b58:0x103},_0x148929=_0x99bc;if(_0x334b3e&&_0x334b3e['__esModule'])return _0x334b3e;var _0xc7d44=Object['create'](null);return _0x334b3e&&Object['keys'](_0x334b3e)['forEach'](function(_0x5f4b72){const _0x2b8f40=_0x99bc;if(_0x5f4b72!==_0x2b8f40(_0x16d509._0x208b58)){var _0x2dc93c=Object['getOwnPropertyDescriptor'](_0x334b3e,_0x5f4b72);Object['defineProperty'](_0xc7d44,_0x5f4b72,_0x2dc93c['get']?_0x2dc93c:{'enumerable':!![],'get':function(){return _0x334b3e[_0x5f4b72];}});}}),_0xc7d44[_0x148929(_0x19b6a2._0x1101ac)]=_0x334b3e,_0xc7d44;}function _0x99bc(_0x5bdb45,_0x20461c){const _0x38b568=_0x38b5();return _0x99bc=function(_0x99bc48,_0x50d313){_0x99bc48=_0x99bc48-0xe6;let _0x219667=_0x38b568[_0x99bc48];return _0x219667;},_0x99bc(_0x5bdb45,_0x20461c);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0xf14be9(0x123)];class CompositeCoordinateSystem{constructor(_0x392172,_0x39cc27){this['_mars3d_scene']=_0x392172,this['dimensions']=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x39cc27;}[_0xf14be9(0xf5)](_0x466ce4){const _0x127407={_0x26961e:0xe9},_0x4855fc=_0xf14be9;this[_0x4855fc(_0x127407._0x26961e)]=_0x466ce4;}['getBMap'](){return this['_mars3d_scene'];}['dataToPoint'](_0x918601){const _0x9e18a7={_0x4a24db:0x117},_0x30c755=_0xf14be9,_0xef812a=this['_mars3d_scene'],_0x3a639f=[NaN,NaN];let _0x4f1e24=_0xef812a['echartsFixedHeight'];_0xef812a['echartsAutoHeight']&&(_0x4f1e24=_0xef812a[_0x30c755(0x11b)][_0x30c755(_0x9e18a7._0x4a24db)](Cesium$1['Cartographic']['fromDegrees'](_0x918601[0x0],_0x918601[0x1])));const _0x219845=Cesium$1[_0x30c755(0x10d)]['fromDegrees'](_0x918601[0x0],_0x918601[0x1],_0x4f1e24);if(!_0x219845)return _0x3a639f;const _0x4ae802=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0xef812a,_0x219845);if(!_0x4ae802)return _0x3a639f;if(_0xef812a['echartsDepthTest']&&_0xef812a[_0x30c755(0x126)]===Cesium$1['SceneMode']['SCENE3D']){const _0x40debf=new Cesium$1['EllipsoidalOccluder'](_0xef812a['globe'][_0x30c755(0x107)],_0xef812a['camera']['positionWC']),_0xe52881=_0x40debf['isPointVisible'](_0x219845);if(!_0xe52881)return _0x3a639f;}return[_0x4ae802['x']-this['_mapOffset'][0x0],_0x4ae802['y']-this['_mapOffset'][0x1]];}['getViewRect'](){const _0x4229fc={_0x1148d5:0xee},_0x41a132=_0xf14be9,_0x231583=this['_api'];return new echarts__namespace['graphic'][(_0x41a132(_0x4229fc._0x1148d5))](0x0,0x0,_0x231583['getWidth'](),_0x231583['getHeight']());}[_0xf14be9(0x116)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=[_0xf14be9(0x101),'lat'],CompositeCoordinateSystem[_0xf14be9(0xea)]=function(_0x2d3d2b,_0x2fcb15){const _0x3f83ff={_0xefa6b2:0x10a},_0x30ef16={_0x5a4dbf:0xeb},_0x20cf4b=_0xf14be9;let _0x5b423a;const _0x43df8c=_0x2d3d2b['scheduler'][_0x20cf4b(0x127)]['_mars3d_scene'];_0x2d3d2b['eachComponent']('mars3dMap',function(_0x5e0405){const _0x39cf74=_0x20cf4b,_0x4fa37f=_0x2fcb15['getZr']()[_0x39cf74(_0x30ef16._0x5a4dbf)];if(!_0x4fa37f)return;!_0x5b423a&&(_0x5b423a=new CompositeCoordinateSystem(_0x43df8c,_0x2fcb15)),_0x5e0405['coordinateSystem']=_0x5b423a,_0x5b423a['setMapOffset'](_0x5e0405['__mapOffset']||[0x0,0x0]);}),_0x2d3d2b[_0x20cf4b(_0x3f83ff._0xefa6b2)](function(_0x5ee7f7){_0x5ee7f7['get']('coordinateSystem')==='mars3dMap'&&(!_0x5b423a&&(_0x5b423a=new CompositeCoordinateSystem(_0x43df8c,_0x2fcb15)),_0x5ee7f7['coordinateSystem']=_0x5b423a);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0xf14be9(0x115)])echarts__namespace['registerCoordinateSystem']('mars3dMap',CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars3dMapRoam','event':'mars3dMapRoam','update':'updateLayout'},function(_0x5d60ac,_0x13fb98){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace[_0xf14be9(0x125)]({'type':_0xf14be9(0x11f),'init':function(_0x2a57c1,_0x4d9da3){const _0x100bca=_0xf14be9;this[_0x100bca(0xf7)]=_0x4d9da3,this['scene']=_0x2a57c1['scheduler']['ecInstance']['_mars3d_scene'],this['scene'][_0x100bca(0xf0)]['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x34a126,_0x3387af){const _0x29ef83=_0xf14be9;this[_0x29ef83(0xf7)][_0x29ef83(0xf4)]({'type':'mars3dMapRoam'});},'render':function(_0x164b89,_0x57a069,_0x2bf42d){},'dispose':function(_0x40aab7){const _0x486260={_0x2dc701:0x118},_0x315fc1=_0xf14be9;this['scene']['postRender']['removeEventListener'](this[_0x315fc1(_0x486260._0x2dc701)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class EchartsLayer extends BaseLayer{constructor(_0x4ca2ed={}){const _0x17b5aa={_0x193eca:0x10b},_0x3fbfbe=_0xf14be9;super(_0x4ca2ed),this[_0x3fbfbe(_0x17b5aa._0x193eca)]=this[_0x3fbfbe(0x111)]['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get['pointerEvents'](){const _0x42b78d=_0xf14be9;return this[_0x42b78d(0x10b)];}set[_0xf14be9(0x113)](_0x1ab494){const _0xb658f9={_0x55c5ca:0xfe,_0x4cf0e0:0x113},_0x27baa6=_0xf14be9;this['_pointerEvents']=_0x1ab494,this['_echartsContainer']&&(_0x1ab494?this['_echartsContainer']['style']['pointerEvents']='all':this['_echartsContainer'][_0x27baa6(_0xb658f9._0x55c5ca)][_0x27baa6(_0xb658f9._0x4cf0e0)]='none');}['_setOptionsHook'](_0x36a310,_0x146411){this['setEchartsOption'](_0x36a310);}['_showHook'](_0x584d0a){const _0x2cd8f7={_0x578879:0xec,_0x54e3d8:0xec},_0x27128b=_0xf14be9;_0x584d0a?this[_0x27128b(0xf9)]['style'][_0x27128b(_0x2cd8f7._0x578879)]='visible':this['_echartsContainer']['style'][_0x27128b(_0x2cd8f7._0x54e3d8)]='hidden';}['_mountedHook'](){const _0x48543a={_0x35c68a:0x10c,_0x272201:0x105,_0x3300d6:0x111,_0xad33d4:0x104},_0x1945e5=_0xf14be9;this['_map'][_0x1945e5(_0x48543a._0x35c68a)]['echartsDepthTest']=this[_0x1945e5(0x111)][_0x1945e5(0x11e)]??!![],this[_0x1945e5(_0x48543a._0x272201)]['scene']['echartsAutoHeight']=this['options'][_0x1945e5(0xf3)]??![],this['_map']['scene']['echartsFixedHeight']=this[_0x1945e5(_0x48543a._0x3300d6)][_0x1945e5(_0x48543a._0xad33d4)]??0x0;}['_addedHook'](){const _0xdc1453={_0x4ccbef:0xf6,_0x834dab:0x105},_0x55a1bc=_0xf14be9;this[_0x55a1bc(0xf9)]=this['_createChartOverlay'](),this['_echartsInstance']=echarts__namespace['init'](this[_0x55a1bc(0xf9)]),this[_0x55a1bc(_0xdc1453._0x4ccbef)]['_mars3d_scene']=this[_0x55a1bc(_0xdc1453._0x834dab)]['scene'],this['setEchartsOption'](this['options']);}[_0xf14be9(0x110)](){const _0x176c5d={_0x378016:0xf6},_0x3e2ab8=_0xf14be9;this[_0x3e2ab8(0xf6)]&&(this[_0x3e2ab8(_0x176c5d._0x378016)][_0x3e2ab8(0x11c)](),this['_echartsInstance']['dispose'](),delete this[_0x3e2ab8(0xf6)]),this['_echartsContainer']&&(this['_map']['container'][_0x3e2ab8(0xfb)](this['_echartsContainer']),delete this['_echartsContainer']);}['_createChartOverlay'](){const _0x42958b={_0x1acb74:0xfc,_0x7aec21:0x105,_0x4d2dff:0x113,_0x550f1a:0xe7},_0x23100a=_0xf14be9,_0x18f735=mars3d__namespace['DomUtil']['create'](_0x23100a(0x102),'mars3d-echarts',this['_map'][_0x23100a(0xef)]);return _0x18f735['id']=this['id'],_0x18f735['style'][_0x23100a(0xf8)]='absolute',_0x18f735['style']['top']='0px',_0x18f735['style']['left']='0px',_0x18f735['style']['width']=this['_map']['scene'][_0x23100a(_0x42958b._0x1acb74)]['clientWidth']+'px',_0x18f735['style']['height']=this[_0x23100a(_0x42958b._0x7aec21)]['scene']['canvas']['clientHeight']+'px',_0x18f735['style'][_0x23100a(_0x42958b._0x4d2dff)]=this[_0x23100a(0x10b)]?_0x23100a(_0x42958b._0x550f1a):'none',_0x18f735[_0x23100a(0xfe)][_0x23100a(0x10e)]=this['options'][_0x23100a(0x10e)]??0x9,_0x18f735;}['resize'](){const _0x8c016b={_0x18573f:0xf9},_0x1b0079=_0xf14be9;if(!this['_echartsInstance'])return;this['_echartsContainer']['style']['width']=this['_map']['scene'][_0x1b0079(0xfc)][_0x1b0079(0xff)]+'px',this[_0x1b0079(_0x8c016b._0x18573f)]['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}['setEchartsOption'](_0x58de70,_0x7fbdde,_0x36813b){const _0x10d431={_0x445837:0xf6},_0x140fe5=_0xf14be9;this['_echartsInstance']&&(_0x58de70={'mars3dMap':{},...mars3d__namespace['Util']['getAttrVal'](_0x58de70,{'onlySimpleType':!![]})},delete _0x58de70[_0x140fe5(0xf1)],this[_0x140fe5(_0x10d431._0x445837)]['setOption'](_0x58de70,_0x7fbdde,_0x36813b));}[_0xf14be9(0x106)](_0x23e7d7){const _0x46a61b={_0x5b27fc:0x11d},_0x4fd951={_0x552b5c:0x114};let _0xbdaae0,_0x1159d8,_0x307b77,_0x203773;function _0x7fcd29(_0x2f712a){const _0x575b5e=_0x99bc;if(!Array['isArray'](_0x2f712a))return;const _0x7d3953=_0x2f712a[0x0]||0x0,_0xd0a0e0=_0x2f712a[0x1]||0x0;_0x7d3953!==0x0&&_0xd0a0e0!==0x0&&(_0xbdaae0===undefined?(_0xbdaae0=_0x7d3953,_0x1159d8=_0x7d3953,_0x307b77=_0xd0a0e0,_0x203773=_0xd0a0e0):(_0xbdaae0=Math['min'](_0xbdaae0,_0x7d3953),_0x1159d8=Math['max'](_0x1159d8,_0x7d3953),_0x307b77=Math[_0x575b5e(0xe6)](_0x307b77,_0xd0a0e0),_0x203773=Math[_0x575b5e(_0x4fd951._0x552b5c)](_0x203773,_0xd0a0e0)));}const _0x475b2c=this['options']['series'];_0x475b2c&&_0x475b2c['forEach'](_0x509272=>{const _0x59c588={_0x18d938:0xf2,_0x176c39:0x10f},_0x48e255=_0x99bc;_0x509272['data']&&_0x509272[_0x48e255(_0x46a61b._0x5b27fc)][_0x48e255(0x10f)](_0x599274=>{const _0x32c4ee=_0x48e255;if(_0x599274[_0x32c4ee(_0x59c588._0x18d938)])_0x7fcd29(_0x599274['value']);else _0x599274[_0x32c4ee(0x124)]&&_0x599274['coords'][_0x32c4ee(_0x59c588._0x176c39)](_0x24daa7=>{_0x7fcd29(_0x24daa7);});});});if(_0xbdaae0===0x0&&_0x307b77===0x0&&_0x1159d8===0x0&&_0x203773===0x0)return null;return _0x23e7d7!==null&&_0x23e7d7!==void 0x0&&_0x23e7d7['isFormat']?{'xmin':_0xbdaae0,'xmax':_0x1159d8,'ymin':_0x307b77,'ymax':_0x203773}:Cesium['Rectangle']['fromDegrees'](_0xbdaae0,_0x307b77,_0x1159d8,_0x203773);}['on'](_0x2410ec,_0x35291c,_0x3d5d6b){return this['_echartsInstance']['on'](_0x2410ec,_0x35291c,_0x3d5d6b||this),this;}['onByQuery'](_0x51905d,_0x4d7e6c,_0xd4d2d4,_0x225319){const _0x2c603e=_0xf14be9;return this[_0x2c603e(0xf6)]['on'](_0x51905d,_0x4d7e6c,_0xd4d2d4,_0x225319||this),this;}['off'](_0x5283b7,_0x160c0b,_0x542eed){return this['_echartsInstance']['off'](_0x5283b7,_0x160c0b,_0x542eed||this),this;}}mars3d__namespace['LayerUtil'][_0xf14be9(0xe8)]('echarts',EchartsLayer),mars3d__namespace['layer']['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object[_0xf14be9(0x100)](echarts)['forEach'](function(_0x5431b6){if(_0x5431b6!=='default'&&!exports['hasOwnProperty'](_0x5431b6))Object['defineProperty'](exports,_0x5431b6,{'enumerable':!![],'get':function(){return echarts[_0x5431b6];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
|
|
15
15
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mars3d-echarts",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.15",
|
|
4
4
|
"description": "Mars3D平台插件,结合echarts可视化功能插件",
|
|
5
5
|
"main": "dist/mars3d-echarts.js",
|
|
6
6
|
"files": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"echarts": "^5.4.3"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"mars3d": "~3.6.
|
|
13
|
+
"mars3d": "~3.6.15"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"lint": "eslint ./src/**/*.{js,ts} --fix"
|