@idm-plugin/meteo2 0.7.2 → 0.7.4
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/index.js +3 -2
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2120,9 +2120,10 @@ class $ {
|
|
|
2120
2120
|
});
|
|
2121
2121
|
}
|
|
2122
2122
|
static async parseTropical(M) {
|
|
2123
|
+
var W;
|
|
2123
2124
|
const { id: z, name: b, strength: p } = M, c = {
|
|
2124
2125
|
id: z == null ? void 0 : z.toLowerCase(),
|
|
2125
|
-
name: b == null ? void 0 : b.toLowerCase(),
|
|
2126
|
+
name: (W = b == null ? void 0 : b.toLowerCase()) == null ? void 0 : W.replaceAll(/\s/g, "-"),
|
|
2126
2127
|
strength: p,
|
|
2127
2128
|
history: await $.parseHistory(M.history),
|
|
2128
2129
|
forecasts: await $.parseForecast(M.forecast)
|
|
@@ -2463,7 +2464,7 @@ class T {
|
|
|
2463
2464
|
* @returns 风圈半径对象
|
|
2464
2465
|
*/
|
|
2465
2466
|
static estimateWindRadii(M, z, b) {
|
|
2466
|
-
if (!M || M <
|
|
2467
|
+
if (!M || M < 32)
|
|
2467
2468
|
return { r7: null, r10: null, r12: null };
|
|
2468
2469
|
const p = T.estimateRMW(M, z, b), c = p * 2.5, W = M >= 50 ? p * 1.8 : null, A = M >= 64 ? p * 1.3 : null;
|
|
2469
2470
|
return {
|