koorgoo / ngCropper

AngularJS wrapper for https://github.com/fengyuanchen/cropper
107 stars 72 forks source link

How can trigger zoom event? #39

Open yuliusvk opened 7 years ago

yuliusvk commented 7 years ago

Hi! Can anyone help me? I do not know how to launch the event zoom

Tolomeo commented 7 years ago

You have to use the cropperProxy. If you read demo.js code you will find a scope function called 'clear' which checks for the existence of the proxy, then uses it to call the plugin method 'clear'. Just found myself trying to access zoom method.

yuliusvk commented 7 years ago

Thank you!!

I try it now!!!

AttilaBre commented 6 years ago

Can someone explain this with little more details?

mahesh-44 commented 6 years ago

You have to call methods of cropper using proxy. Ex: $scope.cropper.first('zoom',0.1);