mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-01 14:37:05 -06:00
repair() brings each slide side into PowerPoint's 72–4032 pt (as Design › Slide Size allows; it accepted 1–4000 before), and replaces a zero, negative or non-finite size with 16:9; a bad notes size gets the default. The native reader takes a null, string or missing slide/notes size as NaN for repair to fix, so such a file opens instead of failing as damaged (NaN and infinity are saved as null). The canvas fit and slide show fit treat a zero or non-finite side as 1 pt, so an in-memory bad size can't make layout infinite. Co-authored-by: Cursor <cursoragent@cursor.com>