MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / cornersFor

Function cornersFor

src/tools/shape-magic/svgRenderers.js:90–91  ·  view source on GitHub ↗
(cornerRadii, id, globalRadius)

Source from the content-addressed store, hash-verified

88};
89
90const cornersFor = (cornerRadii, id, globalRadius) =>
91 cornerRadii[id] || { tl: globalRadius, tr: globalRadius, br: globalRadius, bl: globalRadius };
92
93export const computeShapesBBox = shapes => {
94 let minX = Infinity,

Callers 4

generateMergedSVGFunction · 0.85
generateCSSClipPathFunction · 0.85
generateReactComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected