(files: Map<string, File>)
| 153 | * Kept for callers that specifically need raw PLY selection. |
| 154 | */ |
| 155 | export function findLargestPlyFile(files: Map<string, File>): File | undefined { |
| 156 | return getLocalSplatCandidates(files) |
| 157 | .filter((candidate) => candidate.path.toLowerCase().endsWith('.ply')) |
| 158 | .reduce<LocalSplatCandidate | null>( |
| 159 | (largest, candidate) => !largest || candidate.size > largest.size ? candidate : largest, |
| 160 | null |
| 161 | )?.file; |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * Check if the dropped files contain image files |
no test coverage detected