photos phase 3
All checks were successful
Build and Push Docker Image / build (push) Successful in 17s
All checks were successful
Build and Push Docker Image / build (push) Successful in 17s
This commit is contained in:
3113
apps/client/package-lock.json
generated
Normal file
3113
apps/client/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -42,7 +42,7 @@ function orderPhotos(photos: Photo[], order: string): Photo[] {
|
||||
}
|
||||
|
||||
// Pick a random Ken Burns preset that isn't the one we just used
|
||||
function pickKb(prevIdx: number, total = KB_PRESETS.length): number {
|
||||
function pickKb(prevIdx: number, total: number = KB_PRESETS.length): number {
|
||||
if (total === 1) return 0;
|
||||
let next: number;
|
||||
do { next = Math.floor(Math.random() * total); } while (next === prevIdx);
|
||||
|
||||
Reference in New Issue
Block a user