mars3d-echarts 3.6.11 → 3.6.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.
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D平台插件,结合echarts可视化功能插件 mars3d-echarts
3
3
  *
4
- * 版本信息:v3.6.11
5
- * 编译日期:2023-11-03 23:59:37
4
+ * 版本信息:v3.6.13
5
+ * 编译日期:2023-11-21 09:41:55
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 _0x5a4a86=_0x4250;function _0x3d4f(){const _0x4776d5=['getViewRect','zIndex','518001kDeuLd','1715568vFYQmP','pointerEvents','mars3dMap','BaseLayer','top','canvas','api','dispatchAction','getZr','_pointerEvents','moveHandler','dataToPoint','DomUtil','595IGoNBE','defineProperty','dimensions','BoundingRect','mars3dMapRoam','0px','clampToGround','161102kEPUDi','create','none','hasOwnProperty','setEchartsOption','54480wpTOzS','postRender','min','306tpDRlM','ecInstance','position','getWidth','_mountedHook','_echartsContainer','getRectangle','register','camera','coordinateSystem','Util','getRoamTransform','clientHeight','echartsDepthTest','_map','_createChartOverlay','registerCoordinateSystem','init','1242004mpWVKK','width','__esModule','isArray','graphic','forEach','77341iPekeM','depthTest','echartsAutoHeight','eachSeries','getAttrVal','default','LayerUtil','div','_mars3d_scene','scene','max','5GHhoPd','layer','options','isPointVisible','container','removeEventListener','_echartsInstance','painter','visible','style','9VRkfYc','6252gpXkHZ'];_0x3d4f=function(){return _0x4776d5;};return _0x3d4f();}(function(_0x4bb681,_0x3d9ffc){const _0x4285ae={_0x55391e:0x167,_0x3a06e4:0x14e,_0x25c700:0x160,_0x4ab6a8:0x153,_0x4f905e:0x16f,_0x216673:0x152},_0x251a0a=_0x4250,_0xf6aca8=_0x4bb681();while(!![]){try{const _0x1e644b=parseInt(_0x251a0a(0x187))/0x1+parseInt(_0x251a0a(_0x4285ae._0x55391e))/0x2*(parseInt(_0x251a0a(_0x4285ae._0x3a06e4))/0x3)+parseInt(_0x251a0a(0x181))/0x4*(-parseInt(_0x251a0a(0x144))/0x5)+-parseInt(_0x251a0a(0x14f))/0x6*(-parseInt(_0x251a0a(_0x4285ae._0x25c700))/0x7)+parseInt(_0x251a0a(_0x4285ae._0x4ab6a8))/0x8+-parseInt(_0x251a0a(_0x4285ae._0x4f905e))/0x9*(parseInt(_0x251a0a(0x16c))/0xa)+parseInt(_0x251a0a(_0x4285ae._0x216673))/0xb;if(_0x1e644b===_0x3d9ffc)break;else _0xf6aca8['push'](_0xf6aca8['shift']());}catch(_0x31c9d0){_0xf6aca8['push'](_0xf6aca8['shift']());}}}(_0x3d4f,0x2a538));function _interopNamespace(_0x48335b){const _0x43855d={_0x2108da:0x168},_0x59a2a1=_0x4250;if(_0x48335b&&_0x48335b['__esModule'])return _0x48335b;var _0x374dfe=Object[_0x59a2a1(_0x43855d._0x2108da)](null);return _0x48335b&&Object['keys'](_0x48335b)['forEach'](function(_0x168ff7){const _0x465301=_0x59a2a1;if(_0x168ff7!==_0x465301(0x13e)){var _0x50c61b=Object['getOwnPropertyDescriptor'](_0x48335b,_0x168ff7);Object[_0x465301(0x161)](_0x374dfe,_0x168ff7,_0x50c61b['get']?_0x50c61b:{'enumerable':!![],'get':function(){return _0x48335b[_0x168ff7];}});}}),_0x374dfe[_0x59a2a1(0x13e)]=_0x48335b,_0x374dfe;}function _0x4250(_0x3f816a,_0x2d508c){const _0x3d4fbe=_0x3d4f();return _0x4250=function(_0x425082,_0x26f7d4){_0x425082=_0x425082-0x13b;let _0x42e4d5=_0x3d4fbe[_0x425082];return _0x42e4d5;},_0x4250(_0x3f816a,_0x2d508c);}var echarts__namespace=_interopNamespace(echarts),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'];class CompositeCoordinateSystem{constructor(_0x5a0521,_0x2e3e01){const _0x517cce=_0x4250;this['_mars3d_scene']=_0x5a0521,this[_0x517cce(0x162)]=['lng','lat'],this['_mapOffset']=[0x0,0x0],this['_api']=_0x2e3e01;}['setMapOffset'](_0x2e7280){this['_mapOffset']=_0x2e7280;}['getBMap'](){return this['_mars3d_scene'];}[_0x5a4a86(0x15e)](_0x5d9992){const _0x423802={_0x5b0243:0x13b},_0x116c82=_0x5a4a86,_0x31180d=this['_mars3d_scene'],_0x37a794=[NaN,NaN];let _0x505fc0=_0x31180d['echartsFixedHeight'];_0x31180d[_0x116c82(_0x423802._0x5b0243)]&&(_0x505fc0=_0x31180d['globe']['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x5d9992[0x0],_0x5d9992[0x1])));const _0x19df1b=Cesium$1['Cartesian3']['fromDegrees'](_0x5d9992[0x0],_0x5d9992[0x1],_0x505fc0);if(!_0x19df1b)return _0x37a794;const _0x34debb=Cesium$1['SceneTransforms']['wgs84ToWindowCoordinates'](_0x31180d,_0x19df1b);if(!_0x34debb)return _0x37a794;if(_0x31180d['echartsDepthTest']&&_0x31180d['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x264fac=new Cesium$1['EllipsoidalOccluder'](_0x31180d['globe']['ellipsoid'],_0x31180d[_0x116c82(0x177)]['positionWC']),_0x32fe49=_0x264fac[_0x116c82(0x147)](_0x19df1b);if(!_0x32fe49)return _0x37a794;}return[_0x34debb['x']-this['_mapOffset'][0x0],_0x34debb['y']-this['_mapOffset'][0x1]];}[_0x5a4a86(0x150)](){const _0x194a46={_0x5a1355:0x163,_0xf76097:0x172},_0x26647b=_0x5a4a86,_0x2b829a=this['_api'];return new echarts__namespace[(_0x26647b(0x185))][(_0x26647b(_0x194a46._0x5a1355))](0x0,0x0,_0x2b829a[_0x26647b(_0x194a46._0xf76097)](),_0x2b829a['getHeight']());}[_0x5a4a86(0x17a)](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem['dimensions']=['lng','lat'],CompositeCoordinateSystem['create']=function(_0x2f61b8,_0x1f675d){const _0x51f436={_0x36b02b:0x170},_0x421db4={_0x55825b:0x178},_0x1edac1={_0x7c5053:0x15b,_0x3f5cfb:0x14b},_0x1fea12=_0x5a4a86;let _0x54e63a;const _0x548515=_0x2f61b8['scheduler'][_0x1fea12(_0x51f436._0x36b02b)]['_mars3d_scene'];_0x2f61b8['eachComponent'](_0x1fea12(0x155),function(_0xcbdbcd){const _0x43c9db=_0x1fea12,_0x3ffb66=_0x1f675d[_0x43c9db(_0x1edac1._0x7c5053)]()[_0x43c9db(_0x1edac1._0x3f5cfb)];if(!_0x3ffb66)return;!_0x54e63a&&(_0x54e63a=new CompositeCoordinateSystem(_0x548515,_0x1f675d)),_0xcbdbcd['coordinateSystem']=_0x54e63a,_0x54e63a['setMapOffset'](_0xcbdbcd['__mapOffset']||[0x0,0x0]);}),_0x2f61b8[_0x1fea12(0x13c)](function(_0x5f1e52){const _0x5d965e=_0x1fea12;_0x5f1e52['get'](_0x5d965e(_0x421db4._0x55825b))==='mars3dMap'&&(!_0x54e63a&&(_0x54e63a=new CompositeCoordinateSystem(_0x548515,_0x1f675d)),_0x5f1e52[_0x5d965e(_0x421db4._0x55825b)]=_0x54e63a);});};if(echarts__namespace!==null&&echarts__namespace!==void 0x0&&echarts__namespace[_0x5a4a86(0x180)])echarts__namespace[_0x5a4a86(0x17f)](_0x5a4a86(0x155),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':_0x5a4a86(0x164),'event':'mars3dMapRoam','update':'updateLayout'},function(_0x5875be,_0x243f3b){}),echarts__namespace['extendComponentModel']({'type':'mars3dMap','getBMap':function(){return this['_mars3d_scene'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':'mars3dMap','init':function(_0x2d2f03,_0x5c3d78){const _0x42afcf=_0x5a4a86;this[_0x42afcf(0x159)]=_0x5c3d78,this['scene']=_0x2d2f03['scheduler']['ecInstance']['_mars3d_scene'],this['scene']['postRender']['addEventListener'](this['moveHandler'],this);},'moveHandler':function(_0x12e2d8,_0x5568b4){const _0x3bdb7d={_0x4f9523:0x15a,_0xe7d748:0x164},_0x5b7bf8=_0x5a4a86;this['api'][_0x5b7bf8(_0x3bdb7d._0x4f9523)]({'type':_0x5b7bf8(_0x3bdb7d._0xe7d748)});},'render':function(_0x581b8c,_0x43255f,_0x24df8a){},'dispose':function(_0x5c1413){const _0x43e1ca={_0x3e6476:0x142,_0x1bb451:0x16d,_0x3ba20c:0x149,_0x56b863:0x15d},_0x402095=_0x5a4a86;this[_0x402095(_0x43e1ca._0x3e6476)][_0x402095(_0x43e1ca._0x1bb451)][_0x402095(_0x43e1ca._0x3ba20c)](this[_0x402095(_0x43e1ca._0x56b863)],this);}});else throw new Error('请引入\x20echarts\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x5a4a86(0x156)];class EchartsLayer extends BaseLayer{constructor(_0x4ac7c8={}){const _0x33c082=_0x5a4a86;super(_0x4ac7c8),this[_0x33c082(0x15c)]=this['options']['pointerEvents'];}get['layer'](){return this['_echartsInstance'];}get[_0x5a4a86(0x154)](){const _0x536e41={_0x21b2e4:0x15c},_0x1d784c=_0x5a4a86;return this[_0x1d784c(_0x536e41._0x21b2e4)];}set['pointerEvents'](_0x54b63b){const _0xc4e497={_0x2d9a99:0x14d},_0x5e123a=_0x5a4a86;this['_pointerEvents']=_0x54b63b,this['_echartsContainer']&&(_0x54b63b?this['_echartsContainer']['style'][_0x5e123a(0x154)]='all':this[_0x5e123a(0x174)][_0x5e123a(_0xc4e497._0x2d9a99)]['pointerEvents']='none');}['_setOptionsHook'](_0x46b67c,_0x59644d){this['setEchartsOption'](_0x46b67c);}['_showHook'](_0x1db002){const _0x593c70={_0x2dea7c:0x14c,_0x2eb5a9:0x174},_0x2b8dbf=_0x5a4a86;_0x1db002?this['_echartsContainer']['style']['visibility']=_0x2b8dbf(_0x593c70._0x2dea7c):this[_0x2b8dbf(_0x593c70._0x2eb5a9)][_0x2b8dbf(0x14d)]['visibility']='hidden';}[_0x5a4a86(0x173)](){const _0x3ba0da={_0x151345:0x142},_0x389731=_0x5a4a86;this['_map'][_0x389731(_0x3ba0da._0x151345)][_0x389731(0x17c)]=this[_0x389731(0x146)][_0x389731(0x188)]??!![],this['_map']['scene']['echartsAutoHeight']=this['options'][_0x389731(0x166)]??![],this['_map'][_0x389731(0x142)]['echartsFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x33c90c={_0xacb92b:0x174,_0x58a5a3:0x180,_0xa53563:0x174},_0xb96d0e=_0x5a4a86;this[_0xb96d0e(_0x33c90c._0xacb92b)]=this[_0xb96d0e(0x17e)](),this['_echartsInstance']=echarts__namespace[_0xb96d0e(_0x33c90c._0x58a5a3)](this[_0xb96d0e(_0x33c90c._0xa53563)]),this['_echartsInstance'][_0xb96d0e(0x141)]=this[_0xb96d0e(0x17d)]['scene'],this['setEchartsOption'](this[_0xb96d0e(0x146)]);}['_removedHook'](){const _0x169c85={_0x59568f:0x174,_0x2ea710:0x174},_0x507c85=_0x5a4a86;this['_echartsInstance']&&(this['_echartsInstance']['clear'](),this[_0x507c85(0x14a)]['dispose'](),delete this['_echartsInstance']),this[_0x507c85(_0x169c85._0x59568f)]&&(this['_map'][_0x507c85(0x148)]['removeChild'](this['_echartsContainer']),delete this[_0x507c85(_0x169c85._0x2ea710)]);}['_createChartOverlay'](){const _0x2467df={_0x4dc393:0x15f,_0x46965e:0x17d,_0x3398ba:0x165,_0x1d19e5:0x165,_0x34190c:0x154,_0x1208d1:0x14d},_0x65f2b=_0x5a4a86,_0x5e55e2=mars3d__namespace[_0x65f2b(_0x2467df._0x4dc393)]['create'](_0x65f2b(0x140),'mars3d-echarts',this[_0x65f2b(_0x2467df._0x46965e)]['container']);return _0x5e55e2['id']=this['id'],_0x5e55e2['style'][_0x65f2b(0x171)]='absolute',_0x5e55e2['style'][_0x65f2b(0x157)]=_0x65f2b(_0x2467df._0x3398ba),_0x5e55e2['style']['left']=_0x65f2b(_0x2467df._0x1d19e5),_0x5e55e2['style']['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0x5e55e2['style']['height']=this['_map'][_0x65f2b(0x142)][_0x65f2b(0x158)][_0x65f2b(0x17b)]+'px',_0x5e55e2['style'][_0x65f2b(_0x2467df._0x34190c)]=this['_pointerEvents']?'all':_0x65f2b(0x169),_0x5e55e2[_0x65f2b(_0x2467df._0x1208d1)][_0x65f2b(0x151)]=this['options']['zIndex']??0x9,_0x5e55e2;}['resize'](){const _0x39e641={_0x3bd9da:0x14a,_0x52a84e:0x174,_0x44142f:0x182},_0x58f5d5=_0x5a4a86;if(!this[_0x58f5d5(_0x39e641._0x3bd9da)])return;this[_0x58f5d5(_0x39e641._0x52a84e)]['style'][_0x58f5d5(_0x39e641._0x44142f)]=this['_map']['scene']['canvas']['clientWidth']+'px',this[_0x58f5d5(0x174)]['style']['height']=this['_map']['scene']['canvas']['clientHeight']+'px',this['_echartsInstance']['resize']();}[_0x5a4a86(0x16b)](_0x1cd5e2,_0x35a35a,_0x4ef4bc){const _0x2cc8a7={_0x12c5d3:0x13d},_0x2e75c6=_0x5a4a86;this['_echartsInstance']&&(_0x1cd5e2={'mars3dMap':{},...mars3d__namespace[_0x2e75c6(0x179)][_0x2e75c6(_0x2cc8a7._0x12c5d3)](_0x1cd5e2,{'onlySimpleType':!![]})},delete _0x1cd5e2['eventParent'],this[_0x2e75c6(0x14a)]['setOption'](_0x1cd5e2,_0x35a35a,_0x4ef4bc));}[_0x5a4a86(0x175)](_0x423118){const _0x1c64dc={_0x33c8c1:0x146},_0x2831f5={_0x3bca38:0x143},_0x42918e=_0x5a4a86;let _0x39aa43,_0x33e6cc,_0x1cb2de,_0x100b6b;function _0x4c0882(_0x1b6092){const _0x11c1fa=_0x4250;if(!Array[_0x11c1fa(0x184)](_0x1b6092))return;const _0x548655=_0x1b6092[0x0]||0x0,_0x401e74=_0x1b6092[0x1]||0x0;_0x548655!==0x0&&_0x401e74!==0x0&&(_0x39aa43===undefined?(_0x39aa43=_0x548655,_0x33e6cc=_0x548655,_0x1cb2de=_0x401e74,_0x100b6b=_0x401e74):(_0x39aa43=Math[_0x11c1fa(0x16e)](_0x39aa43,_0x548655),_0x33e6cc=Math['max'](_0x33e6cc,_0x548655),_0x1cb2de=Math['min'](_0x1cb2de,_0x401e74),_0x100b6b=Math[_0x11c1fa(_0x2831f5._0x3bca38)](_0x100b6b,_0x401e74)));}const _0x1df702=this[_0x42918e(_0x1c64dc._0x33c8c1)]['series'];_0x1df702&&_0x1df702['forEach'](_0x22bc63=>{const _0x1a9c54=_0x42918e;_0x22bc63['data']&&_0x22bc63['data'][_0x1a9c54(0x186)](_0x2a8e83=>{if(_0x2a8e83['value'])_0x4c0882(_0x2a8e83['value']);else _0x2a8e83['coords']&&_0x2a8e83['coords']['forEach'](_0x3c777f=>{_0x4c0882(_0x3c777f);});});});if(_0x39aa43===0x0&&_0x1cb2de===0x0&&_0x33e6cc===0x0&&_0x100b6b===0x0)return null;return _0x423118!==null&&_0x423118!==void 0x0&&_0x423118['isFormat']?{'xmin':_0x39aa43,'xmax':_0x33e6cc,'ymin':_0x1cb2de,'ymax':_0x100b6b}:Cesium['Rectangle']['fromDegrees'](_0x39aa43,_0x1cb2de,_0x33e6cc,_0x100b6b);}['on'](_0x566609,_0x5216a7,_0x19c8dc){return this['_echartsInstance']['on'](_0x566609,_0x5216a7,_0x19c8dc||this),this;}['onByQuery'](_0x10c6ab,_0x38e4c2,_0x547db8,_0x445238){return this['_echartsInstance']['on'](_0x10c6ab,_0x38e4c2,_0x547db8,_0x445238||this),this;}['off'](_0x10110d,_0x18b535,_0x450dc7){const _0x2dce85=_0x5a4a86;return this[_0x2dce85(0x14a)]['off'](_0x10110d,_0x18b535,_0x450dc7||this),this;}}mars3d__namespace[_0x5a4a86(0x13f)][_0x5a4a86(0x176)]('echarts',EchartsLayer),mars3d__namespace[_0x5a4a86(0x145)]['EchartsLayer']=EchartsLayer,mars3d__namespace['echarts']=echarts__namespace,exports['EchartsLayer']=EchartsLayer,Object['keys'](echarts)['forEach'](function(_0x2b04b5){const _0xef0a1a={_0x44a617:0x16a},_0x23f61c=_0x5a4a86;if(_0x2b04b5!=='default'&&!exports[_0x23f61c(_0xef0a1a._0x44a617)](_0x2b04b5))Object['defineProperty'](exports,_0x2b04b5,{'enumerable':!![],'get':function(){return echarts[_0x2b04b5];}});}),Object[_0x5a4a86(0x161)](exports,_0x5a4a86(0x183),{'value':!![]});
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':!![]});
15
15
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mars3d-echarts",
3
- "version": "3.6.11",
3
+ "version": "3.6.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.3"
11
11
  },
12
12
  "devDependencies": {
13
- "mars3d": "~3.6.11"
13
+ "mars3d": "~3.6.13"
14
14
  },
15
15
  "scripts": {
16
16
  "lint": "eslint ./src/**/*.{js,ts} --fix"