mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-28 02:02:04 +01:00
A crop with Delete Cropped Pixels off keeps what it cuts away (and a moved layer can reach past the edges), but the Crop tool drew only the canvas, so a frame couldn't be pulled back out over those pixels by eye. Photoshop 25.4 (observed) grows the view to every layer's bounds and the frame from the first press on the frame: hidden pixels under the shield, transparency as the checkerboard, no canvas border or shadow, until the crop is committed or cancelled. - crop_ui: `CropState::editing`, set by the press (before egui's drag threshold) and cleared when a new default frame is made (commit, Esc) or the tool is left; `shows_beyond_canvas`. - canvas: `draw_beyond_canvas` composites only the ring between the canvas and every layer's pixels (`extra_cmds::reveal_all_bounds`, shared with Image > Reveal All), once per document state, at most MAX_TEXTURE texels per side (from a downsampled proxy past that), and draws it with the checkerboard out to the frame under the canvas, reaching a point under its edge so the edge's anti-aliasing has no seam. The drop shadow and the Line border are off meanwhile. - compose: `render_reduced_rect`, the reduced render of any area of the document plane. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>