mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-11 16:34:47 -06:00
The writer numbers sheetIds from 1 in sheet order, so a rewritten workbook changes the id of any sheet that is not part of a gapless series from 1. Anything that recognises a sheet by its id (parts carried through as they are, external tools) loses it. The model keeps the sheetId it read (Sheet::file_id, PreservedSheet::sheet_id, not serialised to JSON) and the writer writes it back; a new sheet, or a copy with a taken id, gets the first free one.