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

Function correctRadius

src/tailwind/Animations/SplashCursor/SplashCursor.jsx:837–841  ·  view source on GitHub ↗
(radius)

Source from the content-addressed store, hash-verified

835 }
836
837 function correctRadius(radius) {
838 let aspectRatio = canvas.width / canvas.height;
839 if (aspectRatio > 1) radius *= aspectRatio;
840 return radius;
841 }
842
843 function updatePointerDownData(pointer, id, posX, posY) {
844 pointer.id = id;

Callers 1

splatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected