@uimaxbai/am-lyrics 1.2.9 → 1.3.0
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/src/am-lyrics.js +3 -3
- package/dist/src/am-lyrics.js.map +1 -1
- package/dist/src/react.js +3 -3
- package/dist/src/react.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/AmLyrics.ts +3 -3
package/dist/src/react.js
CHANGED
|
@@ -322,7 +322,7 @@ class GoogleService {
|
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
const VERSION = '1.
|
|
325
|
+
const VERSION = '1.3.0';
|
|
326
326
|
const INSTRUMENTAL_THRESHOLD_MS = 7000; // Show dots for gaps >= 7s
|
|
327
327
|
const FETCH_TIMEOUT_MS = 8000; // Timeout for all lyrics fetch requests
|
|
328
328
|
const SEEK_THRESHOLD_MS = 500;
|
|
@@ -2174,11 +2174,11 @@ let AmLyrics$1 = class AmLyrics extends i {
|
|
|
2174
2174
|
if (isGrowableVW) {
|
|
2175
2175
|
if (wordLen < 3) {
|
|
2176
2176
|
isGrowableVW =
|
|
2177
|
-
combinedDuration >=
|
|
2177
|
+
combinedDuration >= 1050 && combinedDuration >= wordLen * 525;
|
|
2178
2178
|
}
|
|
2179
2179
|
else {
|
|
2180
2180
|
isGrowableVW =
|
|
2181
|
-
combinedDuration >=
|
|
2181
|
+
combinedDuration >= 850 && combinedDuration >= wordLen * 190;
|
|
2182
2182
|
}
|
|
2183
2183
|
}
|
|
2184
2184
|
const isGlowingVW = isGrowableVW;
|