MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / formatOverflow

Function formatOverflow

packages/cli/src/utils/layoutAudit.ts:299–306  ·  view source on GitHub ↗
(overflow: LayoutOverflow)

Source from the content-addressed store, hash-verified

297}
298
299function 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
308function quoteText(text: string): string {
309 const normalized = text.replace(/\s+/g, " ").trim();

Callers 3

formatLayoutIssueFunction · 0.85
dedupeLayoutIssuesFunction · 0.85
staticIssueKeyFunction · 0.85

Calls 1

formatNumberFunction · 0.85

Tested by

no test coverage detected