Image cropper
$ component install yields/crop
var cropper = require('crop')(element);
cropper.build();
cropper.on('crop', function(d){
console.log(d); // > { left: 10, top: 10, height: 100, width: 100 }
});
Create a new Cropper
instance with el
and optional opts
object.
Build (render) the crop area on el
and bind all events.
destroy the crop-area
and unbind all events.
MIT