mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 17:37:14 +00:00
`slices::resolve()` only clipped each stored slice to the canvas, so a slice under a later one was numbered and exported in full and Save for Web wrote the overlap twice (the HTML path cut pieces itself, named `<name>_01`, `_02`). As Photoshop does, resolve() now cuts a covered slice into its visible pieces: the first piece in reading order keeps the name, every further piece is `<name>-NN` with its own slice number, and auto slices count the pieces in their numbering (measured in Photoshop: sliceA, <doc>_02, sliceA-03, sliceB, <doc>_05). - Save for Web exports resolve()'s pieces as they are, with or without HTML; a no-image cell's text goes into its first piece only. - Slice Options and slice.list show the slice's own name for every piece; slice.set accepts a slice that ends up wholly under later ones (number null) instead of calling it off the canvas. - Slice Select drags the whole slice, not the piece that was hit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>