m4-w-fast 1.0.0 → 1.0.1
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/README.md +5 -2
- package/dist/index.js +9 -1
- package/dist/intersect.worker.js +9 -1
- package/dist/isoBands.worker.js +1 -1
- package/dist/readFile.d.ts +5 -5
- package/dist/readFile.js +1 -1
- package/package.json +15 -11
package/dist/readFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x28c5(_0xb6aad9,_0x587ec4){const _0x5956d4=a3_0x5956();return a3_0x28c5=function(_0x28c547,_0x541a2d){_0x28c547=_0x28c547-0x10f;let _0x35b9d7=_0x5956d4[_0x28c547];return _0x35b9d7;},a3_0x28c5(_0xb6aad9,_0x587ec4);}const a3_0x1255da=a3_0x28c5;(function(_0xe817f4,_0x3f0485){const _0x59338e=a3_0x28c5,_0x200740=_0xe817f4();while(!![]){try{const _0x54ac62=-parseInt(_0x59338e(0x10f))/0x1+-parseInt(_0x59338e(0x110))/0x2*(-parseInt(_0x59338e(0x12f))/0x3)+-parseInt(_0x59338e(0x147))/0x4+parseInt(_0x59338e(0x113))/0x5*(-parseInt(_0x59338e(0x15e))/0x6)+-parseInt(_0x59338e(0x12a))/0x7+-parseInt(_0x59338e(0x11c))/0x8+parseInt(_0x59338e(0x117))/0x9*(parseInt(_0x59338e(0x12d))/0xa);if(_0x54ac62===_0x3f0485)break;else _0x200740['push'](_0x200740['shift']());}catch(_0x531a02){_0x200740['push'](_0x200740['shift']());}}}(a3_0x5956,0xc4a23));function a3_0x5956(){const _0x15c447=['1366782TwsqWL','sort','minVal','module','该时次文件数据异常','latLineNum','get','points','onerror','964382bsIHmd','2465308tcwzJm','from','error','10srYLqZ','isArray','isNaN','terminate','9XZqxaj','sortFeaturesByArea','length','min','toNumber','2482616pBHpPI','ceil','isobands','times','postMessage','trim','getIsoColor','size','breaks','max','indexOf','flat','getIsoBandsFastByWorker','forEach','9366105nxTqGE','lat','getGridPoints','27688030RVPKct','clipDataByJson','3mkaKTg','getIsoBands','该时次未获取到文件','all','abs','setJson','lngLineNum','getJson','features','properties','map','onmessage','floor','rgba(','hardwareConcurrency','push','gjLng','chunkArray','FeatureCollection','maxVal','slice','getIsoLines','Polygon','Feature','510912trsmWR','getIsoBandsFastBase','data','contour','minLng','coordinates','filter','geometry','__area','jsonMap','minLat','val','json','string','gjLat','getIsoBandsFast','plus','split','featureCollection','getBreaks','rgba(255,255,255,0)','filePath','isolines'];a3_0x5956=function(){return _0x15c447;};return a3_0x5956();}import*as a3_0x447ddd from'@turf/turf';import a3_0x53cded from'big.js';import{contours}from'd3-contour';export class _readFileDiamond4{[a3_0x1255da(0x15c)];[a3_0x1255da(0x153)]=[];[a3_0x1255da(0x13f)]=0x0;[a3_0x1255da(0x155)]=0x0;['lngLineNum']=0x0;[a3_0x1255da(0x163)]=0x0;[a3_0x1255da(0x14b)]=0x0;['minLat']=0x0;[a3_0x1255da(0x150)]=new Map();[a3_0x1255da(0x142)]=-Infinity;[a3_0x1255da(0x160)]=Infinity;constructor(_0x564798){const _0x2f3661=a3_0x1255da;this[_0x2f3661(0x15c)]=_0x564798;}async['start'](){const _0x1bc5e6=a3_0x1255da,_0x9ab7f4=await fetch(this['filePath']);if(!_0x9ab7f4['ok'])return _0x1bc5e6(0x131);const _0x56ad50=await _0x9ab7f4['text'](),_0x267c6d=_0x56ad50['split']('\x0a');if(_0x267c6d['length']<0x4)return _0x1bc5e6(0x162);const _0x47201d=(_0x267c6d[0x1]??'')[_0x1bc5e6(0x121)]()['split'](/\s+/);let _0x4bd325=0x2;while(_0x47201d[_0x1bc5e6(0x119)]<0x13){_0x47201d['push'](...(_0x267c6d[_0x4bd325]??'')[_0x1bc5e6(0x121)]()[_0x1bc5e6(0x158)](/\s+/)),_0x4bd325++;}this[_0x1bc5e6(0x13f)]=Number(_0x47201d[0x6]);const _0x12d3b8=Number(_0x47201d[0x8]),_0x114ebd=Number(_0x47201d[0xa]),_0x5d6328=Number(_0x47201d[0xb]);this[_0x1bc5e6(0x135)]=Number(_0x47201d[0xc]),this[_0x1bc5e6(0x163)]=Number(_0x47201d[0xd]),this['minLng']=_0x12d3b8,this[_0x1bc5e6(0x151)]=_0x114ebd,this['gjLat']=Math[_0x1bc5e6(0x133)](Number(_0x47201d[0x7]))*(_0x114ebd>_0x5d6328?-0x1:0x1);const _0x25817b=this[_0x1bc5e6(0x135)],_0x23f09e=this[_0x1bc5e6(0x163)],_0x4faacb=_0x25817b*_0x23f09e;if(_0x4faacb===0x0)return;const _0x42aca6=Array['from']({'length':this[_0x1bc5e6(0x135)]});for(let _0x1558e1=0x0;_0x1558e1<this[_0x1bc5e6(0x135)];_0x1558e1++){_0x42aca6[_0x1558e1]=a3_0x53cded(_0x12d3b8)[_0x1bc5e6(0x157)](a3_0x53cded(_0x1558e1)[_0x1bc5e6(0x11f)](this[_0x1bc5e6(0x13f)]))[_0x1bc5e6(0x11b)]();}const _0x3488d2=Array[_0x1bc5e6(0x111)]({'length':this['latLineNum']});for(let _0x1e793b=0x0;_0x1e793b<this['latLineNum'];_0x1e793b++){_0x3488d2[_0x1e793b]=a3_0x53cded(_0x114ebd)[_0x1bc5e6(0x157)](a3_0x53cded(_0x1e793b)['times'](this[_0x1bc5e6(0x155)]))[_0x1bc5e6(0x11b)]();}this[_0x1bc5e6(0x153)]=Array[_0x1bc5e6(0x111)]({'length':this[_0x1bc5e6(0x135)]*this['latLineNum']});let _0x2de998=0x0;for(let _0x377139=_0x4bd325;_0x377139<_0x267c6d[_0x1bc5e6(0x119)]&&_0x2de998<_0x4faacb;_0x377139++){const _0x44d599=_0x267c6d[_0x377139]??'',_0x2f8cca=_0x44d599[_0x1bc5e6(0x121)]()[_0x1bc5e6(0x158)](/\s+/);if(!_0x2f8cca)continue;for(let _0x488624=0x0;_0x488624<_0x2f8cca['length'];_0x488624++){const _0x39746b=Number(_0x2f8cca[_0x488624]);this[_0x1bc5e6(0x142)]=Math[_0x1bc5e6(0x125)](this[_0x1bc5e6(0x142)],_0x39746b),this[_0x1bc5e6(0x160)]=Math[_0x1bc5e6(0x11a)](this[_0x1bc5e6(0x160)],_0x39746b);const _0x3c24b0=Math[_0x1bc5e6(0x13b)](_0x2de998/_0x25817b),_0x4a9834=_0x2de998%_0x25817b,_0x798314=_0x42aca6[_0x4a9834],_0x4d7f13=_0x3488d2[_0x3c24b0];_0x4d7f13&&_0x798314&&(this[_0x1bc5e6(0x153)][_0x2de998]={'lat':_0x4d7f13,'lng':_0x798314,'val':_0x39746b}),_0x2de998++;}}this[_0x1bc5e6(0x153)]=this['json']['filter'](_0x54582c=>_0x54582c!==undefined);}[a3_0x1255da(0x136)](){const _0x10bb61=a3_0x1255da;return this[_0x10bb61(0x153)];}[a3_0x1255da(0x134)](_0x4759dc){const _0x68eb12=a3_0x1255da;this[_0x68eb12(0x153)]=_0x4759dc,this[_0x68eb12(0x150)]=new Map(),this[_0x68eb12(0x153)][_0x68eb12(0x129)](_0x1fb37c=>{const _0x2e12de=_0x68eb12;this[_0x2e12de(0x150)]['set'](_0x1fb37c['lng']+'-'+_0x1fb37c[_0x2e12de(0x12b)],_0x1fb37c['val']);});}['getBreaks'](){const _0x186e43=a3_0x1255da,_0x5ae6fa=Math['max'](...this[_0x186e43(0x153)]['map'](_0x4cb449=>_0x4cb449[_0x186e43(0x152)])),_0x16d164=Math[_0x186e43(0x11a)](...this[_0x186e43(0x153)]['map'](_0x7e9865=>_0x7e9865[_0x186e43(0x152)])),_0x229071=[];for(let _0x1998eb=_0x16d164-0x1;_0x1998eb<_0x5ae6fa+0x1;_0x1998eb++){_0x229071['push'](_0x1998eb);}return _0x229071;}[a3_0x1255da(0x12c)](){const _0x31f728=a3_0x1255da,_0x4e02fa=this['json']['map'](_0x43d3af=>[_0x43d3af['lng'],_0x43d3af[_0x31f728(0x12b)]]),_0xf6f983=a3_0x447ddd[_0x31f728(0x165)](_0x4e02fa),_0xf9d8ab=this[_0x31f728(0x150)];return _0xf6f983[_0x31f728(0x137)]['forEach'](_0xccf1fe=>{const _0x4e33fc=_0x31f728;_0xccf1fe['properties']={'z':_0xf9d8ab[_0x4e33fc(0x164)](_0xccf1fe[_0x4e33fc(0x14e)]['coordinates'][0x0]+'-'+_0xccf1fe['geometry'][_0x4e33fc(0x14c)][0x1])||0x0};}),_0xf6f983;}[a3_0x1255da(0x144)](_0x479347=[]){const _0x3d81c8=a3_0x1255da;_0x479347[_0x3d81c8(0x119)]===0x0&&(_0x479347=this[_0x3d81c8(0x15a)]());const _0x7148c2=this['getGridPoints']();return a3_0x447ddd[_0x3d81c8(0x15d)](_0x7148c2,_0x479347,{'zProperty':'z'});}[a3_0x1255da(0x130)](_0x4044da=[]){const _0xb6eb29=a3_0x1255da;_0x4044da['length']===0x0&&(_0x4044da=this['getBreaks']());const _0x4b85c5=this[_0xb6eb29(0x12c)]();return a3_0x447ddd[_0xb6eb29(0x11e)](_0x4b85c5,_0x4044da,{'zProperty':'z'});}[a3_0x1255da(0x122)](_0x290a5f,_0x4bfb48,_0x4a7073){const _0x1facf7=a3_0x1255da;let _0x236f93=_0x1facf7(0x15b);for(let _0x4adb69=0x0;_0x4adb69<_0x4bfb48[_0x1facf7(0x119)]-0x1;_0x4adb69++){_0x4adb69<_0x4bfb48[_0x1facf7(0x119)]-0x1&&(_0x4bfb48[_0x4adb69]+'-'+_0x4bfb48[_0x4adb69+0x1]===_0x290a5f&&(typeof _0x4a7073[_0x4adb69]=='string'?_0x236f93=_0x4a7073[_0x4adb69]:_0x236f93=_0x1facf7(0x13c)+_0x4a7073[_0x4adb69][0x0]+','+_0x4a7073[_0x4adb69][0x1]+','+_0x4a7073[_0x4adb69][0x2]+','+(_0x4a7073[_0x4adb69][0x3]||_0x4a7073[_0x4adb69][0x3]===0x0?_0x4a7073[_0x4adb69][0x3]:0x1)+')'));}return _0x236f93;}[a3_0x1255da(0x156)](_0x48f8ac=[]){const _0x2ce628=a3_0x1255da,_0x4d6259=this[_0x2ce628(0x148)](_0x48f8ac);let _0x390de1=[];const {values:_0xf6f4c1,nx:_0x19edbe,ny:_0x3f15af}=_0x4d6259;_0x48f8ac=_0x4d6259[_0x2ce628(0x124)];if(!_0xf6f4c1)return{'type':_0x2ce628(0x141),'features':[]};const _0x13433e=contours()[_0x2ce628(0x123)]([_0x19edbe,_0x3f15af]);for(let _0x134c4c=0x0;_0x134c4c<_0x48f8ac['length'];_0x134c4c++){const _0x270e92=_0x48f8ac[_0x134c4c];if(_0x270e92<this[_0x2ce628(0x160)]||_0x270e92>this['maxVal'])continue;const _0x1fe71f=_0x13433e[_0x2ce628(0x14a)](_0xf6f4c1,_0x270e92);if(!_0x1fe71f||!_0x1fe71f['coordinates'])continue;for(const _0x1c5b7e of _0x1fe71f[_0x2ce628(0x14c)]){let _0xce3e5f=[];if(Array[_0x2ce628(0x114)](_0x1c5b7e)&&_0x1c5b7e[_0x2ce628(0x119)]>0x0&&Array[_0x2ce628(0x114)](_0x1c5b7e[0x0])&&typeof _0x1c5b7e[0x0][0x0]==='number')_0xce3e5f=[_0x1c5b7e];else{if(Array['isArray'](_0x1c5b7e))_0xce3e5f=_0x1c5b7e;else continue;}for(const _0x4b3ff3 of _0xce3e5f){const _0x3ad8a1=_0x4b3ff3[_0x2ce628(0x139)](_0x3387c1=>{const _0x6af77d=_0x2ce628,_0xe8b49b=_0x3387c1[0x0],_0x4d4a6f=_0x3387c1[0x1];if(_0xe8b49b==null||_0x4d4a6f==null||Number['isNaN'](_0xe8b49b)||Number[_0x6af77d(0x115)](_0x4d4a6f))return null;const _0x5d9a53=a3_0x53cded(this[_0x6af77d(0x14b)])['plus'](a3_0x53cded(_0xe8b49b)['times'](this[_0x6af77d(0x13f)]))[_0x6af77d(0x11b)](),_0x10073c=a3_0x53cded(this[_0x6af77d(0x151)])[_0x6af77d(0x157)](a3_0x53cded(_0x4d4a6f)[_0x6af77d(0x11f)](this[_0x6af77d(0x155)]))[_0x6af77d(0x11b)]();return[_0x5d9a53,_0x10073c];})[_0x2ce628(0x14d)](_0x1fde8e=>_0x1fde8e!==null),_0x52fb29=_0x3ad8a1['filter']((_0xc21086,_0x503f6c,_0x48eda8)=>{if(_0x503f6c===0x0)return!![];const _0x2920ef=_0x48eda8[_0x503f6c-0x1];return!(_0xc21086[0x0]===_0x2920ef[0x0]&&_0xc21086[0x1]===_0x2920ef[0x1]);});if(_0x52fb29[_0x2ce628(0x119)]<0x3)continue;const _0x4dcd21=_0x52fb29[0x0],_0x322535=_0x52fb29[_0x52fb29[_0x2ce628(0x119)]-0x1];(_0x4dcd21[0x0]!==_0x322535[0x0]||_0x4dcd21[0x1]!==_0x322535[0x1])&&_0x52fb29[_0x2ce628(0x13e)]([_0x4dcd21[0x0],_0x4dcd21[0x1]]),_0x390de1['push']({'type':_0x2ce628(0x146),'properties':{'z':_0x270e92},'geometry':{'type':_0x2ce628(0x145),'coordinates':[_0x52fb29]}});}}}return _0x390de1=this[_0x2ce628(0x118)](_0x390de1),{'type':_0x2ce628(0x141),'features':_0x390de1};}['getColorFast'](_0x5b6d40,_0x2c9f4d,_0x5afd5a){const _0x3cfc4f=a3_0x1255da;let _0x20537d=_0x3cfc4f(0x15b);const _0x561aa6=_0x2c9f4d[_0x3cfc4f(0x126)](_0x5b6d40);if(typeof _0x5afd5a[_0x561aa6]==_0x3cfc4f(0x154))_0x20537d=_0x5afd5a[_0x561aa6];else _0x561aa6!==-0x1&&(_0x20537d=_0x3cfc4f(0x13c)+_0x5afd5a[_0x561aa6][0x0]+','+_0x5afd5a[_0x561aa6][0x1]+','+_0x5afd5a[_0x561aa6][0x2]+','+(_0x5afd5a[_0x561aa6][0x3]||_0x5afd5a[_0x561aa6][0x3]===0x0?_0x5afd5a[_0x561aa6][0x3]:0x1)+')');return _0x20537d;}[a3_0x1255da(0x140)]=(_0x3c3514,_0x4f41db)=>{const _0x484c89=a3_0x1255da,_0x3bab74=[],_0x2ee38f=Math[_0x484c89(0x125)](0x1,Math[_0x484c89(0x11d)](_0x3c3514[_0x484c89(0x119)]/_0x4f41db));for(let _0x24dda5=0x0;_0x24dda5<_0x4f41db;_0x24dda5++){_0x3bab74[_0x484c89(0x13e)](_0x3c3514[_0x484c89(0x143)](_0x24dda5*_0x2ee38f,(_0x24dda5+0x1)*_0x2ee38f));}return _0x3bab74;};[a3_0x1255da(0x12e)]=async(_0x127cdc,_0x47ec3b,_0x166f39)=>{const _0xb4ec96=a3_0x1255da,_0x4d2c8d=(navigator[_0xb4ec96(0x13d)]>0x8?0x8:navigator[_0xb4ec96(0x13d)])||0x4,_0x1119da=Math[_0xb4ec96(0x11a)](_0x4d2c8d,Math[_0xb4ec96(0x125)](0x1,_0x127cdc[_0xb4ec96(0x137)][_0xb4ec96(0x119)])),_0x2507ad=this[_0xb4ec96(0x140)](_0x127cdc[_0xb4ec96(0x137)],_0x1119da),_0x235fa5=[],_0x57d927=_0x2507ad[_0xb4ec96(0x139)](_0x49e2fb=>{const _0x21732b=_0xb4ec96,_0x5c8ee1=new Worker(_0x166f39,{'type':_0x21732b(0x161)});return _0x235fa5[_0x21732b(0x13e)](_0x5c8ee1),new Promise(_0x26729f=>{const _0x3a4290=_0x21732b;_0x5c8ee1[_0x3a4290(0x13a)]=_0x562e73=>{const _0x2201a9=_0x3a4290;_0x26729f(_0x562e73[_0x2201a9(0x149)]['features']);},_0x5c8ee1[_0x3a4290(0x166)]=_0x592034=>{const _0x22300f=_0x3a4290;console[_0x22300f(0x112)](_0x592034);debugger;},_0x5c8ee1[_0x3a4290(0x120)]({'isoChunk':_0x49e2fb,'gansuFeatures':_0x47ec3b[_0x3a4290(0x137)]});});}),_0xc80cdf=await Promise[_0xb4ec96(0x132)](_0x57d927);_0x235fa5['forEach'](_0x4da5f6=>_0x4da5f6['terminate']());const _0x465cb9=_0xc80cdf[_0xb4ec96(0x127)]();return a3_0x447ddd[_0xb4ec96(0x159)](_0x465cb9);};[a3_0x1255da(0x128)]=async(_0x5c6664=[],_0x79997a)=>{const _0x390a29=a3_0x1255da,_0x1992ce=this[_0x390a29(0x148)](_0x5c6664);let _0x512eb4=[];const {values:_0x803d2a,nx:_0x3a6bc9,ny:_0x21ee23}=_0x1992ce;_0x5c6664=_0x1992ce[_0x390a29(0x124)];if(!_0x803d2a)return{'type':_0x390a29(0x141),'features':[]};const _0x5f3502=[],_0x3c9a44=(navigator[_0x390a29(0x13d)]>0x8?0x8:navigator['hardwareConcurrency'])||0x4,_0x1b8cc1=Math['min'](_0x3c9a44,Math[_0x390a29(0x125)](0x1,_0x5c6664['length'])),_0x297515=this[_0x390a29(0x140)](_0x5c6664,_0x1b8cc1),_0x5f4760=_0x297515[_0x390a29(0x139)](_0x572729=>{const _0x256ca4=_0x390a29,_0x1f9055=new Worker(_0x79997a,{'type':'module'});return _0x5f3502[_0x256ca4(0x13e)](_0x1f9055),new Promise(_0x2c9db8=>{const _0x1ea556=_0x256ca4;_0x1f9055[_0x1ea556(0x13a)]=_0x393903=>{const _0x28d7a3=_0x1ea556;_0x2c9db8(_0x393903[_0x28d7a3(0x149)][_0x28d7a3(0x137)]);},_0x1f9055[_0x1ea556(0x166)]=_0x475e69=>{const _0x30e55c=_0x1ea556;console[_0x30e55c(0x112)](_0x475e69);debugger;},_0x1f9055[_0x1ea556(0x120)]({'breaks':_0x572729,'values':_0x803d2a,'nx':_0x3a6bc9,'ny':_0x21ee23,'minVal':this[_0x1ea556(0x160)],'maxVal':this[_0x1ea556(0x142)],'minLng':this[_0x1ea556(0x14b)],'minLat':this[_0x1ea556(0x151)],'gjLng':this[_0x1ea556(0x13f)],'gjLat':this[_0x1ea556(0x155)]});});}),_0x459421=await Promise[_0x390a29(0x132)](_0x5f4760);return _0x5f3502[_0x390a29(0x129)](_0xa383d2=>_0xa383d2[_0x390a29(0x116)]()),_0x459421[_0x390a29(0x129)](_0x4f3e01=>{const _0x444c60=_0x390a29;_0x512eb4[_0x444c60(0x13e)](..._0x4f3e01);}),_0x512eb4=this[_0x390a29(0x118)](_0x512eb4),{'type':'FeatureCollection','features':_0x512eb4};};['getIsoBandsFastBase']=(_0x50ed5e=[])=>{const _0x299417=a3_0x1255da;if(this[_0x299417(0x153)][_0x299417(0x119)]===0x0)return{'type':'FeatureCollection','features':[]};if(_0x50ed5e[_0x299417(0x119)]===0x0)_0x50ed5e=this[_0x299417(0x15a)]();const _0xa8b2c2=this[_0x299417(0x153)][_0x299417(0x139)](_0x513319=>_0x513319[_0x299417(0x152)]),_0x132a3f=this[_0x299417(0x135)],_0x214253=this['latLineNum'];return{'values':_0xa8b2c2,'breaks':_0x50ed5e,'nx':_0x132a3f,'ny':_0x214253};};['sortFeaturesByArea']=_0x922f8=>{const _0x541730=a3_0x1255da;return _0x922f8[_0x541730(0x139)](_0x5b2ef3=>{const _0x40920e=_0x541730;try{const _0x1441e3=a3_0x447ddd['area'](_0x5b2ef3)||0x0;_0x5b2ef3[_0x40920e(0x138)]={..._0x5b2ef3[_0x40920e(0x138)]||{},'__area':_0x1441e3};}catch{_0x5b2ef3['properties']={..._0x5b2ef3[_0x40920e(0x138)]||{},'__area':0x0};}return _0x5b2ef3;})[_0x541730(0x15f)]((_0x4c8fc7,_0x4cafb5)=>_0x4cafb5[_0x541730(0x138)][_0x541730(0x14f)]-_0x4c8fc7[_0x541730(0x138)][_0x541730(0x14f)])['filter'](_0x7da7b5=>_0x7da7b5[_0x541730(0x138)]&&_0x541730(0x14f)in _0x7da7b5[_0x541730(0x138)]&&_0x7da7b5['properties'][_0x541730(0x14f)]!==0x0)[_0x541730(0x139)](_0x4f3f7e=>{const _0x21bfd9=_0x541730;if(_0x4f3f7e[_0x21bfd9(0x138)]&&_0x21bfd9(0x14f)in _0x4f3f7e['properties']){const {__area:_0x1065d2,..._0x4694ea}=_0x4f3f7e[_0x21bfd9(0x138)];_0x4f3f7e[_0x21bfd9(0x138)]=_0x4694ea;}return _0x4f3f7e;});};}export default _readFileDiamond4;
|
|
1
|
+
const a3_0x34f088=a3_0x4316;(function(_0x21d8ca,_0x4dd45b){const _0x2a57c6=a3_0x4316,_0x450b94=_0x21d8ca();while(!![]){try{const _0x279b74=parseInt(_0x2a57c6(0xa1))/0x1+-parseInt(_0x2a57c6(0x93))/0x2+-parseInt(_0x2a57c6(0x9c))/0x3*(parseInt(_0x2a57c6(0x75))/0x4)+parseInt(_0x2a57c6(0x87))/0x5+parseInt(_0x2a57c6(0x6e))/0x6*(parseInt(_0x2a57c6(0x94))/0x7)+-parseInt(_0x2a57c6(0x99))/0x8+parseInt(_0x2a57c6(0xb4))/0x9;if(_0x279b74===_0x4dd45b)break;else _0x450b94['push'](_0x450b94['shift']());}catch(_0x1b72f6){_0x450b94['push'](_0x450b94['shift']());}}}(a3_0x41ec,0xeba17));import{points as a3_0x4a740f,featureCollection as a3_0x1dc05c}from'@turf/helpers';import a3_0x2e7201 from'@turf/isolines';import a3_0x4dfc4f from'@turf/isobands';import a3_0x129b5f from'@turf/area';function a3_0x41ec(){const _0x353213=['coordinates','hardwareConcurrency','该时次文件数据异常','getIsoLines','maxVal','plus','5082570CjYaMa','split','filePath','number','__area','minVal','getBreaks','13396thMgyD','contour','slice','isArray','onmessage','geometry','jsonMap','string','all','val','chunkArray','error','minLng','min','times','minLat','json','sort','1083605UhEhVj','terminate','FeatureCollection','getGridPoints','lat','forEach','getIsoBandsFast','lngLineNum','rgba(255,255,255,0)','map','get','isNaN','3016144FphbKK','14mEAaVy','properties','filter','from','latLineNum','2055304rDJCJj','getIsoColor','gjLng','861TDHwuv','该时次未获取到文件','lng','max','trim','954494QhYlJy','postMessage','onerror','setJson','getJson','breaks','module','Polygon','getIsoBands','features','indexOf','set','push','toNumber','getIsoBandsFastBase','getIsoBandsFastByWorker','floor','clipDataByJson','length','7432974HZrMxf','gjLat','text','sortFeaturesByArea'];a3_0x41ec=function(){return _0x353213;};return a3_0x41ec();}function a3_0x4316(_0x291ff4,_0x5c1023){const _0x41ec64=a3_0x41ec();return a3_0x4316=function(_0x43164e,_0x41d3af){_0x43164e=_0x43164e-0x65;let _0x534bf1=_0x41ec64[_0x43164e];return _0x534bf1;},a3_0x4316(_0x291ff4,_0x5c1023);}import a3_0x383de4 from'decimal.js';import{contours}from'd3-contour';export class _readFileDiamond4{[a3_0x34f088(0x70)];[a3_0x34f088(0x85)]=[];[a3_0x34f088(0x9b)]=0x0;[a3_0x34f088(0x65)]=0x0;[a3_0x34f088(0x8e)]=0x0;[a3_0x34f088(0x98)]=0x0;['minLng']=0x0;['minLat']=0x0;[a3_0x34f088(0x7b)]=new Map();['maxVal']=-Infinity;['minVal']=Infinity;constructor(_0x3556c7){const _0x5696a5=a3_0x34f088;this[_0x5696a5(0x70)]=_0x3556c7;}async['start'](){const _0x1969cb=a3_0x34f088,_0x1bd20f=await fetch(this[_0x1969cb(0x70)]);if(!_0x1bd20f['ok'])return _0x1969cb(0x9d);const _0x169f0c=await _0x1bd20f[_0x1969cb(0x66)](),_0x4961dd=_0x169f0c['split']('\x0a');if(_0x4961dd['length']<0x4)return _0x1969cb(0x6a);const _0x32b387=(_0x4961dd[0x1]??'')[_0x1969cb(0xa0)]()[_0x1969cb(0x6f)](/\s+/);let _0x5d3b8e=0x2;while(_0x32b387[_0x1969cb(0xb3)]<0x13){_0x32b387[_0x1969cb(0xad)](...(_0x4961dd[_0x5d3b8e]??'')['trim']()[_0x1969cb(0x6f)](/\s+/)),_0x5d3b8e++;}this[_0x1969cb(0x9b)]=Number(_0x32b387[0x6]);const _0xf562e2=Number(_0x32b387[0x8]),_0x1bf1d2=Number(_0x32b387[0xa]),_0xac5258=Number(_0x32b387[0xb]);this['lngLineNum']=Number(_0x32b387[0xc]),this[_0x1969cb(0x98)]=Number(_0x32b387[0xd]),this[_0x1969cb(0x81)]=_0xf562e2,this[_0x1969cb(0x84)]=_0x1bf1d2,this['gjLat']=Math['abs'](Number(_0x32b387[0x7]))*(_0x1bf1d2>_0xac5258?-0x1:0x1);const _0x1a8956=this[_0x1969cb(0x8e)],_0x274aa1=this[_0x1969cb(0x98)],_0x51969c=_0x1a8956*_0x274aa1;if(_0x51969c===0x0)return;const _0x4d4a31=Array[_0x1969cb(0x97)]({'length':this['lngLineNum']});for(let _0x46d9f=0x0;_0x46d9f<this[_0x1969cb(0x8e)];_0x46d9f++){_0x4d4a31[_0x46d9f]=new a3_0x383de4(_0xf562e2)[_0x1969cb(0x6d)](new a3_0x383de4(_0x46d9f)[_0x1969cb(0x83)](this[_0x1969cb(0x9b)]))[_0x1969cb(0xae)]();}const _0x41d91c=Array[_0x1969cb(0x97)]({'length':this[_0x1969cb(0x98)]});for(let _0xa0917c=0x0;_0xa0917c<this['latLineNum'];_0xa0917c++){_0x41d91c[_0xa0917c]=new a3_0x383de4(_0x1bf1d2)[_0x1969cb(0x6d)](new a3_0x383de4(_0xa0917c)['times'](this[_0x1969cb(0x65)]))['toNumber']();}this[_0x1969cb(0x85)]=Array[_0x1969cb(0x97)]({'length':this['lngLineNum']*this['latLineNum']});let _0x193767=0x0;for(let _0x100855=_0x5d3b8e;_0x100855<_0x4961dd[_0x1969cb(0xb3)]&&_0x193767<_0x51969c;_0x100855++){const _0x5a94b5=_0x4961dd[_0x100855]??'',_0x216815=_0x5a94b5[_0x1969cb(0xa0)]()['split'](/\s+/);if(!_0x216815)continue;for(let _0x45e773=0x0;_0x45e773<_0x216815['length'];_0x45e773++){const _0x379914=Number(_0x216815[_0x45e773]);this[_0x1969cb(0x6c)]=Math[_0x1969cb(0x9f)](this[_0x1969cb(0x6c)],_0x379914),this[_0x1969cb(0x73)]=Math[_0x1969cb(0x82)](this['minVal'],_0x379914);const _0x363519=Math[_0x1969cb(0xb1)](_0x193767/_0x1a8956),_0x862dad=_0x193767%_0x1a8956,_0xdabb64=_0x4d4a31[_0x862dad],_0x3aa044=_0x41d91c[_0x363519];_0x3aa044&&_0xdabb64&&(this[_0x1969cb(0x85)][_0x193767]={'lat':_0x3aa044,'lng':_0xdabb64,'val':_0x379914}),_0x193767++;}}this['json']=this[_0x1969cb(0x85)][_0x1969cb(0x96)](_0x9ed716=>_0x9ed716!==undefined);}[a3_0x34f088(0xa5)](){const _0x109dd3=a3_0x34f088;return this[_0x109dd3(0x85)];}[a3_0x34f088(0xa4)](_0x4ec173){const _0x489d46=a3_0x34f088;this[_0x489d46(0x85)]=_0x4ec173,this[_0x489d46(0x7b)]=new Map(),this[_0x489d46(0x85)][_0x489d46(0x8c)](_0x145b59=>{const _0x55b0c7=_0x489d46;this[_0x55b0c7(0x7b)][_0x55b0c7(0xac)](_0x145b59['lng']+'-'+_0x145b59[_0x55b0c7(0x8b)],_0x145b59[_0x55b0c7(0x7e)]);});}[a3_0x34f088(0x74)](){const _0xdb5a16=a3_0x34f088,_0x4c9ada=Math[_0xdb5a16(0x9f)](...this[_0xdb5a16(0x85)][_0xdb5a16(0x90)](_0x9324fb=>_0x9324fb['val'])),_0x18a7c3=Math[_0xdb5a16(0x82)](...this[_0xdb5a16(0x85)][_0xdb5a16(0x90)](_0x494218=>_0x494218[_0xdb5a16(0x7e)])),_0x4fcdbc=[];for(let _0x43ead0=_0x18a7c3-0x1;_0x43ead0<_0x4c9ada+0x1;_0x43ead0++){_0x4fcdbc[_0xdb5a16(0xad)](_0x43ead0);}return _0x4fcdbc;}['getGridPoints'](){const _0x5427a5=a3_0x34f088,_0x413264=this[_0x5427a5(0x85)][_0x5427a5(0x90)](_0x29449b=>[_0x29449b[_0x5427a5(0x9e)],_0x29449b['lat']]),_0x13a4fa=a3_0x4a740f(_0x413264),_0x453e5e=this['jsonMap'];return _0x13a4fa[_0x5427a5(0xaa)][_0x5427a5(0x8c)](_0x57b635=>{const _0x3a9147=_0x5427a5;_0x57b635['properties']={'z':_0x453e5e[_0x3a9147(0x91)](_0x57b635['geometry'][_0x3a9147(0x68)][0x0]+'-'+_0x57b635[_0x3a9147(0x7a)]['coordinates'][0x1])||0x0};}),_0x13a4fa;}[a3_0x34f088(0x6b)](_0x45c647=[]){const _0x4c17c1=a3_0x34f088;_0x45c647[_0x4c17c1(0xb3)]===0x0&&(_0x45c647=this[_0x4c17c1(0x74)]());const _0x3dc87e=this[_0x4c17c1(0x8a)]();return a3_0x2e7201(_0x3dc87e,_0x45c647,{'zProperty':'z'});}[a3_0x34f088(0xa9)](_0x345e71=[]){const _0x1899cd=a3_0x34f088;_0x345e71[_0x1899cd(0xb3)]===0x0&&(_0x345e71=this[_0x1899cd(0x74)]());const _0x235d6e=this['getGridPoints']();return a3_0x4dfc4f(_0x235d6e,_0x345e71,{'zProperty':'z'});}[a3_0x34f088(0x9a)](_0x1ace18,_0xfcfa95,_0x2c4200){const _0xf25e1d=a3_0x34f088;let _0x2541d1=_0xf25e1d(0x8f);for(let _0x5b312c=0x0;_0x5b312c<_0xfcfa95[_0xf25e1d(0xb3)]-0x1;_0x5b312c++){_0x5b312c<_0xfcfa95[_0xf25e1d(0xb3)]-0x1&&(_0xfcfa95[_0x5b312c]+'-'+_0xfcfa95[_0x5b312c+0x1]===_0x1ace18&&(typeof _0x2c4200[_0x5b312c]==_0xf25e1d(0x7c)?_0x2541d1=_0x2c4200[_0x5b312c]:_0x2541d1='rgba('+_0x2c4200[_0x5b312c][0x0]+','+_0x2c4200[_0x5b312c][0x1]+','+_0x2c4200[_0x5b312c][0x2]+','+(_0x2c4200[_0x5b312c][0x3]||_0x2c4200[_0x5b312c][0x3]===0x0?_0x2c4200[_0x5b312c][0x3]:0x1)+')'));}return _0x2541d1;}[a3_0x34f088(0x8d)](_0x496ec3=[]){const _0x22fe05=a3_0x34f088,_0x25df52=this[_0x22fe05(0xaf)](_0x496ec3);let _0x252d47=[];const {values:_0x1c22bc,nx:_0x57d1a9,ny:_0x566021}=_0x25df52;_0x496ec3=_0x25df52[_0x22fe05(0xa6)];if(!_0x1c22bc)return{'type':_0x22fe05(0x89),'features':[]};const _0x2a8901=contours()['size']([_0x57d1a9,_0x566021]);for(let _0x15c37d=0x0;_0x15c37d<_0x496ec3[_0x22fe05(0xb3)];_0x15c37d++){const _0x189c86=_0x496ec3[_0x15c37d];if(_0x189c86<this[_0x22fe05(0x73)]||_0x189c86>this['maxVal'])continue;const _0x902811=_0x2a8901[_0x22fe05(0x76)](_0x1c22bc,_0x189c86);if(!_0x902811||!_0x902811[_0x22fe05(0x68)])continue;for(const _0x1d5bd6 of _0x902811[_0x22fe05(0x68)]){let _0x5937e5=[];if(Array[_0x22fe05(0x78)](_0x1d5bd6)&&_0x1d5bd6[_0x22fe05(0xb3)]>0x0&&Array[_0x22fe05(0x78)](_0x1d5bd6[0x0])&&typeof _0x1d5bd6[0x0][0x0]===_0x22fe05(0x71))_0x5937e5=[_0x1d5bd6];else{if(Array['isArray'](_0x1d5bd6))_0x5937e5=_0x1d5bd6;else continue;}for(const _0x39e544 of _0x5937e5){const _0x468798=_0x39e544[_0x22fe05(0x90)](_0x46b502=>{const _0xf61d9d=_0x22fe05,_0x1b61fe=_0x46b502[0x0],_0x1ae4f0=_0x46b502[0x1];if(_0x1b61fe==null||_0x1ae4f0==null||Number[_0xf61d9d(0x92)](_0x1b61fe)||Number[_0xf61d9d(0x92)](_0x1ae4f0))return null;const _0x1055a5=new a3_0x383de4(this[_0xf61d9d(0x81)])[_0xf61d9d(0x6d)](new a3_0x383de4(_0x1b61fe)['times'](this[_0xf61d9d(0x9b)]))[_0xf61d9d(0xae)](),_0x42c71a=new a3_0x383de4(this['minLat'])['plus'](new a3_0x383de4(_0x1ae4f0)[_0xf61d9d(0x83)](this[_0xf61d9d(0x65)]))['toNumber']();return[_0x1055a5,_0x42c71a];})[_0x22fe05(0x96)](_0xf272c9=>_0xf272c9!==null),_0x2d1193=_0x468798['filter']((_0x25bac2,_0x48744e,_0x4c1e42)=>{if(_0x48744e===0x0)return!![];const _0x1aabaf=_0x4c1e42[_0x48744e-0x1];return!(_0x25bac2[0x0]===_0x1aabaf[0x0]&&_0x25bac2[0x1]===_0x1aabaf[0x1]);});if(_0x2d1193[_0x22fe05(0xb3)]<0x3)continue;const _0x4f72bf=_0x2d1193[0x0],_0x216011=_0x2d1193[_0x2d1193['length']-0x1];(_0x4f72bf[0x0]!==_0x216011[0x0]||_0x4f72bf[0x1]!==_0x216011[0x1])&&_0x2d1193[_0x22fe05(0xad)]([_0x4f72bf[0x0],_0x4f72bf[0x1]]),_0x252d47[_0x22fe05(0xad)]({'type':'Feature','properties':{'z':_0x189c86},'geometry':{'type':_0x22fe05(0xa8),'coordinates':[_0x2d1193]}});}}}return _0x252d47=this[_0x22fe05(0x67)](_0x252d47),{'type':_0x22fe05(0x89),'features':_0x252d47};}['getColorFast'](_0x55cc2f,_0x27a4a4,_0x108349){const _0x2330e7=a3_0x34f088;let _0x18a792=_0x2330e7(0x8f);const _0x49bdf2=_0x27a4a4[_0x2330e7(0xab)](_0x55cc2f);if(typeof _0x108349[_0x49bdf2]=='string')_0x18a792=_0x108349[_0x49bdf2];else _0x49bdf2!==-0x1&&(_0x18a792='rgba('+_0x108349[_0x49bdf2][0x0]+','+_0x108349[_0x49bdf2][0x1]+','+_0x108349[_0x49bdf2][0x2]+','+(_0x108349[_0x49bdf2][0x3]||_0x108349[_0x49bdf2][0x3]===0x0?_0x108349[_0x49bdf2][0x3]:0x1)+')');return _0x18a792;}[a3_0x34f088(0x7f)]=(_0x32373a,_0x5423f8)=>{const _0x55f589=a3_0x34f088,_0x2ac52a=[],_0x1af0fa=Math[_0x55f589(0x9f)](0x1,Math['ceil'](_0x32373a['length']/_0x5423f8));for(let _0x506929=0x0;_0x506929<_0x5423f8;_0x506929++){_0x2ac52a['push'](_0x32373a[_0x55f589(0x77)](_0x506929*_0x1af0fa,(_0x506929+0x1)*_0x1af0fa));}return _0x2ac52a;};[a3_0x34f088(0xb2)]=async(_0x3755da,_0x3b4e70,_0x545263)=>{const _0x387170=a3_0x34f088,_0x3ff54d=navigator['hardwareConcurrency']-0x4||0x1,_0x19f914=Math[_0x387170(0x82)](_0x3ff54d,Math[_0x387170(0x9f)](0x1,_0x3755da[_0x387170(0xaa)][_0x387170(0xb3)])),_0x1f21dd=this[_0x387170(0x7f)](_0x3755da[_0x387170(0xaa)],_0x19f914),_0x5779de=[],_0x2a05cf=_0x1f21dd['map'](_0x3fcf8a=>{const _0x2ec8c9=_0x387170,_0x327ed3=new Worker(_0x545263,{'type':_0x2ec8c9(0xa7)});return _0x5779de[_0x2ec8c9(0xad)](_0x327ed3),new Promise(_0x2e2288=>{const _0x59517c=_0x2ec8c9;_0x327ed3['onmessage']=_0x5594ba=>{const _0x39fc86=a3_0x4316;_0x2e2288(_0x5594ba['data'][_0x39fc86(0xaa)]);},_0x327ed3[_0x59517c(0xa3)]=_0x34806a=>{const _0x546a2b=_0x59517c;console[_0x546a2b(0x80)](_0x34806a);},_0x327ed3[_0x59517c(0xa2)]({'isoChunk':_0x3fcf8a,'gansuFeatures':_0x3b4e70[_0x59517c(0xaa)]});});}),_0x409d8b=await Promise[_0x387170(0x7d)](_0x2a05cf);_0x5779de['forEach'](_0x2ccf32=>_0x2ccf32[_0x387170(0x88)]());const _0x32cf96=_0x409d8b['flat']();return a3_0x1dc05c(_0x32cf96);};[a3_0x34f088(0xb0)]=async(_0xaed971=[],_0x25bd90)=>{const _0x582dc=a3_0x34f088,_0x55942e=this['getIsoBandsFastBase'](_0xaed971);let _0x429b6a=[];const {values:_0x16126c,nx:_0x1a2fb1,ny:_0x598c5d}=_0x55942e;_0xaed971=_0x55942e[_0x582dc(0xa6)];if(!_0x16126c)return{'type':_0x582dc(0x89),'features':[]};const _0x586486=[],_0x308262=navigator[_0x582dc(0x69)]-0x4||0x1,_0x47a6ba=Math[_0x582dc(0x82)](_0x308262,Math['max'](0x1,_0xaed971[_0x582dc(0xb3)])),_0x237f4e=this[_0x582dc(0x7f)](_0xaed971,_0x47a6ba),_0x446135=_0x237f4e[_0x582dc(0x90)](_0x16b162=>{const _0x481c23=_0x582dc,_0x49733e=new Worker(_0x25bd90,{'type':_0x481c23(0xa7)});return _0x586486[_0x481c23(0xad)](_0x49733e),new Promise(_0x561b08=>{const _0x5487c3=_0x481c23;_0x49733e[_0x5487c3(0x79)]=_0xf157d3=>{const _0x34f238=_0x5487c3;_0x561b08(_0xf157d3['data'][_0x34f238(0xaa)]);},_0x49733e[_0x5487c3(0xa3)]=_0x545adb=>{console['error'](_0x545adb);},_0x49733e['postMessage']({'breaks':_0x16b162,'values':_0x16126c,'nx':_0x1a2fb1,'ny':_0x598c5d,'minVal':this[_0x5487c3(0x73)],'maxVal':this[_0x5487c3(0x6c)],'minLng':this[_0x5487c3(0x81)],'minLat':this['minLat'],'gjLng':this['gjLng'],'gjLat':this[_0x5487c3(0x65)]});});}),_0x394e0f=await Promise[_0x582dc(0x7d)](_0x446135);return _0x586486[_0x582dc(0x8c)](_0x2ae4db=>_0x2ae4db[_0x582dc(0x88)]()),_0x394e0f[_0x582dc(0x8c)](_0x4403ac=>{_0x429b6a['push'](..._0x4403ac);}),_0x429b6a=this[_0x582dc(0x67)](_0x429b6a),{'type':_0x582dc(0x89),'features':_0x429b6a};};[a3_0x34f088(0xaf)]=(_0x360646=[])=>{const _0x23397f=a3_0x34f088;if(this[_0x23397f(0x85)][_0x23397f(0xb3)]===0x0)return{'type':_0x23397f(0x89),'features':[]};if(_0x360646[_0x23397f(0xb3)]===0x0)_0x360646=this[_0x23397f(0x74)]();const _0x5af15e=this[_0x23397f(0x85)]['map'](_0x3b94ad=>_0x3b94ad[_0x23397f(0x7e)]),_0x3d9cbc=this[_0x23397f(0x8e)],_0x5f35dd=this[_0x23397f(0x98)];return{'values':_0x5af15e,'breaks':_0x360646,'nx':_0x3d9cbc,'ny':_0x5f35dd};};['sortFeaturesByArea']=_0x50f123=>{const _0x7b576c=a3_0x34f088;return _0x50f123[_0x7b576c(0x90)](_0x277b59=>{const _0xe052d7=_0x7b576c;try{const _0x5619a3=a3_0x129b5f(_0x277b59)||0x0;_0x277b59[_0xe052d7(0x95)]={..._0x277b59[_0xe052d7(0x95)]||{},'__area':_0x5619a3};}catch{_0x277b59[_0xe052d7(0x95)]={..._0x277b59['properties']||{},'__area':0x0};}return _0x277b59;})[_0x7b576c(0x86)]((_0x2ac93b,_0x52b6db)=>_0x52b6db[_0x7b576c(0x95)][_0x7b576c(0x72)]-_0x2ac93b[_0x7b576c(0x95)][_0x7b576c(0x72)])['filter'](_0x24d810=>_0x24d810[_0x7b576c(0x95)]&&_0x7b576c(0x72)in _0x24d810['properties']&&_0x24d810[_0x7b576c(0x95)][_0x7b576c(0x72)]!==0x0)[_0x7b576c(0x90)](_0x176e49=>{const _0x50fadd=_0x7b576c;if(_0x176e49[_0x50fadd(0x95)]&&_0x50fadd(0x72)in _0x176e49['properties']){const {__area:_0x5b4249,..._0x3be169}=_0x176e49[_0x50fadd(0x95)];_0x176e49[_0x50fadd(0x95)]=_0x3be169;}return _0x176e49;});};}export default _readFileDiamond4;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "m4-w-fast",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -10,23 +10,19 @@
|
|
|
10
10
|
"import": "./dist/index.js",
|
|
11
11
|
"require": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
-
"./
|
|
14
|
-
"./
|
|
15
|
-
"./dist/isoBands.worker.js": "./dist/isoBands.worker.js",
|
|
16
|
-
"./dist/isoBands.worker": "./dist/isoBands.worker.js"
|
|
13
|
+
"./isoBands.worker.js": "./dist/isoBands.worker.js",
|
|
14
|
+
"./intersect.worker.js": "./dist/intersect.worker.js"
|
|
17
15
|
},
|
|
18
16
|
"scripts": {
|
|
19
17
|
"build:types": "tsc -p tsconfig.build.json",
|
|
20
18
|
"obfuscate": "javascript-obfuscator dist --output dist",
|
|
21
|
-
"build": "npm run build:types && npm run obfuscate",
|
|
22
|
-
"prepublishOnly": "npm run build"
|
|
19
|
+
"build": "npm run build:types && npm run build:rollup && npm run obfuscate",
|
|
20
|
+
"prepublishOnly": "npm run build",
|
|
21
|
+
"build:rollup": "rollup -c"
|
|
23
22
|
},
|
|
24
23
|
"author": "wangrl",
|
|
25
24
|
"license": "ISC",
|
|
26
25
|
"type": "module",
|
|
27
|
-
"bin": {
|
|
28
|
-
"w-m4-fast": "dist/index.js"
|
|
29
|
-
},
|
|
30
26
|
"files": [
|
|
31
27
|
"dist",
|
|
32
28
|
"package.json",
|
|
@@ -45,17 +41,25 @@
|
|
|
45
41
|
"d3-contour": "^4"
|
|
46
42
|
},
|
|
47
43
|
"dependencies": {
|
|
44
|
+
"@turf/area": "^7.2.0",
|
|
45
|
+
"@turf/isobands": "^7.2.0",
|
|
46
|
+
"@turf/isolines": "^7.2.0",
|
|
48
47
|
"@turf/turf": "^6.5.0",
|
|
49
48
|
"big.js": "^7",
|
|
50
|
-
"d3-contour": "^4"
|
|
49
|
+
"d3-contour": "^4",
|
|
50
|
+
"decimal.js": "^10.6.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
54
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
55
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
53
56
|
"@tsconfig/node20": "^20.1.2",
|
|
54
57
|
"@types/big.js": "^6.2.2",
|
|
55
58
|
"@types/d3-contour": "^3.0.6",
|
|
56
59
|
"@types/geojson": "latest",
|
|
57
60
|
"esbuild": "^0.25.11",
|
|
58
61
|
"javascript-obfuscator": "^4.1.1",
|
|
62
|
+
"rollup": "^4.52.5",
|
|
59
63
|
"typescript": "latest"
|
|
60
64
|
}
|
|
61
65
|
}
|