* Check if a file path is an EMF image.
(path: string)
| 22 | * Check if a file path is an EMF image. |
| 23 | */ |
| 24 | function isEmfFormat(path: string): boolean { |
| 25 | const ext = path.split('.').pop()?.toLowerCase() || '' |
| 26 | return ext === 'emf' |
| 27 | } |
| 28 | |
| 29 | // --------------------------------------------------------------------------- |
| 30 | // Image Rendering |