@sobree/core 0.1.42 → 0.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,9 +18,17 @@ import { Paper } from './paper';
18
18
  */
19
19
  export declare function distributeFootnotes(papers: readonly Paper[]): void;
20
20
  /**
21
- * Per-page body budget after subtracting each page's footnote-zone
22
- * height entry `i` is page `i`'s budget. Trailing entries equal to the
23
- * baseline are trimmed so two arrays differing only by an unrelated tail
24
- * compare equal (keeps the repaginate loop's `arraysEqual` honest).
21
+ * Per-page body budget entry `i` is page `i`'s budget. Each page's budget is
22
+ * its OWN content-box area (paper height minus its actual top + bottom padding,
23
+ * so a page-specific footer reservation that inflated `padding-bottom` e.g. a
24
+ * first-page footer shrinks only THAT page) minus its footnote-zone height.
25
+ * The area is read from geometry, NOT `content.offsetHeight`, because a page
26
+ * that momentarily overflows during the iterative repaginate reports its
27
+ * overflowing CONTENT height there, not the page area.
28
+ *
29
+ * Trailing entries that meet (or exceed) the unconstrained `baselineBudgetPx`
30
+ * are trimmed: those pages fall back to the engine's global default, so two
31
+ * arrays differing only by an unrelated tail compare equal (keeps the
32
+ * repaginate loop's `arraysEqual` honest).
25
33
  */
26
34
  export declare function footnotePageHeights(papers: readonly Paper[], baselineBudgetPx: number): number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sobree/core",
3
- "version": "0.1.42",
3
+ "version": "0.1.45",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },