Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mars2d-echarts

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mars2d-echarts - npm Package Compare versions

Comparing version 3.0.11 to 3.0.12

12

dist/mars2d-echarts.js
/**
* Mars2D地理信息平台
* Mars2D地理信息平台 mars2d-sdk
*
* 版本信息:v3.0.11,
* 编译日期:2022-03-11 16:19:40
*
* 版本信息:v3.0.12
* 编译日期:2022-03-16 14:55:56
* 版权所有:Copyright by 火星科技 http://mars2d.cn
*
* 使用单位:免费公开版 ,2021-10-01
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('mars2d'), require('echarts')) :
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, (window.mars2d || require('mars2d')), (window.echarts || require('echarts'))) :
typeof define === 'function' && define.amd ? define(['exports', 'mars2d', 'echarts'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars2d-echarts"] = {}, global.mars2d, global.echarts));
})(this, (function (exports, mars2d, echarts) { 'use strict';function _0xe498(){const _0x560fe8=['BxnuCMfUC2zVCM1pCMLNAw4','Bg5N','zwnjBNn0yw5Jzq','x2vJAgfYDhndB250ywLUzxi','ywjZ','DxbKyxrLtgf5B3v0','Bw92zwvUza','y3jLyxrLrwXLBwvUDa','uhjVAMvJDgLVBG','mJHXs0TiB0O','x3zPzxDWB3j0uM9VDa','EM9VBufUAw1HDgLVBG','zgvMAw5LuhjVCgvYDhK','Cg9PBNruB0rHDge','x2fWAq','zgLZCgf0y2Hby3rPB24','x21HCe9MzNnLDa','ywjZB2X1Dgu','DxvPza','CgfPBNrLCG','z3jHCgHPyW','rg9TvxrPBa','yw5PBwf0zwq','z2v0qK1HCa','yMLUza','z2v0u2L6zq','ChjLCgfYzun1C3rVBxm','AxnbzgrLza','y3jLyxrL','x3jLC2L6zuHHBMrSzxi','6k+35BYv5ywLigvJAgfYDhmG5BQtia','nZbPAgz0B3e','BgvMDa','zgf0yvrVug9PBNq','mZK5mtG0s1brzNbh','y2XHC3noyw1L','CMvNAxn0zxi','zwfJAenVBxbVBMvUDa','vxrPBa','igvJAgfYDhmTBgf5zxi','zwnOyxj0CW','zgL2','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','B25szw1VDMu','BMv3u2L6zq','zgvMyxvSDa','mJG2mtbnDu5Qwgu','x2nYzwf0zunOyxj0t3zLCMXHEq','x2vJAgfYDhnjBNn0yw5Jzq','x21HCa','z2v0ugfUzq','Bgf5zxi','C2nOzwr1BgvY','Bgf0','y29UDgfPBMvYug9PBNruB0XHEwvYug9PBNq','zgLZCg9Zzq','zM9YrwfJAa','D2LKDgG','BMfTzq','CgLK','x19LC01VzhvSzq','BwfW','BwfYCZjKtwfWuM9HBq','x21HCNmYzf9Tyxa','ntaLiduWjq','C2v0wKLUzgv4','EM9VBwvUza','zgLTzw5ZAw9UCW','CgfUzq','mZaWmJCWvLz2BLDA','CMvZAxPL','AgvPz2H0','zxH0zw5Kq29TCg9Uzw50tw9KzwW','C2v0t3b0Aw9U','q1jt','yw55m2q','C2HVDW','B3b0Aw9UCW','EKLUzgv4','CMvTB3zL','AgfZtgf5zxi','DgvZDfbYB3a','x19TyxbpzMzZzxq','z2v0vMLLD1jLy3q','y29VCMrPBMf0zvn5C3rLBq','otCYmJC5qKjzy2DY','mhb4','yxbWzw5Kq2HPBgq','rvbtrZm4ntC','z2v0','BwfYCZjKtwfW','DhjHBNnMB3jTt3jPz2LU','twvYy2f0B3i','zgvMyxvSDfzHBhvL','C3r5Bgu','AgLKzgvU','DMLZAwjPBgL0Eq','v2vIA2L0vhjHBNnMB3jTt3jPz2LU','Bgf0tg5Nvg9myxLLCLbVAw50','B3zLCMXHEvbHBMu','mJiWsMPMB3L0','C2v0twfWt2zMC2v0','Aw5PDa','CMvNAxn0zxjdB29YzgLUyxrLu3LZDgvT','mJfODhfcDMu','otCZodyZt3D5wLn1','C2v0rwnOyxj0C09WDgLVBG','tufyx0XbveLuvurf','zwfJAfnLCMLLCW','mtyXmdaWofHJwvrPEq','AgLKzq','A2v5CW','mJe5nJe1ohbOwKjSza','z2v0wNi','Dg9W','x2XLywzSzxrFAwq','x3nOB3C','Bw92zuHHBMrSzxi','rwnOyxj0C0XHEwvY','B2zM'];_0xe498=function(){return _0x560fe8;};return _0xe498();}const _0x2505d2=_0x1973;(function(_0xd75ba2,_0x15bda9){const _0x5d06ef=_0x1973,_0x51732c=_0xd75ba2();while(!![]){try{const _0x4cc454=parseInt(_0x5d06ef(0x1c8))/0x1+-parseInt(_0x5d06ef(0x1cf))/0x2+-parseInt(_0x5d06ef(0x1c7))/0x3*(-parseInt(_0x5d06ef(0x181))/0x4)+-parseInt(_0x5d06ef(0x17e))/0x5*(-parseInt(_0x5d06ef(0x1a4))/0x6)+parseInt(_0x5d06ef(0x1e0))/0x7*(-parseInt(_0x5d06ef(0x1cc))/0x8)+parseInt(_0x5d06ef(0x1b4))/0x9+-parseInt(_0x5d06ef(0x18d))/0xa*(-parseInt(_0x5d06ef(0x1c3))/0xb);if(_0x4cc454===_0x15bda9)break;else _0x51732c['push'](_0x51732c['shift']());}catch(_0x14886e){_0x51732c['push'](_0x51732c['shift']());}}}(_0xe498,0x9b161));function _interopNamespace(_0x37a6d2){const _0x23ada9=_0x1973;if(_0x37a6d2&&_0x37a6d2[_0x23ada9(0x19b)])return _0x37a6d2;var _0x3fc208=Object['create'](null);return _0x37a6d2&&Object[_0x23ada9(0x1ce)](_0x37a6d2)[_0x23ada9(0x197)](function(_0x1fa1dd){const _0xbb3a83=_0x23ada9;if(_0x1fa1dd!=='default'){var _0x3806f6=Object[_0xbb3a83(0x189)](_0x37a6d2,_0x1fa1dd);Object[_0xbb3a83(0x1e3)](_0x3fc208,_0x1fa1dd,_0x3806f6[_0xbb3a83(0x1b8)]?_0x3806f6:{'enumerable':!![],'get':function(){return _0x37a6d2[_0x1fa1dd];}});}}),_0x3fc208[_0x23ada9(0x18c)]=_0x37a6d2,_0x3fc208;}var mars2d__namespace=_interopNamespace(mars2d),echarts__namespace=_interopNamespace(echarts);const L$1=mars2d__namespace['L'];class CompositeCoordinateSystem{constructor(_0x265757,_0x5c7f90){const _0x25a3ef=_0x1973;this[_0x25a3ef(0x19e)]=_0x265757,this[_0x25a3ef(0x1a2)]=['lng',_0x25a3ef(0x194)],this[_0x25a3ef(0x1e7)]=[0x0,0x0],this[_0x25a3ef(0x1e5)]=_0x5c7f90,this['_projection']=L$1[_0x25a3ef(0x1df)][_0x25a3ef(0x1bb)];}[_0x2505d2(0x1c4)](_0x436a65){const _0x543dec=_0x2505d2;this[_0x543dec(0x1e7)]=_0x436a65;}[_0x2505d2(0x176)](){const _0x215cdf=_0x2505d2;return this[_0x215cdf(0x19e)];}[_0x2505d2(0x179)](){const _0x10ccd7=_0x2505d2,_0x4b88d0=echarts__namespace['util'],_0x417a7e=this[_0x10ccd7(0x1b2)]();return{'coordSys':{'type':'mars2dMap','x':_0x417a7e['x'],'y':_0x417a7e['y'],'width':_0x417a7e[_0x10ccd7(0x198)],'height':_0x417a7e[_0x10ccd7(0x1a6)]},'api':{'coord':_0x4b88d0[_0x10ccd7(0x177)](this[_0x10ccd7(0x180)],this),'size':_0x4b88d0[_0x10ccd7(0x177)](_0x380c18,this)}};function _0x380c18(_0x26d0b4,_0x4a4b05){const _0x288caa=_0x10ccd7;return _0x4a4b05=_0x4a4b05||[0x0,0x0],_0x4b88d0[_0x288caa(0x19c)]([0x0,0x1],function(_0x55af60){const _0x552268=_0x288caa,_0x2601d0=_0x4a4b05[_0x55af60],_0x5ed550=_0x26d0b4[_0x55af60]/0x2,_0x3e43f1=[],_0x29b830=[];return _0x3e43f1[_0x55af60]=_0x2601d0-_0x5ed550,_0x29b830[_0x55af60]=_0x2601d0+_0x5ed550,_0x3e43f1[0x1-_0x55af60]=_0x29b830[0x1-_0x55af60]=_0x4a4b05[0x1-_0x55af60],Math[_0x552268(0x1db)](this['dataToPoint'](_0x3e43f1)[_0x55af60]-this[_0x552268(0x180)](_0x29b830)[_0x55af60]);},this);}}['dataToPoint'](_0x144174){const _0x3fa90c=_0x2505d2;_0x144174[0x1]===null&&(_0x144174[0x1]=L$1[_0x3fa90c(0x1a9)][_0x3fa90c(0x1b7)]['projection'][_0x3fa90c(0x1ca)]);const _0x1e81c4=this[_0x3fa90c(0x19e)][_0x3fa90c(0x1c1)]([_0x144174[0x1],_0x144174[0x0]]),_0x366986=this['_mapOffset'];return[_0x1e81c4['x']-_0x366986[0x0],_0x1e81c4['y']-_0x366986[0x1]];}[_0x2505d2(0x1e4)](_0x51ea10){const _0x53e9f5=_0x2505d2,_0x7e015d=this[_0x53e9f5(0x1e7)],_0x5bd9e5=this['_mars2d_map']['layerPointToLatLng']([_0x51ea10[0x0]+_0x7e015d[0x0],_0x51ea10[0x1]+_0x7e015d[0x1]]);return[_0x5bd9e5[_0x53e9f5(0x1d8)],_0x5bd9e5[_0x53e9f5(0x194)]];}['getViewRect'](){const _0x362e10=_0x2505d2,_0xc5d35a=this['_mars2d_map'][_0x362e10(0x178)]();return new echarts__namespace[(_0x362e10(0x173))]['BoundingRect'](0x0,0x0,_0xc5d35a['x'],_0xc5d35a['y']);}['getRoamTransform'](){const _0x2a65b1=_0x2505d2;return echarts__namespace['matrix'][_0x2a65b1(0x17b)]();}}CompositeCoordinateSystem[_0x2505d2(0x1a2)]=[_0x2505d2(0x1d8),_0x2505d2(0x194)],CompositeCoordinateSystem[_0x2505d2(0x17b)]=function(_0x581b8e,_0x496d1e){const _0x351a9f=_0x2505d2;let _0x4fd4da;const _0x24c674=_0x581b8e['scheduler'][_0x351a9f(0x1d9)][_0x351a9f(0x19e)];_0x581b8e[_0x351a9f(0x184)]('mars2dMap',function(_0x1e8645){const _0xbaa7b8=_0x351a9f,_0x4c5543=_0x496d1e[_0xbaa7b8(0x1d0)]()[_0xbaa7b8(0x1ea)];if(!_0x4c5543)return;!_0x4fd4da&&(_0x4fd4da=new CompositeCoordinateSystem(_0x24c674,_0x496d1e)),_0x1e8645[_0xbaa7b8(0x1b3)]=_0x4fd4da,_0x4fd4da[_0xbaa7b8(0x1c4)](_0x1e8645[_0xbaa7b8(0x1b1)]||[0x0,0x0]);}),_0x581b8e[_0x351a9f(0x1cb)](function(_0x182fa5){const _0x2a2694=_0x351a9f;_0x182fa5['get'](_0x2a2694(0x1b3))===_0x2a2694(0x1b9)&&(!_0x4fd4da&&(_0x4fd4da=new CompositeCoordinateSystem(_0x24c674)),_0x182fa5[_0x2a2694(0x1b3)]=_0x4fd4da);});};echarts__namespace&&(echarts__namespace[_0x2505d2(0x1c6)](_0x2505d2(0x1b9),CompositeCoordinateSystem),echarts__namespace['registerAction']({'type':'mars2dMapRoam','event':_0x2505d2(0x19d),'update':_0x2505d2(0x1dc)},function(_0x1c2252,_0x2a0522){}),echarts__namespace[_0x2505d2(0x1a7)]({'type':_0x2505d2(0x1b9),'getBMap':function(){return this['_mars2d_map'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':_0x2505d2(0x1b9),'init':function(_0xf78159,_0x170384){const _0x2d0231=_0x2505d2;this['_api']=_0x170384,this[_0x2d0231(0x190)]=_0xf78159['scheduler'][_0x2d0231(0x1d9)][_0x2d0231(0x19e)];const _0x48aa54=_0xf78159[_0x2d0231(0x193)][_0x2d0231(0x1d9)][_0x2d0231(0x19e)],_0xe510f0=_0x170384['getZr']()[_0x2d0231(0x1ea)]['getViewportRoot'](),_0x2fa376=_0x48aa54[_0x2d0231(0x1ac)][_0x2d0231(0x1e2)]&&L$1['Browser'][_0x2d0231(0x1aa)];_0xe510f0[_0x2d0231(0x182)]='\x20leaflet-layer\x20leaflet-zoom-'+(_0x2fa376?_0x2d0231(0x175):_0x2d0231(0x1cd))+_0x2d0231(0x186);const _0x579983=L$1[_0x2d0231(0x174)][_0x2d0231(0x1b0)]([_0x2d0231(0x1ba),_0x2d0231(0x1c0),_0x2d0231(0x1d7)]);_0xe510f0[_0x2d0231(0x1bd)][_0x579983]=_0x2d0231(0x19f),this[_0x2d0231(0x1e1)]=_0xe510f0,this[_0x2d0231(0x190)]['on'](_0x2d0231(0x1dd),this[_0x2d0231(0x1d4)],this),this[_0x2d0231(0x190)]['on'](_0x2d0231(0x1a1),this[_0x2d0231(0x1d4)],this);},'moveHandler'(){const _0x561e05=_0x2505d2,_0x5496ee=this[_0x561e05(0x190)][_0x561e05(0x195)]([0x0,0x0]),_0x30380e=[_0x5496ee['x']||0x0,_0x5496ee['y']||0x0];this[_0x561e05(0x1e1)]['style'][_0x561e05(0x17f)]=_0x30380e[0x0]+'px',this['_viewportRoot'][_0x561e05(0x1bd)][_0x561e05(0x1d1)]=_0x30380e[0x1]+'px';const _0x1ac6ef=this['__model'];_0x1ac6ef[_0x561e05(0x1b1)]=_0x30380e,_0x1ac6ef?.[_0x561e05(0x1b3)]&&_0x1ac6ef[_0x561e05(0x1b3)][_0x561e05(0x1c4)](_0x30380e),this['_api'][_0x561e05(0x1e6)]({'type':_0x561e05(0x19d)});},'dispose':function(_0x13e882){const _0x36bd69=_0x2505d2;this[_0x36bd69(0x190)]['off'](_0x36bd69(0x1dd),this[_0x36bd69(0x1d4)],this),this[_0x36bd69(0x190)][_0x36bd69(0x1d6)](_0x36bd69(0x1a1),this[_0x36bd69(0x1d4)],this);}}));const L=mars2d__namespace['L'];class EchartsLayer extends L['Layer']{constructor(_0x5d3f87={}){const _0xfd7fe5=_0x2505d2;super(_0x5d3f87),this['options']=_0x5d3f87,L[_0xfd7fe5(0x185)]['stamp'](this),this[_0xfd7fe5(0x1ac)]['id']=mars2d__namespace['Util'][_0xfd7fe5(0x1bc)](this[_0xfd7fe5(0x1ac)]['id'],this[_0xfd7fe5(0x1e9)]),this[_0xfd7fe5(0x1ac)][_0xfd7fe5(0x19a)]=mars2d__namespace['Util'][_0xfd7fe5(0x1bc)](this[_0xfd7fe5(0x1ac)][_0xfd7fe5(0x19a)],-0x1),this['options'][_0xfd7fe5(0x199)]=mars2d__namespace['Util'][_0xfd7fe5(0x1bc)](this[_0xfd7fe5(0x1ac)][_0xfd7fe5(0x199)],'');}get['uuid'](){const _0x5495b5=_0x2505d2;return this[_0x5495b5(0x1d2)];}get[_0x2505d2(0x17a)](){const _0x5665ce=_0x2505d2;return this['_map']&&this['_map'][_0x5665ce(0x1af)](this);}get[_0x2505d2(0x19a)](){const _0xb7989=_0x2505d2;return this[_0xb7989(0x1ac)]['pid'];}set['pid'](_0x5a1c7a){const _0x3dc2c6=_0x2505d2;this[_0x3dc2c6(0x1ac)][_0x3dc2c6(0x19a)]=_0x5a1c7a;}get['id'](){const _0x724098=_0x2505d2;return this[_0x724098(0x1ac)]['id'];}set['id'](_0xd5e952){const _0x296b7a=_0x2505d2;this[_0x296b7a(0x1ac)]['id']=_0xd5e952;}get['name'](){return this['options']['name'];}set['name'](_0x35d7d9){const _0x5dace5=_0x2505d2;this[_0x5dace5(0x1ac)][_0x5dace5(0x199)]=_0x35d7d9;}get['layer'](){const _0x14f8ff=_0x2505d2;return this[_0x14f8ff(0x18f)];}get['show'](){const _0x405491=_0x2505d2;return this[_0x405491(0x1d3)];}set[_0x2505d2(0x1ab)](_0x34dbe5){const _0x160861=_0x2505d2;this[_0x160861(0x1d3)]=_0x34dbe5,_0x34dbe5?this[_0x160861(0x1da)]['style'][_0x160861(0x1bf)]='visible':this['_echartsContainer'][_0x160861(0x1bd)]['visibility']=_0x160861(0x1be);}['onAdd'](_0x45a722){const _0x2f23a7=_0x2505d2;if(!echarts__namespace)throw new Error(_0x2f23a7(0x17d));this[_0x2f23a7(0x190)]=_0x45a722,this[_0x2f23a7(0x1da)]=this[_0x2f23a7(0x18e)](),this[_0x2f23a7(0x18f)]=echarts__namespace[_0x2f23a7(0x1c5)](this[_0x2f23a7(0x1da)]),this[_0x2f23a7(0x18f)][_0x2f23a7(0x19e)]=_0x45a722,this[_0x2f23a7(0x1c9)](this[_0x2f23a7(0x1ac)]),this[_0x2f23a7(0x190)]['on'](_0x2f23a7(0x1a5),this[_0x2f23a7(0x17c)],this);}[_0x2505d2(0x18a)](){const _0x1457fb=_0x2505d2;this[_0x1457fb(0x18f)]&&(this[_0x1457fb(0x18f)]['clear'](),this[_0x1457fb(0x18f)][_0x1457fb(0x196)](),delete this[_0x1457fb(0x18f)]),this[_0x1457fb(0x1da)]&&(L[_0x1457fb(0x174)][_0x1457fb(0x1ae)](this[_0x1457fb(0x1da)]),delete this['_echartsContainer']),this[_0x1457fb(0x190)][_0x1457fb(0x1d6)]('resize',this[_0x1457fb(0x17c)],this),delete this[_0x1457fb(0x190)];}[_0x2505d2(0x1a0)](_0x3a27d3){const _0x43c1f8=_0x2505d2;this['options'][_0x43c1f8(0x1ad)]=_0x3a27d3,this[_0x43c1f8(0x1da)]&&(this['_echartsContainer']['style'][_0x43c1f8(0x1ad)]=_0x3a27d3);}['_createChartOverlay'](){const _0x442e73=_0x2505d2,_0x4b27a1=this[_0x442e73(0x190)][_0x442e73(0x178)](),_0x2d69ea=document[_0x442e73(0x1de)](_0x442e73(0x188));_0x2d69ea[_0x442e73(0x1bd)]['position']=_0x442e73(0x1e8),_0x2d69ea[_0x442e73(0x1bd)][_0x442e73(0x1d1)]=_0x442e73(0x1b5),_0x2d69ea[_0x442e73(0x1bd)]['left']=_0x442e73(0x1b5),_0x2d69ea[_0x442e73(0x1bd)][_0x442e73(0x1a6)]=_0x4b27a1['y']+'px',_0x2d69ea['style'][_0x442e73(0x198)]=_0x4b27a1['x']+'px',_0x2d69ea[_0x442e73(0x1bd)][_0x442e73(0x1ad)]=this[_0x442e73(0x1ac)]['zIndex']||0x63;const _0x387091=this[_0x442e73(0x190)][_0x442e73(0x191)](this['options'][_0x442e73(0x1a3)]||_0x442e73(0x1c2));return _0x387091[_0x442e73(0x1b6)](_0x2d69ea),_0x2d69ea;}[_0x2505d2(0x17c)](_0x3dc906){const _0x52abd6=_0x2505d2;if(!this[_0x52abd6(0x18f)])return;const _0x2f3513=_0x3dc906[_0x52abd6(0x18b)];this['_echartsContainer'][_0x52abd6(0x1bd)][_0x52abd6(0x198)]=_0x2f3513['x']+'px',this[_0x52abd6(0x1da)][_0x52abd6(0x1bd)]['height']=_0x2f3513['y']+'px',this[_0x52abd6(0x18f)][_0x52abd6(0x1a5)]();}[_0x2505d2(0x1c9)](_0x2c08dd,_0x3cbc64,_0x2045a0){const _0x593e62=_0x2505d2;this[_0x593e62(0x18f)]&&(_0x2c08dd['mars2dMap']=_0x2c08dd['mars2dMap']||{'roam':!![]},this[_0x593e62(0x18f)][_0x593e62(0x1a8)](_0x2c08dd,_0x3cbc64,_0x2045a0));}}function _0x1973(_0x56d8c1,_0x5cd6a3){const _0xe4989=_0xe498();return _0x1973=function(_0x197398,_0x5df8cc){_0x197398=_0x197398-0x173;let _0x5d82a8=_0xe4989[_0x197398];if(_0x1973['SMNIgZ']===undefined){var _0x48cc9c=function(_0x37a6d2){const _0x3fc208='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1fa1dd='',_0x3806f6='';for(let _0x265757=0x0,_0x5c7f90,_0x436a65,_0x4b88d0=0x0;_0x436a65=_0x37a6d2['charAt'](_0x4b88d0++);~_0x436a65&&(_0x5c7f90=_0x265757%0x4?_0x5c7f90*0x40+_0x436a65:_0x436a65,_0x265757++%0x4)?_0x1fa1dd+=String['fromCharCode'](0xff&_0x5c7f90>>(-0x2*_0x265757&0x6)):0x0){_0x436a65=_0x3fc208['indexOf'](_0x436a65);}for(let _0x417a7e=0x0,_0x380c18=_0x1fa1dd['length'];_0x417a7e<_0x380c18;_0x417a7e++){_0x3806f6+='%'+('00'+_0x1fa1dd['charCodeAt'](_0x417a7e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3806f6);};_0x1973['DicDty']=_0x48cc9c,_0x56d8c1=arguments,_0x1973['SMNIgZ']=!![];}const _0x3f9e2c=_0xe4989[0x0],_0x5c9ef9=_0x197398+_0x3f9e2c,_0x55bdc5=_0x56d8c1[_0x5c9ef9];return!_0x55bdc5?(_0x5d82a8=_0x1973['DicDty'](_0x5d82a8),_0x56d8c1[_0x5c9ef9]=_0x5d82a8):_0x5d82a8=_0x55bdc5,_0x5d82a8;},_0x1973(_0x56d8c1,_0x5cd6a3);}mars2d__namespace[_0x2505d2(0x192)][_0x2505d2(0x1d5)]=EchartsLayer,mars2d__namespace['LayerUtil'][_0x2505d2(0x183)](_0x2505d2(0x187),EchartsLayer),exports['EchartsLayer']=EchartsLayer,Object[_0x2505d2(0x1e3)](exports,_0x2505d2(0x19b),{'value':!![]});
})(this, (function (exports, mars2d, echarts) { 'use strict';const _0x2f7f99=_0x111a;(function(_0x3bbd97,_0x18703e){const _0x27bfcb=_0x111a,_0x41d727=_0x3bbd97();while(!![]){try{const _0x35709e=-parseInt(_0x27bfcb(0x9d))/0x1*(-parseInt(_0x27bfcb(0xd0))/0x2)+-parseInt(_0x27bfcb(0xb2))/0x3+parseInt(_0x27bfcb(0xa9))/0x4*(-parseInt(_0x27bfcb(0xe1))/0x5)+parseInt(_0x27bfcb(0x7d))/0x6*(-parseInt(_0x27bfcb(0x83))/0x7)+-parseInt(_0x27bfcb(0x8b))/0x8*(parseInt(_0x27bfcb(0x86))/0x9)+-parseInt(_0x27bfcb(0xad))/0xa*(-parseInt(_0x27bfcb(0xc4))/0xb)+parseInt(_0x27bfcb(0x85))/0xc*(parseInt(_0x27bfcb(0xbc))/0xd);if(_0x35709e===_0x18703e)break;else _0x41d727['push'](_0x41d727['shift']());}catch(_0x48d000){_0x41d727['push'](_0x41d727['shift']());}}}(_0x2b8c,0x66a38));function _0x111a(_0x44e965,_0x3f0aec){const _0x2b8cdf=_0x2b8c();return _0x111a=function(_0x111ad7,_0x2ca505){_0x111ad7=_0x111ad7-0x6c;let _0x22c6c8=_0x2b8cdf[_0x111ad7];if(_0x111a['hGMivH']===undefined){var _0x5d51c8=function(_0x26b786){const _0x484ee4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2bef46='',_0x531647='';for(let _0x360bf3=0x0,_0x281e29,_0x2704ac,_0x69e19a=0x0;_0x2704ac=_0x26b786['charAt'](_0x69e19a++);~_0x2704ac&&(_0x281e29=_0x360bf3%0x4?_0x281e29*0x40+_0x2704ac:_0x2704ac,_0x360bf3++%0x4)?_0x2bef46+=String['fromCharCode'](0xff&_0x281e29>>(-0x2*_0x360bf3&0x6)):0x0){_0x2704ac=_0x484ee4['indexOf'](_0x2704ac);}for(let _0x26b89c=0x0,_0x1b7939=_0x2bef46['length'];_0x26b89c<_0x1b7939;_0x26b89c++){_0x531647+='%'+('00'+_0x2bef46['charCodeAt'](_0x26b89c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x531647);};_0x111a['VyMzjh']=_0x5d51c8,_0x44e965=arguments,_0x111a['hGMivH']=!![];}const _0x3cd7fa=_0x2b8cdf[0x0],_0x1a44c0=_0x111ad7+_0x3cd7fa,_0xf652cc=_0x44e965[_0x1a44c0];return!_0xf652cc?(_0x22c6c8=_0x111a['VyMzjh'](_0x22c6c8),_0x44e965[_0x1a44c0]=_0x22c6c8):_0x22c6c8=_0xf652cc,_0x22c6c8;},_0x111a(_0x44e965,_0x3f0aec);}function _interopNamespace(_0x26b786){const _0x454b35=_0x111a;if(_0x26b786&&_0x26b786[_0x454b35(0xdb)])return _0x26b786;var _0x484ee4=Object['create'](null);return _0x26b786&&Object[_0x454b35(0xb9)](_0x26b786)[_0x454b35(0xa7)](function(_0x2bef46){const _0x40467d=_0x454b35;if(_0x2bef46!==_0x40467d(0x76)){var _0x531647=Object['getOwnPropertyDescriptor'](_0x26b786,_0x2bef46);Object['defineProperty'](_0x484ee4,_0x2bef46,_0x531647['get']?_0x531647:{'enumerable':!![],'get':function(){return _0x26b786[_0x2bef46];}});}}),_0x484ee4[_0x454b35(0x76)]=_0x26b786,_0x484ee4;}var mars2d__namespace=_interopNamespace(mars2d),echarts__namespace=_interopNamespace(echarts);function _0x2b8c(){const _0x50268f=['C3rHBxa','zgvMAw5LuhjVCgvYDhK','x21HCa','mtK3ndbovxrNAM4','z2v0vMLLD1jLy3q','igXLywzSzxqTBgf5zxiGBgvHzMXLDc16B29Tlq','AgLKzgvU','BxnuCMfUC2zVCM1pCMLNAw4','Cg9ZAxrPB24','mtu2mxrSt0DVBG','Bgf0','otq1mZe2oez4shbTqq','mteXode5nNfABw9tzG','DMLZAwjSzq','C2HVDW','BwfYCZjKtwfW','B3zLCMXHEvbHBMu','mZjoALzgu0S','Dg9W','D2LKDgG','x19TB2rLBa','zwfJAenVBxbVBMvUDa','Bgf0tg5Nvg9myxLLCLbVAw50','x21HCe9MzNnLDa','x2XLywzSzxrFAwq','6k+35BYv5ywLigvJAgfYDhmG5BQtia','z2v0vMLLD3bVCNrsB290','zxH0zw5Kq29TCg9Uzw50tw9KzwW','z2v0qK1HCa','x2nYzwf0zunOyxj0t3zLCMXHEq','y2XLyxi','zgf0yvrVug9PBNq','Aw5PDa','x3nOB3C','BMfTzq','mtzYAxD4qvu','zwfJAfnLCMLLCW','yw55m2q','EM9VBufUAw1HDgLVBG','zgLTzw5ZAw9UCW','CMvTB3zL','AgfZtgf5zxi','rvbtrZm4ntC','Bgf5zxi','q1jt','zM9YrwfJAa','yw5PBwf0zwq','mJC2odGWmfvWq3vMEG','v2vIA2L0vhjHBNnMB3jTt3jPz2LU','C2v0wKLUzgv4','qNjVD3nLCG','mJmYmdbUs2Lczum','Bg5N','DxrPBa','x3zPzxDWB3j0uM9VDa','x3jLC2L6zuHHBMrSzxi','nZC3ntu4EeXXqLLU','B2zM','mhb4','B25szw1VDMu','DxvPza','BwfYCZjKtwfWuM9HBq','x19TyxbpzMzZzxq','A2v5CW','BgvMDa','Cg9PBNruB0rHDge','mJzrDKLnAwe','zgL2','C2nOzwr1BgvY','z2v0wNi','EKLUzgv4','zwnOyxj0CW','B3b0Aw9UCW','x2vJAgfYDhndB250ywLUzxi','mZq0m21hCLPACa','zgvMyxvSDfzHBhvL','rg9TvxrPBa','CMvNAxn0zxjby3rPB24','x21HCNmYzf9Tyxa','tgf5zxi','twvYy2f0B3i','DMLZAwjPBgL0Eq','z2v0u2L6zq','z2v0','x2vJAgfYDhnjBNn0yw5Jzq','C2v0twfWt2zMC2v0','mZC1otr0Dwrlvg8','qM91BMrPBMDszwn0','vxrPBa','ntaLiduWjq','AxnbzgrLza','CMvZAxPL','zwnjBNn0yw5Jzq','rwnOyxj0C0XHEwvY','Bw92zuHHBMrSzxi','yMLUza','x3bYB2PLy3rPB24','x19LC01VzhvSzq','DhjHBNnMB3jTt3jPz2LU','z3jHCgHPyW','Bw92zwvUza','tgf5zxjvDgLS','yxbWzw5Kq2HPBgq','nuP6DNPQAG','Bgf5zxjqB2LUDfrVtgf0tg5N','C2v0rwnOyxj0C09WDgLVBG','zgLZCg9Zzq','z2v0ugfUzq','y3jLyxrL','C2v0t3b0Aw9U','uhjVAMvJDgLVBG','BMv3u2L6zq','y3jLyxrLrwXLBwvUDa','zgLZCgf0y2Hby3rPB24','y29VCMrPBMf0zvn5C3rLBq','C3r5Bgu','AgvPz2H0','EM9VBwvUza','BwfW','x2fWAq','zgvMyxvSDa','CgLK','tufyx0XbveLuvurf','ywjZ'];_0x2b8c=function(){return _0x50268f;};return _0x2b8c();}const L$1=mars2d__namespace['L'];class CompositeCoordinateSystem{constructor(_0x360bf3,_0x281e29){const _0xd349fb=_0x111a;this['_mars2d_map']=_0x360bf3,this[_0xd349fb(0xa1)]=['lng',_0xd349fb(0x84)],this['_mapOffset']=[0x0,0x0],this[_0xd349fb(0x75)]=_0x281e29,this[_0xd349fb(0xda)]=L$1[_0xd349fb(0x6c)][_0xd349fb(0xca)];}[_0x2f7f99(0xcf)](_0x2704ac){this['_mapOffset']=_0x2704ac;}[_0x2f7f99(0x96)](){const _0x4b69a9=_0x2f7f99;return this[_0x4b69a9(0xc8)];}['prepareCustoms'](){const _0x518975=_0x2f7f99,_0x69e19a=echarts__namespace[_0x518975(0xaf)],_0x26b89c=this[_0x518975(0x7e)]();return{'coordSys':{'type':'mars2dMap','x':_0x26b89c['x'],'y':_0x26b89c['y'],'width':_0x26b89c[_0x518975(0x8d)],'height':_0x26b89c[_0x518975(0x72)]},'api':{'coord':_0x69e19a[_0x518975(0xd9)](this[_0x518975(0x99)],this),'size':_0x69e19a[_0x518975(0xd9)](_0x1b7939,this)}};function _0x1b7939(_0xd66453,_0x393b04){const _0x3480e8=_0x518975;return _0x393b04=_0x393b04||[0x0,0x0],_0x69e19a[_0x3480e8(0x74)]([0x0,0x1],function(_0x231f98){const _0x5d8b82=_0x3480e8,_0x453d7a=_0x393b04[_0x231f98],_0x26e999=_0xd66453[_0x231f98]/0x2,_0x274a62=[],_0x40b982=[];return _0x274a62[_0x231f98]=_0x453d7a-_0x26e999,_0x40b982[_0x231f98]=_0x453d7a+_0x26e999,_0x274a62[0x1-_0x231f98]=_0x40b982[0x1-_0x231f98]=_0x393b04[0x1-_0x231f98],Math[_0x5d8b82(0x79)](this[_0x5d8b82(0x99)](_0x274a62)[_0x231f98]-this[_0x5d8b82(0x99)](_0x40b982)[_0x231f98]);},this);}}[_0x2f7f99(0x99)](_0xdcdbc8){const _0x773a6b=_0x2f7f99;_0xdcdbc8[0x1]===null&&(_0xdcdbc8[0x1]=L$1[_0x773a6b(0xa6)][_0x773a6b(0xa4)]['projection'][_0x773a6b(0x78)]);const _0x223bc4=this[_0x773a6b(0xc8)][_0x773a6b(0x90)]([_0xdcdbc8[0x1],_0xdcdbc8[0x0]]),_0x52a13f=this['_mapOffset'];return[_0x223bc4['x']-_0x52a13f[0x0],_0x223bc4['y']-_0x52a13f[0x1]];}[_0x2f7f99(0xbb)](_0x1ad30d){const _0x237526=_0x2f7f99,_0x2bbc3d=this[_0x237526(0x91)],_0x22de64=this['_mars2d_map'][_0x237526(0xe2)]([_0x1ad30d[0x0]+_0x2bbc3d[0x0],_0x1ad30d[0x1]+_0x2bbc3d[0x1]]);return[_0x22de64[_0x237526(0xae)],_0x22de64['lat']];}[_0x2f7f99(0x7e)](){const _0x962906=_0x2f7f99,_0x3fa70e=this['_mars2d_map'][_0x962906(0xcc)]();return new echarts__namespace[(_0x962906(0xdd))][(_0x962906(0xd1))](0x0,0x0,_0x3fa70e['x'],_0x3fa70e['y']);}['getRoamTransform'](){return echarts__namespace['matrix']['create']();}}CompositeCoordinateSystem[_0x2f7f99(0xa1)]=[_0x2f7f99(0xae),_0x2f7f99(0x84)],CompositeCoordinateSystem[_0x2f7f99(0xe6)]=function(_0x543eca,_0x185d42){const _0x573723=_0x2f7f99;let _0x436068;const _0x8c93bd=_0x543eca[_0x573723(0xbe)][_0x573723(0xd6)][_0x573723(0xc8)];_0x543eca[_0x573723(0x8f)]('mars2dMap',function(_0x29f6ae){const _0x117846=_0x573723,_0x3ed6b2=_0x185d42[_0x117846(0xbf)]()['painter'];if(!_0x3ed6b2)return;!_0x436068&&(_0x436068=new CompositeCoordinateSystem(_0x8c93bd,_0x185d42)),_0x29f6ae[_0x117846(0x70)]=_0x436068,_0x436068['setMapOffset'](_0x29f6ae[_0x117846(0xb8)]||[0x0,0x0]);}),_0x543eca[_0x573723(0x9e)](function(_0x5638a0){const _0x29de15=_0x573723;_0x5638a0[_0x29de15(0xcd)](_0x29de15(0x70))===_0x29de15(0x89)&&(!_0x436068&&(_0x436068=new CompositeCoordinateSystem(_0x8c93bd)),_0x5638a0[_0x29de15(0x70)]=_0x436068);});};echarts__namespace&&(echarts__namespace['registerCoordinateSystem'](_0x2f7f99(0x89),CompositeCoordinateSystem),echarts__namespace[_0x2f7f99(0xc7)]({'type':_0x2f7f99(0xb7),'event':'mars2dMapRoam','update':'updateLayout'},function(_0x426cf6,_0x468c96){}),echarts__namespace[_0x2f7f99(0x95)]({'type':'mars2dMap','getBMap':function(){return this['_mars2d_map'];},'defaultOption':{'roam':![]}}),echarts__namespace['extendComponentView']({'type':_0x2f7f99(0x89),'init':function(_0x4b42a8,_0x407e18){const _0x410389=_0x2f7f99;this['_api']=_0x407e18,this['_map']=_0x4b42a8[_0x410389(0xbe)]['ecInstance']['_mars2d_map'];const _0xcedc6=_0x4b42a8[_0x410389(0xbe)][_0x410389(0xd6)][_0x410389(0xc8)],_0x5cc0f0=_0x407e18[_0x410389(0xbf)]()['painter'][_0x410389(0x94)](),_0x2e73e3=_0xcedc6[_0x410389(0xc2)][_0x410389(0xa0)]&&L$1[_0x410389(0xac)][_0x410389(0x9f)];_0x5cc0f0['className']=_0x410389(0x7f)+(_0x2e73e3?_0x410389(0xa8):'hide')+'\x20echarts-layer';const _0x4f58db=L$1[_0x410389(0xc6)]['testProp']([_0x410389(0xdc),_0x410389(0xaa),_0x410389(0x81)]);_0x5cc0f0[_0x410389(0x71)][_0x4f58db]=_0x410389(0xd3),this['_viewportRoot']=_0x5cc0f0,this[_0x410389(0x7c)]['on'](_0x410389(0xde),this[_0x410389(0xd8)],this),this[_0x410389(0x7c)]['on']('zoomend',this[_0x410389(0xd8)],this);},'moveHandler'(){const _0x51341f=_0x2f7f99,_0xd0d825=this[_0x51341f(0x7c)]['containerPointToLayerPoint']([0x0,0x0]),_0xcfadbc=[_0xd0d825['x']||0x0,_0xd0d825['y']||0x0];this[_0x51341f(0xb0)][_0x51341f(0x71)][_0x51341f(0xba)]=_0xcfadbc[0x0]+'px',this['_viewportRoot'][_0x51341f(0x71)][_0x51341f(0x8c)]=_0xcfadbc[0x1]+'px';const _0x2104db=this[_0x51341f(0x8e)];_0x2104db['__mapOffset']=_0xcfadbc,_0x2104db?.[_0x51341f(0x70)]&&_0x2104db[_0x51341f(0x70)][_0x51341f(0xcf)](_0xcfadbc),this['_api'][_0x51341f(0x6f)]({'type':_0x51341f(0xb7)});},'dispose':function(_0x3ee47b){const _0xb525c4=_0x2f7f99;this['_map'][_0xb525c4(0xb3)](_0xb525c4(0xde),this['moveHandler'],this),this[_0xb525c4(0x7c)][_0xb525c4(0xb3)](_0xb525c4(0x73),this['moveHandler'],this);}}));const L=mars2d__namespace['L'];class EchartsLayer extends L[_0x2f7f99(0xc9)]{constructor(_0x39c468={}){const _0x5130ff=_0x2f7f99;super(_0x39c468),this[_0x5130ff(0xc2)]=_0x39c468,L['Util'][_0x5130ff(0x7a)](this),this[_0x5130ff(0xc2)]['id']=mars2d__namespace[_0x5130ff(0xd2)][_0x5130ff(0xc5)](this[_0x5130ff(0xc2)]['id'],this[_0x5130ff(0xb6)]),this[_0x5130ff(0xc2)][_0x5130ff(0x77)]=mars2d__namespace['Util'][_0x5130ff(0xc5)](this[_0x5130ff(0xc2)][_0x5130ff(0x77)],-0x1),this[_0x5130ff(0xc2)][_0x5130ff(0x9c)]=mars2d__namespace[_0x5130ff(0xd2)][_0x5130ff(0xc5)](this[_0x5130ff(0xc2)][_0x5130ff(0x9c)],'');}get['uuid'](){const _0x1878d6=_0x2f7f99;return this[_0x1878d6(0x92)];}get[_0x2f7f99(0xd4)](){const _0x5b2a4e=_0x2f7f99;return this['_map']&&this[_0x5b2a4e(0x7c)][_0x5b2a4e(0xa3)](this);}get[_0x2f7f99(0x77)](){return this['options']['pid'];}set[_0x2f7f99(0x77)](_0x42796e){const _0x1f2002=_0x2f7f99;this[_0x1f2002(0xc2)][_0x1f2002(0x77)]=_0x42796e;}get['id'](){const _0x27a7c2=_0x2f7f99;return this[_0x27a7c2(0xc2)]['id'];}set['id'](_0x518f36){const _0x1a7231=_0x2f7f99;this[_0x1a7231(0xc2)]['id']=_0x518f36;}get[_0x2f7f99(0x9c)](){const _0x2e6d34=_0x2f7f99;return this[_0x2e6d34(0xc2)][_0x2e6d34(0x9c)];}set[_0x2f7f99(0x9c)](_0x3a23c9){const _0x500a56=_0x2f7f99;this[_0x500a56(0xc2)][_0x500a56(0x9c)]=_0x3a23c9;}get[_0x2f7f99(0xa5)](){const _0x19dda3=_0x2f7f99;return this[_0x19dda3(0xce)];}get[_0x2f7f99(0x88)](){return this['_show'];}set[_0x2f7f99(0x88)](_0x5550cf){const _0x19b340=_0x2f7f99;this[_0x19b340(0x9b)]=_0x5550cf,_0x5550cf?this['_echartsContainer']['style'][_0x19b340(0xcb)]=_0x19b340(0x87):this[_0x19b340(0xc3)][_0x19b340(0x71)][_0x19b340(0xcb)]=_0x19b340(0x80);}['onAdd'](_0x1310e7){const _0x27d313=_0x2f7f99;if(!echarts__namespace)throw new Error(_0x27d313(0x93));this[_0x27d313(0x7c)]=_0x1310e7,this[_0x27d313(0xc3)]=this[_0x27d313(0x97)](),this[_0x27d313(0xce)]=echarts__namespace[_0x27d313(0x9a)](this['_echartsContainer']),this[_0x27d313(0xce)][_0x27d313(0xc8)]=_0x1310e7,this[_0x27d313(0xe3)](this[_0x27d313(0xc2)]),this['_map']['on'](_0x27d313(0xd5),this[_0x27d313(0xb1)],this);}[_0x2f7f99(0xb5)](){const _0x320422=_0x2f7f99;this[_0x320422(0xce)]&&(this[_0x320422(0xce)][_0x320422(0x98)](),this['_echartsInstance'][_0x320422(0xe4)](),delete this[_0x320422(0xce)]),this['_echartsContainer']&&(L['DomUtil'][_0x320422(0xa2)](this[_0x320422(0xc3)]),delete this[_0x320422(0xc3)]),this['_map'][_0x320422(0xb3)](_0x320422(0xd5),this[_0x320422(0xb1)],this),delete this['_map'];}[_0x2f7f99(0xab)](_0x39db75){const _0x320463=_0x2f7f99;this[_0x320463(0xc2)][_0x320463(0xc0)]=_0x39db75,this[_0x320463(0xc3)]&&(this[_0x320463(0xc3)]['style'][_0x320463(0xc0)]=_0x39db75);}['_createChartOverlay'](){const _0x580372=_0x2f7f99,_0x7462e1=this[_0x580372(0x7c)][_0x580372(0xcc)](),_0x18e13a=document[_0x580372(0x6e)](_0x580372(0xbd));_0x18e13a['style'][_0x580372(0x82)]='absolute',_0x18e13a['style'][_0x580372(0x8c)]=_0x580372(0xb4),_0x18e13a['style'][_0x580372(0xba)]='0px',_0x18e13a['style'][_0x580372(0x72)]=_0x7462e1['y']+'px',_0x18e13a['style']['width']=_0x7462e1['x']+'px',_0x18e13a['style'][_0x580372(0xc0)]=this[_0x580372(0xc2)]['zIndex']||0x63;const _0x551e0c=this[_0x580372(0x7c)][_0x580372(0xe5)](this[_0x580372(0xc2)]['pane']||_0x580372(0x8a));return _0x551e0c[_0x580372(0xe0)](_0x18e13a),_0x18e13a;}[_0x2f7f99(0xb1)](_0x36ac33){const _0x12c1f5=_0x2f7f99;if(!this[_0x12c1f5(0xce)])return;const _0x5b4d7a=_0x36ac33[_0x12c1f5(0x6d)];this[_0x12c1f5(0xc3)][_0x12c1f5(0x71)][_0x12c1f5(0x8d)]=_0x5b4d7a['x']+'px',this[_0x12c1f5(0xc3)][_0x12c1f5(0x71)][_0x12c1f5(0x72)]=_0x5b4d7a['y']+'px',this[_0x12c1f5(0xce)][_0x12c1f5(0xd5)]();}[_0x2f7f99(0xe3)](_0x37cbb9,_0x27468f,_0x150ef7){const _0x152a1a=_0x2f7f99;this[_0x152a1a(0xce)]&&(_0x37cbb9[_0x152a1a(0x89)]=_0x37cbb9['mars2dMap']||{'roam':!![]},this[_0x152a1a(0xce)][_0x152a1a(0xe7)](_0x37cbb9,_0x27468f,_0x150ef7));}}mars2d__namespace['layer'][_0x2f7f99(0xd7)]=EchartsLayer,mars2d__namespace[_0x2f7f99(0xdf)]['register'](_0x2f7f99(0xc1),EchartsLayer),exports[_0x2f7f99(0xd7)]=EchartsLayer,Object[_0x2f7f99(0x7b)](exports,_0x2f7f99(0xdb),{'value':!![]});
}));
{
"name": "mars2d-echarts",
"version": "3.0.11",
"version": "3.0.12",
"description": "Mars2D平台插件,结合echarts可视化功能插件",

@@ -13,3 +13,3 @@ "main": "dist/mars2d-echarts.js",

"devDependencies": {
"mars2d": "^3.0.11"
"mars2d": "^3.0.12"
},

@@ -16,0 +16,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc