MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / getMousePosition

Function getMousePosition

source/position.js:28–32  ·  view source on GitHub ↗
(context, corners)

Source from the content-addressed store, hash-verified

26};
27
28export const getMousePosition = (context, corners) => {
29 const viewPosition = getViewPosition(context, Mouse.position);
30 const position = getMappedPosition(viewPosition, corners);
31 return position;
32};
33
34// HIGHER screen position -> DEEPER screen position
35//

Callers 2

updateZoomFunction · 0.90
hand.jsFile · 0.90

Calls 2

getViewPositionFunction · 0.85
getMappedPositionFunction · 0.85

Tested by

no test coverage detected