matheusdavidson / angular-cropperjs

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

dragMode not supported? #12

Closed Maritims closed 1 year ago

Maritims commented 6 years ago

I am trying to use dragMode: 'move' in order to move the canvas instead of the crop box, but it doesn't seem to work. Is this option supported in your package?

Screenshot from https://github.com/fengyuanchen/cropper: image

melvas commented 6 years ago

you should manually set option movable to true 'cause it is 'false' by default:

this.cropperOptions = Object.assign({ aspectRatio, movable: false, scalable: false, zoomable: false, viewMode: 1, checkCrossOrigin: true }, this.cropperOptions);

ghost commented 1 year ago

I had to copy the component and related code from lib folder, and Change this line to true to get it to work with Angular 14.

matheusdavidson commented 1 year ago

Hey Guys, removed the default options that were blocking these features, it's in the latest version.