Skip to content

xcatliu/tracking-crop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});