MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / createShadowConfig

Function createShadowConfig

packages/core/src/renderer/shadow.ts:112–119  ·  view source on GitHub ↗
(options: Partial<ShadowConfig> = {})

Source from the content-addressed store, hash-verified

110 * Create a shadow config with custom options.
111 */
112export 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.

Callers 3

resolveBoxShadowConfigFunction · 0.85
resolveOverlayShadowFunction · 0.85
renderOverlayWidgetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected