(options: Partial<ShadowConfig> = {})
| 110 | * Create a shadow config with custom options. |
| 111 | */ |
| 112 | export function createShadowConfig(options: Partial<ShadowConfig> = {}): ShadowConfig { |
| 113 | return Object.freeze({ |
| 114 | offsetX: options.offsetX ?? DEFAULT_SHADOW.offsetX, |
| 115 | offsetY: options.offsetY ?? DEFAULT_SHADOW.offsetY, |
| 116 | color: options.color ?? DEFAULT_SHADOW.color, |
| 117 | density: options.density ?? DEFAULT_SHADOW.density, |
| 118 | }); |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Get the shadow character for a given density. |
no outgoing calls
no test coverage detected