Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 356 Bytes

README.md

File metadata and controls

20 lines (11 loc) · 356 Bytes

window2canvas

window mouse position transform to canvas position.

Installation

Install with component(1):

$ component install brighthas/window2canvas

API

var w2c = require("window2canvas");
var cavansXY = w2c(canvasElement,clientX,clientY);
console.log(cavansXY.x , cavansXY.y);

License

MIT