From 01ecb8a85bfe1eede7070156b6d8947c2d4bce4c Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Tue, 2 Jun 2026 14:55:42 -0400 Subject: [PATCH] book: stop layer-creation paths from bouncing book mode to cover MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding a text layer on a book page kicked templateMode back to 'cover' and rendered the DVD case panels behind the book editor. Three layer-creation helpers didn't know about book-* targets: - applyTargetMode(target): the trailing else set templateMode = 'cover' for anything it didn't recognise. Book targets (book-page:, book-master:, book-cover-*, book-spine) now keep templateMode = 'book'. - targetBounds(target): the switch fell through to sheetW/sheetH for book targets, returning the wrong rectangle. Added a book-* branch that returns the page's trim rect (inset by bleed) for pages + masters, and the per-panel slice of the spread for cover panels. - updateLayerTargetOptions(): the #layerTarget