{"id":25620771,"url":"https://github.com/codewell/get-canvas-mouse-position","last_synced_at":"2025-07-24T05:37:02.759Z","repository":{"id":38487166,"uuid":"221282961","full_name":"codewell/get-canvas-mouse-position","owner":"codewell","description":"Get the position of a mouse on a canvas triggered by an event","archived":false,"fork":false,"pushed_at":"2023-01-06T02:16:39.000Z","size":811,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T07:31:51.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codewell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-12T18:18:24.000Z","updated_at":"2021-05-12T15:11:08.000Z","dependencies_parsed_at":"2023-02-05T02:45:16.939Z","dependency_job_id":null,"html_url":"https://github.com/codewell/get-canvas-mouse-position","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codewell/get-canvas-mouse-position","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fget-canvas-mouse-position","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fget-canvas-mouse-position/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fget-canvas-mouse-position/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fget-canvas-mouse-position/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewell","download_url":"https://codeload.github.com/codewell/get-canvas-mouse-position/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fget-canvas-mouse-position/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266796910,"owners_count":23985495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-22T07:28:01.166Z","updated_at":"2025-07-24T05:37:02.730Z","avatar_url":"https://github.com/codewell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @codewell/get-canvas-mouse-position\nGet the position of a mouse on a canvas triggered by an event.\n\n## Installation\n```\nnpm install @codewell/get-canvas-mouse-position\n```\n\n\n## Basic usage\n```JavaScript\nimport getCanvasMousePosition from '@codewell/get-canvas-mouse-position':\n\n\nconst handleClick = (event) =\u003e {\n  const mousePosition = getCanvasMousePosition(event);\n  const {x, y} = mousePosition; // The coordinate that was clicked on the canvas\n}\n\nreturn (\n  \u003ccanvas onClick={handleClick} /\u003e\n)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewell%2Fget-canvas-mouse-position","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewell%2Fget-canvas-mouse-position","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewell%2Fget-canvas-mouse-position/lists"}