Yes--I've done something similar myself. Add an option on creation,
then inside the setAreaCoords function put something like the following:
if (this.squareCheckbox) {
square = square | this.squareCheckbox.checked;
}
You may have to add an onchange to the checkbox:
function toggleKeepSquare() {
var newKeepSquare =
document.getElementById("keepSquareCheckbox").checked;
cropper.setAreaCoords( cropper.areaCoords, newKeepSquare,
newKeepSquare, 1 );
cropper.selArea.show();
cropper.drawArea();
cropper.endCrop();
}
-Dale