Resizes by dragging one handle by (dx, dy) natural px. With an aspect lock, corner drags are driven by the axis with the larger relative change, and edge drags keep the rect centred on the perpendicular axis. The opposite side stays anchored as far as the image bounds allow (bounds win — see clampCrop).
@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.