(files: Map<string, File>)
| 56 | * Used to determine whether to show mask overlay controls. |
| 57 | */ |
| 58 | export function hasMaskFiles(files: Map<string, File>): boolean { |
| 59 | for (const path of files.keys()) { |
| 60 | if (isMaskImagePath(path)) { |
| 61 | return true; |
| 62 | } |
| 63 | } |
| 64 | return false; |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Collect image files from a file map and create a lookup map. |
no test coverage detected