MCPcopy 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

1const getRadius = (shape, globalRadius) => {
2 return shape.r !== undefined ? shape.r : globalRadius;
3};
4
5const approxEqual = (a, b, tol = 1) => Math.abs(a - b) <= tol;
6

Callers 2

computeCornerRadiiFunction · 0.85
computeBridgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected