tracking-crop

0.1.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tracking-crop

Weekly Downloads

9

Version

0.1.3

License

MIT

Unpacked Size

1.21 MB

Total Files

22

Last publish

Collaborators

  • xcatliu