Files
photocraft/docs
Claude 532e8587e8 Layers: new layers go into an open group and join the clip group they land in (#2203)
A new layer now goes where Photoshop puts it: as the top layer of an open active group (an
artboard takes it when its content is on the board), above a closed group, and on top of the
stack with nothing active. A new layer or group lands inside a clip group's run and joins it
(the #2203 rule upstream's clip_group applies), so it never becomes the clipped layers' empty
base. ⌘-click on the Layers panel's New Layer button adds the layer below the active one
(layer.new.layer gains `below`; ⌥-click still opens the New Layer dialog).

New module crates/engine/src/layer_place.rs (insert_new with Place::Auto / Above / Below), used by
New Layer (with upstream's options and clip_group::settle), New Group, adjustment and fill layers,
gradient fill (and its live preview), type and shape layers, paste (several layers: the first
where a new layer goes, the rest above it, with the group depth check), place, Stamp Visible,
video layers, Render and Vanishing Point new layers and copies to another document. Layer via
Copy/Cut, a Content-Aware Fill new layer, Stamp Down, Auto-Blend and the Remove tool's new layer
stay above their source but join its clip group.

Artboards are never nested or clipped (a copied board goes beside the anchor's top-level layer,
past any clip group above it); a fully or partly locked group keeps new layers out; a copied
clipped layer pasted with nothing below it is released. A new frame starts closed, so the next
new layer goes above it rather than into it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NyBcWJNZ3eRotC5HNZuwge
2026-10-12 15:40:48 +00:00
..