Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DavidHDev/react-bits
/ getRadius
Function
getRadius
src/tools/shape-magic/computeBridges.js:1–3 ·
view source on GitHub ↗
(shape, globalRadius)
Source
from the content-addressed store, hash-verified
1
const
getRadius = (shape, globalRadius) => {
2
return
shape.r !== undefined ? shape.r : globalRadius;
3
};
4
5
const
approxEqual = (a, b, tol = 1) => Math.abs(a - b) <= tol;
6
Callers
2
computeCornerRadii
Function · 0.85
computeBridges
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected