tracking-crop
v0.1.3
Published
Crop image using tracking.js
Downloads
6
Readme
Tracking Crop
Crop image using tracking.js
Usage
import crop from 'tracking-crop';
crop(document.getElementById('imageElement'), {
width: 200,
height: 200
}, ({ x, y, width, height }) => {
console.log(x, y, width, height);
});