Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ndleah/python-mini-project
/ getPosition
Function
getPosition
digit-recognizer/app/static/js/main.js:24–27 ·
view source on GitHub ↗
(clientX, clientY)
Source
from the content-addressed store, hash-verified
22
clear();
23
24
function
getPosition(clientX, clientY) {
25
let
box = canvas.getBoundingClientRect();
26
return
{x: clientX - box.x, y: clientY - box.y}
27
}
28
29
function
draw(e) {
30
if
(isDrawing) {
Callers
2
draw
Function · 0.85
main.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected