crop property

CropImageLayer? crop
final

Optional crop layer from the host. When the entry has applied crop edits, the draw editor's canvas is the cropped preview (source × strokes → crop transform → clipped to crop rect) and new pointer events are converted from viewport-pixels to source-space through the crop's inverse transform — so strokes land at the right source pixel even though the user is drawing on the cropped view.

Implementation

final CropImageLayer? crop;