CROPRO Documentation: Configuring defaults

Configure defaults: zoom-to-crop and alignment grid

By default CROPRO zooms in to the active crop rectangle and alignment grid is always visible. Obviously, you can change this.

Zoom-to-crop

To change the zoom-to-crop behavior you set CropArea.zoomToCropEnabled to false so the whole image is visible all the time.

cropArea.zoomToCropEnabled = false;

Configuring the grid

To hide the alignment grid you set CropArea.isGridVisible to false.

Additionally, you can adjust the number of grid lines via the CropArea.gridLines property.

cropArea.isGridVisible = false; cropArea.gridLines = 4;

Here we have the grid hidden by default but when our user turns it on through the toolbar, it will have 4 grid lines instead of 2 (default).

See also