( type: 'ui' | 'arrows' | 'notes', colorName: any, )
| 70 | ); |
| 71 | |
| 72 | export function colorNameToColorHex( |
| 73 | type: 'ui' | 'arrows' | 'notes', |
| 74 | colorName: any, |
| 75 | ): string { |
| 76 | return (colorMap()[type] as any)[colorName] ?? colorMap()[type].grey; |
| 77 | } |
| 78 | |
| 79 | export function colorHexToColorName( |
| 80 | type: 'ui' | 'arrows' | 'notes', |
no outgoing calls
no test coverage detected