import { getString, getNumber } from './util' export interface DropShadowArgs { dx?: number dy?: number color?: string blur?: number opacity?: number } export function dropShadow(args: DropShadowArgs = {}) { const dx = getNumber(args.dx, 0) const dy = getNumber(args.dy, 0) const color = getString(args.color, 'black') const blur = getNumber(args.blur, 4) const opacity = getNumber(args.opacity, 1) return 'SVGFEDropShadowElement' in window ? ` `.trim() : ` `.trim() }