@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/am-lyrics.js
CHANGED
|
@@ -319,7 +319,7 @@ class GoogleService {
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
const VERSION = '1.
|
|
322
|
+
const VERSION = '1.3.0';
|
|
323
323
|
const INSTRUMENTAL_THRESHOLD_MS = 7000; // Show dots for gaps >= 7s
|
|
324
324
|
const FETCH_TIMEOUT_MS = 8000; // Timeout for all lyrics fetch requests
|
|
325
325
|
const SEEK_THRESHOLD_MS = 500;
|
|
@@ -2171,11 +2171,11 @@ class AmLyrics extends i {
|
|
|
2171
2171
|
if (isGrowableVW) {
|
|
2172
2172
|
if (wordLen < 3) {
|
|
2173
2173
|
isGrowableVW =
|
|
2174
|
-
combinedDuration >=
|
|
2174
|
+
combinedDuration >= 1050 && combinedDuration >= wordLen * 525;
|
|
2175
2175
|
}
|
|
2176
2176
|
else {
|
|
2177
2177
|
isGrowableVW =
|
|
2178
|
-
combinedDuration >=
|
|
2178
|
+
combinedDuration >= 850 && combinedDuration >= wordLen * 190;
|
|
2179
2179
|
}
|
|
2180
2180
|
}
|
|
2181
2181
|
const isGlowingVW = isGrowableVW;
|