Interactive cropping for the @dusrel/image family, split the
way the whole family is split: a pure geometry core (this
entry — clamping, aspect locks, handle maths, display/natural
mapping, all unit-tested) and an accessible Web Component in
the './element' entry that renders it. The component returns
geometry only; @dusrel/image-core applies it.
Clamps a crop rect into the image, enforcing min sizes and the
aspect lock. Output is integer pixels. Bounds always win over
min sizes (a 100 px image cannot honour a 200 px minimum).
@dusrel/image-crop
Interactive cropping for the @dusrel/image family, split the way the whole family is split: a pure geometry core (this entry — clamping, aspect locks, handle maths, display/natural mapping, all unit-tested) and an accessible Web Component in the './element' entry that renders it. The component returns geometry only; @dusrel/image-core applies it.