constrain

open override fun constrain(proposed: NormalizedRect, handle: CropHandle): NormalizedRect(source)

Corrects proposed into a rectangle this constraint allows.

Return

The corrected rectangle.

Parameters

proposed

What the gesture asked for. The edges handle did not touch carry the value they already had.

handle

Which part of the rectangle moved.