(rgb: RGBA, theme: Theme, poleA?: string, poleB?: string)
| 45 | extendThemeCacheKeys(themeCacheKeys); |
| 46 | |
| 47 | function getCacheId(rgb: RGBA, theme: Theme, poleA?: string, poleB?: string): string { |
| 48 | let resultId = ''; |
| 49 | rgbCacheKeys.forEach((key) => { |
| 50 | resultId += `${rgb[key]};`; |
| 51 | }); |
| 52 | themeCacheKeys.forEach((key) => { |
| 53 | resultId += `${theme[key]};`; |
| 54 | }); |
| 55 | resultId += `${poleA};${poleB}`; |
| 56 | return resultId; |
| 57 | } |
| 58 | |
| 59 | function modifyColorWithCache(rgb: RGBA, theme: Theme, modifyHSL: HSLModifyFunction, poleColor?: string, anotherPoleColor?: string): string { |
| 60 | let fnCache: Map<string, string>; |
no outgoing calls
no test coverage detected