mirror of
https://github.com/storytold/figcraft.git
synced 2026-12-04 19:41:51 -05:00
41e12cef8a
A double-click on a selected image layer edited the rectangle's points, so cropping its image took Object > Crop image or the crop button on its fill row, and the image fill's menu then closed. A double-click on the one selected shape with an image fill now switches its top visible image fill to Crop, keeping the picture where it was (image.crop), and opens that fill in the colour picker. The Crop paint's handles show on the canvas beside it (the image drags, its corners scale it, the layer's edges crop it), and the picker's Fill / Fit / Crop / Tile menu, rotation and adjustments are at hand. image.crop takes picker: true for the same; without it, it still enters crop mode and closes the picker. A shape without an image still edits its points. Tests: image_crop_tests (a double-click on an image, and on a plain shape), image_double_click_tests.