MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / parseBoxValues

Function parseBoxValues

packages/extension/mcp/tools/code/styles/normalize.ts:279–283  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

277}
278
279function parseBoxValues(value: string): [string, string, string, string] {
280 const parts = value.trim().split(/\s+/)
281 const [t, r = t, b = t, l = r] = parts
282 return [t, r, b, l]
283}
284
285function getBorderWidth(style: StyleMap): string | null {
286 const sideWidths = BORDER_SIDES.map((side) => {

Callers 1

getBorderWidthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected