@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.
- package/dist/doc/types/runs.d.ts +7 -0
- package/dist/docx/import/document.d.ts +8 -0
- package/dist/docx/import/runs.d.ts +4 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1999 -1959
- package/dist/index.js.map +1 -1
- package/dist/paperStack/footnoteFlow.d.ts +12 -4
- package/package.json +1 -1
|
@@ -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
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
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[];
|