MCPcopy Create free account
hub / github.com/CezarProX/designclaw / parsePadding

Function parsePadding

server/services/patternDetector.ts:53–59  ·  view source on GitHub ↗
(padding: string)

Source from the content-addressed store, hash-verified

51 if (!buttons.length) return 'solid-pill';
52
53 const parsePadding = (padding: string): number => {
54 const values = padding.split(' ').map((value) => parseFloat(value) || 0);
55 if (values.length === 0) return 0;
56 if (values.length === 1) return values[0] * 2;
57 if (values.length === 2) return values[0] + values[1];
58 return values[0] + values[1];
59 };
60
61 const representative = buttons
62 .slice(0, 10)

Callers 1

detectButtonStyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected