matheusdavidson / angular-cropperjs

CropperJS integration for Angular +6
MIT License
109 stars 68 forks source link

how to set previous cropped data? #7

Closed hdramd closed 1 year ago

hdramd commented 6 years ago

i store previous cropped data x , y and width and height. how to and where i set it to show crop box?tnx

matheusdavidson commented 6 years ago

You can set all original cropper js options in cropperOptions, so to set cropper data you need to set:

cropperOptions.data = {
    x: number,
    y: number,
    width: number,
    height: number,
    rotate: number,
    scaleX: number,
    scaleY: number
}