mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-24 09:57:08 -06:00
* Paste: keep the pasted image on the canvas (#6759) Paste centred the clipboard image on the view centre with no clamp, so an image that fit the canvas could land partly off it, and one larger than the canvas could leave blank edges. Now, per axis, an image that fits stays wholly inside the canvas, as close to the view centre as it can, and one larger than the canvas starts at the canvas's top-left edge, as in Photoshop. Paste Into / Outside still centre on the selection ("clampToCanvas": false). Centres are computed edge by edge in f64, so extreme coordinates no longer overflow. * Paste: doc comments for Paste Into and the paste placement tests --------- Co-authored-by: Brandon Thomas <echelon@gmail.com>