(overflow: LayoutOverflow)
| 297 | } |
| 298 | |
| 299 | function formatOverflow(overflow: LayoutOverflow): string { |
| 300 | return (["left", "right", "top", "bottom"] as const) |
| 301 | .flatMap((side) => { |
| 302 | const value = overflow[side]; |
| 303 | return value == null ? [] : `${side} ${formatNumber(value)}px`; |
| 304 | }) |
| 305 | .join(", "); |
| 306 | } |
| 307 | |
| 308 | function quoteText(text: string): string { |
| 309 | const normalized = text.replace(/\s+/g, " ").trim(); |
no test coverage detected