@linxin666/dsh-pet 0.3.21 → 0.3.22
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/lib/client.js
CHANGED
|
@@ -371,12 +371,13 @@ window.__ModuleLoader__.load({
|
|
|
371
371
|
const delta = now - last;
|
|
372
372
|
last = now;
|
|
373
373
|
elapsed += delta;
|
|
374
|
-
|
|
374
|
+
let duration = decoration.durations[index] ?? 120;
|
|
375
375
|
if (elapsed >= duration) {
|
|
376
376
|
do {
|
|
377
377
|
elapsed -= duration;
|
|
378
378
|
if (index < segment.to) index += 1;
|
|
379
379
|
else if (decoration.loop) index = segment.from;
|
|
380
|
+
duration = decoration.durations[index] ?? 120;
|
|
380
381
|
} while (elapsed >= duration);
|
|
381
382
|
el.style.backgroundPosition = position(index);
|
|
382
383
|
}
|
|
@@ -3750,7 +3751,7 @@ window.__ModuleLoader__.load({
|
|
|
3750
3751
|
/** The building package's version, when the bundle carries it. */
|
|
3751
3752
|
function bakedVersion() {
|
|
3752
3753
|
try {
|
|
3753
|
-
return "0.3.
|
|
3754
|
+
return "0.3.22";
|
|
3754
3755
|
} catch {
|
|
3755
3756
|
return;
|
|
3756
3757
|
}
|