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

Function P

src/tailwind/Backgrounds/Ballpit/Ballpit.jsx:386–392  ·  view source on GitHub ↗
(e, t)

Source from the content-addressed store, hash-verified

384}
385
386function P(e, t) {
387 const { position: i, nPosition: s } = e;
388 i.x = A.x - t.left;
389 i.y = A.y - t.top;
390 s.x = (i.x / t.width) * 2 - 1;
391 s.y = (-i.y / t.height) * 2 + 1;
392}
393function D(e) {
394 const { x: t, y: i } = A;
395 const { left: s, top: n, width: o, height: r } = e;

Callers 4

processInteractionFunction · 0.70
CFunction · 0.70
TouchStartFunction · 0.70
TouchMoveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected