@@ -91,7 +91,7 @@ Angular image cropper comes with some options to simplify your development:
9191* ` image-url ` _ string_ Source image that will be cropped, can be an URL or base64
9292* ` width ` _ string_ Width of the cropped image
9393* ` height ` _ string_ Height of the cropped image
94- * ` zoom-step ` _ string_ Zoom step, must be ` 0 < zoomStep < 1 ` (0.1 is 10%)
94+ * ` zoom-step ` _ string_ Zoom step
9595* ` fit-on-init ` _ boolean_ Fit the image on cropper initialization (keep the ratio)
9696* ` center-on-init ` _ boolean_ Center the image on cropper initialization
9797* ` show-controls ` _ boolean_ Display or not the control buttons (` true ` by default)
@@ -122,7 +122,8 @@ Angular image cropper gives you access to the api, you can see an example [here]
122122``` javascript
123123// Cropper API available when image is ready.
124124vm .getCropperApi = function (api ) {
125- api .zoom (3 );
125+ api .zoomIn (3 );
126+ api .zoomOut (2 );
126127 api .rotate (270 );
127128 api .fit ();
128129 vm .resultImage = api .crop ();
@@ -131,7 +132,8 @@ vm.getCropperApi = function(api) {
131132* ` crop ` _ function_ return the cropped image in ` base64 `
132133* ` fit ` _ function_ fit the image to the wrapper dimensions (keep the ratio)
133134* ` rotate ` _ function_ Apply the rotation with degrees given, should be a modulo of 90 (90, 180, 270, 360), can be negative
134- * ` zoom ` _ function_ Apply the zoom given, can be negative (fit the image if zoomOut factor is too high)
135+ * ` zoomIn ` _ function_ Apply the zoomIn given
136+ * ` zoomOut ` _ function_ Apply the zoomOut given
135137* ` remove ` _ function_ Remove the cropper
136138
137139## License
0 commit comments