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

dragMode not supported?

Open Maritims opened this issue 7 years ago • 1 comments

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

Maritims avatar Jan 25 '18 11:01 Maritims

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

melvas avatar Jun 06 '18 14:06 melvas

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.

ghost avatar Nov 15 '22 11:11 ghost

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

matheusdavidson avatar Jun 19 '23 03:06 matheusdavidson