angular-cropperjs icon indicating copy to clipboard operation
angular-cropperjs copied to clipboard

how to set previous cropped data?

Open hdramd opened this issue 7 years ago • 1 comments

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

hdramd avatar Dec 06 '17 12:12 hdramd

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
}

matheusdavidson avatar Dec 06 '17 19:12 matheusdavidson