( imageSourceCache: ReturnType<typeof createIconSourceCache>, fontReference: string, glyph: string, options?: GetImageSourceOptions, )
| 42 | }; |
| 43 | |
| 44 | export const getImageSource = async ( |
| 45 | imageSourceCache: ReturnType<typeof createIconSourceCache>, |
| 46 | fontReference: string, |
| 47 | glyph: string, |
| 48 | options?: GetImageSourceOptions, |
| 49 | ) => { |
| 50 | const { cacheKey, cached, nativeOptions } = resolveOptions(imageSourceCache, fontReference, glyph, options); |
| 51 | if (cached !== undefined) return cached; |
| 52 | |
| 53 | const value = await ensureGetImageAvailable().getImageForFont(glyph, nativeOptions); |
| 54 | imageSourceCache.setValue(cacheKey, value); |
| 55 | return value; |
| 56 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…