docxodus 3.7.1 → 3.8.0
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/pagination.bundle.js +136 -9
- package/dist/pagination.d.ts +23 -0
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +155 -17
- package/dist/pagination.js.map +1 -1
- package/dist/wasm/_framework/Docxodus.wasm +0 -0
- package/dist/wasm/_framework/DocxodusWasm.wasm +0 -0
- package/dist/wasm/_framework/blazor.boot.json +3 -3
- package/package.json +1 -1
|
@@ -80,6 +80,7 @@ var DocxodusPagination = (() => {
|
|
|
80
80
|
this.showPageNumbers = options.showPageNumbers ?? true;
|
|
81
81
|
this.pageGap = options.pageGap ?? 20;
|
|
82
82
|
this.hfRegistry = /* @__PURE__ */ new Map();
|
|
83
|
+
this.footnoteRegistry = /* @__PURE__ */ new Map();
|
|
83
84
|
}
|
|
84
85
|
/**
|
|
85
86
|
* Runs the pagination process.
|
|
@@ -90,6 +91,7 @@ var DocxodusPagination = (() => {
|
|
|
90
91
|
const pages = [];
|
|
91
92
|
let pageNumber = 1;
|
|
92
93
|
this.hfRegistry = this.parseHeaderFooterRegistry();
|
|
94
|
+
this.footnoteRegistry = this.parseFootnoteRegistry();
|
|
93
95
|
const sections = this.stagingElement.querySelectorAll(
|
|
94
96
|
"[data-section-index]"
|
|
95
97
|
);
|
|
@@ -182,6 +184,87 @@ var DocxodusPagination = (() => {
|
|
|
182
184
|
}
|
|
183
185
|
return registry;
|
|
184
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Parses the footnote registry from the staging element.
|
|
189
|
+
*/
|
|
190
|
+
parseFootnoteRegistry() {
|
|
191
|
+
const registry = /* @__PURE__ */ new Map();
|
|
192
|
+
const registryEl = this.stagingElement.querySelector("#pagination-footnote-registry");
|
|
193
|
+
if (!registryEl) return registry;
|
|
194
|
+
const entries = Array.from(registryEl.querySelectorAll("[data-footnote-id]"));
|
|
195
|
+
for (const entry of entries) {
|
|
196
|
+
const footnoteId = entry.dataset.footnoteId;
|
|
197
|
+
if (footnoteId) {
|
|
198
|
+
registry.set(footnoteId, entry.cloneNode(true));
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return registry;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Extracts footnote reference IDs from an element.
|
|
205
|
+
*/
|
|
206
|
+
extractFootnoteRefs(element) {
|
|
207
|
+
const refs = element.querySelectorAll("[data-footnote-id]");
|
|
208
|
+
const ids = [];
|
|
209
|
+
for (const ref of Array.from(refs)) {
|
|
210
|
+
const id = ref.dataset.footnoteId;
|
|
211
|
+
if (id && !ids.includes(id)) {
|
|
212
|
+
ids.push(id);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return ids;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Measures the height of footnotes for given IDs (in points).
|
|
219
|
+
* Creates a temporary container to measure the footnotes.
|
|
220
|
+
*/
|
|
221
|
+
measureFootnotesHeight(footnoteIds, contentWidth) {
|
|
222
|
+
if (footnoteIds.length === 0 || this.footnoteRegistry.size === 0) {
|
|
223
|
+
return 0;
|
|
224
|
+
}
|
|
225
|
+
const measureContainer = document.createElement("div");
|
|
226
|
+
measureContainer.style.position = "absolute";
|
|
227
|
+
measureContainer.style.visibility = "hidden";
|
|
228
|
+
measureContainer.style.width = `${contentWidth}pt`;
|
|
229
|
+
measureContainer.style.left = "-9999px";
|
|
230
|
+
const hr = document.createElement("hr");
|
|
231
|
+
measureContainer.appendChild(hr);
|
|
232
|
+
for (const id of footnoteIds) {
|
|
233
|
+
const footnote = this.footnoteRegistry.get(id);
|
|
234
|
+
if (footnote) {
|
|
235
|
+
measureContainer.appendChild(footnote.cloneNode(true));
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
this.stagingElement.appendChild(measureContainer);
|
|
239
|
+
const rect = measureContainer.getBoundingClientRect();
|
|
240
|
+
const heightPt = pxToPt(rect.height);
|
|
241
|
+
this.stagingElement.removeChild(measureContainer);
|
|
242
|
+
return heightPt;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Adds footnotes to a page container.
|
|
246
|
+
*/
|
|
247
|
+
addPageFootnotes(pageBox, footnoteIds, dims) {
|
|
248
|
+
if (footnoteIds.length === 0 || this.footnoteRegistry.size === 0) {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
const footnotesDiv = document.createElement("div");
|
|
252
|
+
footnotesDiv.className = `${this.cssPrefix}footnotes`;
|
|
253
|
+
footnotesDiv.style.position = "absolute";
|
|
254
|
+
footnotesDiv.style.bottom = `${dims.marginBottom}pt`;
|
|
255
|
+
footnotesDiv.style.left = `${dims.marginLeft}pt`;
|
|
256
|
+
footnotesDiv.style.width = `${dims.contentWidth}pt`;
|
|
257
|
+
footnotesDiv.style.boxSizing = "border-box";
|
|
258
|
+
const hr = document.createElement("hr");
|
|
259
|
+
footnotesDiv.appendChild(hr);
|
|
260
|
+
for (const id of footnoteIds) {
|
|
261
|
+
const footnote = this.footnoteRegistry.get(id);
|
|
262
|
+
if (footnote) {
|
|
263
|
+
footnotesDiv.appendChild(footnote.cloneNode(true));
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
pageBox.appendChild(footnotesDiv);
|
|
267
|
+
}
|
|
185
268
|
/**
|
|
186
269
|
* Selects the appropriate header for a page based on section, page position, and page number.
|
|
187
270
|
*/
|
|
@@ -212,6 +295,7 @@ var DocxodusPagination = (() => {
|
|
|
212
295
|
}
|
|
213
296
|
/**
|
|
214
297
|
* Flows measured blocks into page containers.
|
|
298
|
+
* Implements a single-pass, forward-only algorithm that is compatible with future lazy loading.
|
|
215
299
|
*/
|
|
216
300
|
flowToPages(blocks, dims, startPageNumber, sectionIndex) {
|
|
217
301
|
const pages = [];
|
|
@@ -220,15 +304,26 @@ var DocxodusPagination = (() => {
|
|
|
220
304
|
let pageNumber = startPageNumber;
|
|
221
305
|
let pageInSection = 1;
|
|
222
306
|
let prevMarginBottomPt = 0;
|
|
307
|
+
let currentFootnoteIds = [];
|
|
308
|
+
let currentFootnoteHeight = 0;
|
|
223
309
|
const finishPage = () => {
|
|
224
310
|
if (currentContent.length === 0) return;
|
|
225
|
-
const page = this.createPage(
|
|
311
|
+
const page = this.createPage(
|
|
312
|
+
dims,
|
|
313
|
+
pageNumber,
|
|
314
|
+
sectionIndex,
|
|
315
|
+
currentContent,
|
|
316
|
+
pageInSection,
|
|
317
|
+
currentFootnoteIds
|
|
318
|
+
);
|
|
226
319
|
pages.push(page);
|
|
227
320
|
pageNumber++;
|
|
228
321
|
pageInSection++;
|
|
229
322
|
currentContent = [];
|
|
230
323
|
remainingHeight = dims.contentHeight;
|
|
231
324
|
prevMarginBottomPt = 0;
|
|
325
|
+
currentFootnoteIds = [];
|
|
326
|
+
currentFootnoteHeight = 0;
|
|
232
327
|
};
|
|
233
328
|
for (let i = 0; i < blocks.length; i++) {
|
|
234
329
|
const block = blocks[i];
|
|
@@ -240,32 +335,49 @@ var DocxodusPagination = (() => {
|
|
|
240
335
|
if (block.pageBreakBefore && currentContent.length > 0) {
|
|
241
336
|
finishPage();
|
|
242
337
|
}
|
|
338
|
+
const blockFootnoteIds = this.extractFootnoteRefs(block.element);
|
|
339
|
+
const newFootnoteIds = blockFootnoteIds.filter((id) => !currentFootnoteIds.includes(id));
|
|
340
|
+
let additionalFootnoteHeight = 0;
|
|
341
|
+
if (newFootnoteIds.length > 0 && this.footnoteRegistry.size > 0) {
|
|
342
|
+
const combinedFootnoteIds = [...currentFootnoteIds, ...newFootnoteIds];
|
|
343
|
+
const totalFootnoteHeight = this.measureFootnotesHeight(combinedFootnoteIds, dims.contentWidth);
|
|
344
|
+
additionalFootnoteHeight = totalFootnoteHeight - currentFootnoteHeight;
|
|
345
|
+
}
|
|
243
346
|
const isFirstOnPage = currentContent.length === 0;
|
|
244
347
|
let effectiveMarginTop = block.marginTopPt;
|
|
245
348
|
if (!isFirstOnPage) {
|
|
246
349
|
effectiveMarginTop = Math.max(block.marginTopPt, prevMarginBottomPt) - prevMarginBottomPt;
|
|
247
350
|
}
|
|
248
|
-
const blockSpace = effectiveMarginTop + block.heightPt + block.marginBottomPt;
|
|
351
|
+
const blockSpace = effectiveMarginTop + block.heightPt + block.marginBottomPt + additionalFootnoteHeight;
|
|
249
352
|
let neededHeight = blockSpace;
|
|
250
353
|
if (block.keepWithNext && nextBlock && !nextBlock.isPageBreak) {
|
|
251
354
|
const collapsedMargin = Math.max(block.marginBottomPt, nextBlock.marginTopPt);
|
|
252
|
-
neededHeight = effectiveMarginTop + block.heightPt + collapsedMargin + nextBlock.heightPt + nextBlock.marginBottomPt;
|
|
355
|
+
neededHeight = effectiveMarginTop + block.heightPt + collapsedMargin + nextBlock.heightPt + nextBlock.marginBottomPt + additionalFootnoteHeight;
|
|
253
356
|
}
|
|
254
|
-
|
|
357
|
+
const effectiveRemainingHeight = remainingHeight - currentFootnoteHeight;
|
|
358
|
+
if (blockSpace <= effectiveRemainingHeight) {
|
|
255
359
|
currentContent.push(block.element.cloneNode(true));
|
|
256
|
-
remainingHeight -=
|
|
360
|
+
remainingHeight -= effectiveMarginTop + block.heightPt + block.marginBottomPt;
|
|
257
361
|
prevMarginBottomPt = block.marginBottomPt;
|
|
258
|
-
|
|
362
|
+
if (newFootnoteIds.length > 0) {
|
|
363
|
+
currentFootnoteIds.push(...newFootnoteIds);
|
|
364
|
+
currentFootnoteHeight += additionalFootnoteHeight;
|
|
365
|
+
}
|
|
366
|
+
} else if (block.heightPt + block.marginTopPt + block.marginBottomPt + additionalFootnoteHeight <= dims.contentHeight) {
|
|
259
367
|
finishPage();
|
|
368
|
+
const newPageFootnoteHeight = blockFootnoteIds.length > 0 ? this.measureFootnotesHeight(blockFootnoteIds, dims.contentWidth) : 0;
|
|
260
369
|
const newPageSpace = block.marginTopPt + block.heightPt + block.marginBottomPt;
|
|
261
370
|
currentContent.push(block.element.cloneNode(true));
|
|
262
371
|
remainingHeight = dims.contentHeight - newPageSpace;
|
|
263
372
|
prevMarginBottomPt = block.marginBottomPt;
|
|
373
|
+
currentFootnoteIds = [...blockFootnoteIds];
|
|
374
|
+
currentFootnoteHeight = newPageFootnoteHeight;
|
|
264
375
|
} else {
|
|
265
376
|
if (currentContent.length > 0) {
|
|
266
377
|
finishPage();
|
|
267
378
|
}
|
|
268
379
|
currentContent.push(block.element.cloneNode(true));
|
|
380
|
+
currentFootnoteIds = [...blockFootnoteIds];
|
|
269
381
|
finishPage();
|
|
270
382
|
}
|
|
271
383
|
}
|
|
@@ -275,7 +387,7 @@ var DocxodusPagination = (() => {
|
|
|
275
387
|
/**
|
|
276
388
|
* Creates a page container element.
|
|
277
389
|
*/
|
|
278
|
-
createPage(dims, pageNumber, sectionIndex, content, pageInSection) {
|
|
390
|
+
createPage(dims, pageNumber, sectionIndex, content, pageInSection, footnoteIds = []) {
|
|
279
391
|
const pageBox = document.createElement("div");
|
|
280
392
|
pageBox.className = `${this.cssPrefix}box`;
|
|
281
393
|
pageBox.style.width = `${dims.pageWidth}pt`;
|
|
@@ -302,10 +414,16 @@ var DocxodusPagination = (() => {
|
|
|
302
414
|
const headerDiv = document.createElement("div");
|
|
303
415
|
headerDiv.className = `${this.cssPrefix}header`;
|
|
304
416
|
headerDiv.style.position = "absolute";
|
|
305
|
-
headerDiv.style.top =
|
|
417
|
+
headerDiv.style.top = "0";
|
|
306
418
|
headerDiv.style.left = `${dims.marginLeft}pt`;
|
|
307
419
|
headerDiv.style.width = `${dims.contentWidth}pt`;
|
|
420
|
+
headerDiv.style.height = `${dims.marginTop}pt`;
|
|
308
421
|
headerDiv.style.overflow = "hidden";
|
|
422
|
+
headerDiv.style.boxSizing = "border-box";
|
|
423
|
+
headerDiv.style.display = "flex";
|
|
424
|
+
headerDiv.style.flexDirection = "column";
|
|
425
|
+
headerDiv.style.justifyContent = "flex-end";
|
|
426
|
+
headerDiv.style.paddingBottom = "4pt";
|
|
309
427
|
for (const child of Array.from(headerSource.childNodes)) {
|
|
310
428
|
headerDiv.appendChild(child.cloneNode(true));
|
|
311
429
|
}
|
|
@@ -323,15 +441,24 @@ var DocxodusPagination = (() => {
|
|
|
323
441
|
contentArea.appendChild(el);
|
|
324
442
|
}
|
|
325
443
|
pageBox.appendChild(contentArea);
|
|
444
|
+
if (footnoteIds.length > 0) {
|
|
445
|
+
this.addPageFootnotes(pageBox, footnoteIds, dims);
|
|
446
|
+
}
|
|
326
447
|
const footerSource = this.selectFooter(sectionIndex, pageInSection, pageNumber);
|
|
327
448
|
if (footerSource) {
|
|
328
449
|
const footerDiv = document.createElement("div");
|
|
329
450
|
footerDiv.className = `${this.cssPrefix}footer`;
|
|
330
451
|
footerDiv.style.position = "absolute";
|
|
331
|
-
footerDiv.style.bottom =
|
|
452
|
+
footerDiv.style.bottom = "0";
|
|
332
453
|
footerDiv.style.left = `${dims.marginLeft}pt`;
|
|
333
454
|
footerDiv.style.width = `${dims.contentWidth}pt`;
|
|
455
|
+
footerDiv.style.height = `${dims.marginBottom}pt`;
|
|
334
456
|
footerDiv.style.overflow = "hidden";
|
|
457
|
+
footerDiv.style.boxSizing = "border-box";
|
|
458
|
+
footerDiv.style.display = "flex";
|
|
459
|
+
footerDiv.style.flexDirection = "column";
|
|
460
|
+
footerDiv.style.justifyContent = "flex-start";
|
|
461
|
+
footerDiv.style.paddingTop = "4pt";
|
|
335
462
|
for (const child of Array.from(footerSource.childNodes)) {
|
|
336
463
|
footerDiv.appendChild(child.cloneNode(true));
|
|
337
464
|
}
|
package/dist/pagination.d.ts
CHANGED
|
@@ -110,6 +110,10 @@ export interface PaginationOptions {
|
|
|
110
110
|
* Pagination engine that converts HTML with pagination metadata
|
|
111
111
|
* into a paginated view with fixed-size page containers.
|
|
112
112
|
*/
|
|
113
|
+
/**
|
|
114
|
+
* Registry of footnotes by ID for per-page distribution.
|
|
115
|
+
*/
|
|
116
|
+
export type FootnoteRegistry = Map<string, HTMLElement>;
|
|
113
117
|
export declare class PaginationEngine {
|
|
114
118
|
private stagingElement;
|
|
115
119
|
private containerElement;
|
|
@@ -118,6 +122,7 @@ export declare class PaginationEngine {
|
|
|
118
122
|
private showPageNumbers;
|
|
119
123
|
private pageGap;
|
|
120
124
|
private hfRegistry;
|
|
125
|
+
private footnoteRegistry;
|
|
121
126
|
/**
|
|
122
127
|
* Creates a new pagination engine.
|
|
123
128
|
*
|
|
@@ -140,6 +145,23 @@ export declare class PaginationEngine {
|
|
|
140
145
|
* Parses the header/footer registry from the staging element.
|
|
141
146
|
*/
|
|
142
147
|
private parseHeaderFooterRegistry;
|
|
148
|
+
/**
|
|
149
|
+
* Parses the footnote registry from the staging element.
|
|
150
|
+
*/
|
|
151
|
+
private parseFootnoteRegistry;
|
|
152
|
+
/**
|
|
153
|
+
* Extracts footnote reference IDs from an element.
|
|
154
|
+
*/
|
|
155
|
+
private extractFootnoteRefs;
|
|
156
|
+
/**
|
|
157
|
+
* Measures the height of footnotes for given IDs (in points).
|
|
158
|
+
* Creates a temporary container to measure the footnotes.
|
|
159
|
+
*/
|
|
160
|
+
private measureFootnotesHeight;
|
|
161
|
+
/**
|
|
162
|
+
* Adds footnotes to a page container.
|
|
163
|
+
*/
|
|
164
|
+
private addPageFootnotes;
|
|
143
165
|
/**
|
|
144
166
|
* Selects the appropriate header for a page based on section, page position, and page number.
|
|
145
167
|
*/
|
|
@@ -150,6 +172,7 @@ export declare class PaginationEngine {
|
|
|
150
172
|
private selectFooter;
|
|
151
173
|
/**
|
|
152
174
|
* Flows measured blocks into page containers.
|
|
175
|
+
* Implements a single-pass, forward-only algorithm that is compatible with future lazy loading.
|
|
153
176
|
*/
|
|
154
177
|
private flowToPages;
|
|
155
178
|
/**
|
package/dist/pagination.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../src/pagination.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,2BAA2B;IAC3B,SAAS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AAsB;IAqC9B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAgCxB;;OAEG;IACH,OAAO,CAAC,YAAY;IAsBpB;;OAEG;IACH,OAAO,CAAC,YAAY;IAsBpB;;;OAGG;IACH,OAAO,CAAC,WAAW;IAwInB;;OAEG;IACH,OAAO,CAAC,UAAU;CA+HnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,WAAW,GAAG,MAAM,EAC/B,OAAO,GAAE,iBAAsB,GAC9B,gBAAgB,CAgClB"}
|
package/dist/pagination.js
CHANGED
|
@@ -49,10 +49,6 @@ function parseDimensions(section) {
|
|
|
49
49
|
footerHeight,
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Pagination engine that converts HTML with pagination metadata
|
|
54
|
-
* into a paginated view with fixed-size page containers.
|
|
55
|
-
*/
|
|
56
52
|
export class PaginationEngine {
|
|
57
53
|
/**
|
|
58
54
|
* Creates a new pagination engine.
|
|
@@ -81,6 +77,7 @@ export class PaginationEngine {
|
|
|
81
77
|
this.showPageNumbers = options.showPageNumbers ?? true;
|
|
82
78
|
this.pageGap = options.pageGap ?? 20;
|
|
83
79
|
this.hfRegistry = new Map();
|
|
80
|
+
this.footnoteRegistry = new Map();
|
|
84
81
|
}
|
|
85
82
|
/**
|
|
86
83
|
* Runs the pagination process.
|
|
@@ -92,6 +89,8 @@ export class PaginationEngine {
|
|
|
92
89
|
let pageNumber = 1;
|
|
93
90
|
// Parse the header/footer registry if present
|
|
94
91
|
this.hfRegistry = this.parseHeaderFooterRegistry();
|
|
92
|
+
// Parse the footnote registry if present
|
|
93
|
+
this.footnoteRegistry = this.parseFootnoteRegistry();
|
|
95
94
|
// Find all section containers
|
|
96
95
|
const sections = this.stagingElement.querySelectorAll("[data-section-index]");
|
|
97
96
|
// If no sections found, treat the entire staging content as one section
|
|
@@ -197,6 +196,97 @@ export class PaginationEngine {
|
|
|
197
196
|
}
|
|
198
197
|
return registry;
|
|
199
198
|
}
|
|
199
|
+
/**
|
|
200
|
+
* Parses the footnote registry from the staging element.
|
|
201
|
+
*/
|
|
202
|
+
parseFootnoteRegistry() {
|
|
203
|
+
const registry = new Map();
|
|
204
|
+
const registryEl = this.stagingElement.querySelector("#pagination-footnote-registry");
|
|
205
|
+
if (!registryEl)
|
|
206
|
+
return registry;
|
|
207
|
+
const entries = Array.from(registryEl.querySelectorAll("[data-footnote-id]"));
|
|
208
|
+
for (const entry of entries) {
|
|
209
|
+
const footnoteId = entry.dataset.footnoteId;
|
|
210
|
+
if (footnoteId) {
|
|
211
|
+
// Clone the footnote element for later use
|
|
212
|
+
registry.set(footnoteId, entry.cloneNode(true));
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return registry;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Extracts footnote reference IDs from an element.
|
|
219
|
+
*/
|
|
220
|
+
extractFootnoteRefs(element) {
|
|
221
|
+
const refs = element.querySelectorAll("[data-footnote-id]");
|
|
222
|
+
const ids = [];
|
|
223
|
+
for (const ref of Array.from(refs)) {
|
|
224
|
+
const id = ref.dataset.footnoteId;
|
|
225
|
+
if (id && !ids.includes(id)) {
|
|
226
|
+
ids.push(id);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return ids;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Measures the height of footnotes for given IDs (in points).
|
|
233
|
+
* Creates a temporary container to measure the footnotes.
|
|
234
|
+
*/
|
|
235
|
+
measureFootnotesHeight(footnoteIds, contentWidth) {
|
|
236
|
+
if (footnoteIds.length === 0 || this.footnoteRegistry.size === 0) {
|
|
237
|
+
return 0;
|
|
238
|
+
}
|
|
239
|
+
// Create a temporary measurement container
|
|
240
|
+
const measureContainer = document.createElement("div");
|
|
241
|
+
measureContainer.style.position = "absolute";
|
|
242
|
+
measureContainer.style.visibility = "hidden";
|
|
243
|
+
measureContainer.style.width = `${contentWidth}pt`;
|
|
244
|
+
measureContainer.style.left = "-9999px";
|
|
245
|
+
// Add separator line (same as will be rendered)
|
|
246
|
+
const hr = document.createElement("hr");
|
|
247
|
+
measureContainer.appendChild(hr);
|
|
248
|
+
// Add footnotes
|
|
249
|
+
for (const id of footnoteIds) {
|
|
250
|
+
const footnote = this.footnoteRegistry.get(id);
|
|
251
|
+
if (footnote) {
|
|
252
|
+
measureContainer.appendChild(footnote.cloneNode(true));
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
// Append to staging for measurement
|
|
256
|
+
this.stagingElement.appendChild(measureContainer);
|
|
257
|
+
// Measure
|
|
258
|
+
const rect = measureContainer.getBoundingClientRect();
|
|
259
|
+
const heightPt = pxToPt(rect.height);
|
|
260
|
+
// Clean up
|
|
261
|
+
this.stagingElement.removeChild(measureContainer);
|
|
262
|
+
return heightPt;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Adds footnotes to a page container.
|
|
266
|
+
*/
|
|
267
|
+
addPageFootnotes(pageBox, footnoteIds, dims) {
|
|
268
|
+
if (footnoteIds.length === 0 || this.footnoteRegistry.size === 0) {
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
const footnotesDiv = document.createElement("div");
|
|
272
|
+
footnotesDiv.className = `${this.cssPrefix}footnotes`;
|
|
273
|
+
footnotesDiv.style.position = "absolute";
|
|
274
|
+
footnotesDiv.style.bottom = `${dims.marginBottom}pt`; // Above footer area
|
|
275
|
+
footnotesDiv.style.left = `${dims.marginLeft}pt`;
|
|
276
|
+
footnotesDiv.style.width = `${dims.contentWidth}pt`;
|
|
277
|
+
footnotesDiv.style.boxSizing = "border-box";
|
|
278
|
+
// Add separator line
|
|
279
|
+
const hr = document.createElement("hr");
|
|
280
|
+
footnotesDiv.appendChild(hr);
|
|
281
|
+
// Clone footnotes in order of appearance
|
|
282
|
+
for (const id of footnoteIds) {
|
|
283
|
+
const footnote = this.footnoteRegistry.get(id);
|
|
284
|
+
if (footnote) {
|
|
285
|
+
footnotesDiv.appendChild(footnote.cloneNode(true));
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
pageBox.appendChild(footnotesDiv);
|
|
289
|
+
}
|
|
200
290
|
/**
|
|
201
291
|
* Selects the appropriate header for a page based on section, page position, and page number.
|
|
202
292
|
*/
|
|
@@ -235,6 +325,7 @@ export class PaginationEngine {
|
|
|
235
325
|
}
|
|
236
326
|
/**
|
|
237
327
|
* Flows measured blocks into page containers.
|
|
328
|
+
* Implements a single-pass, forward-only algorithm that is compatible with future lazy loading.
|
|
238
329
|
*/
|
|
239
330
|
flowToPages(blocks, dims, startPageNumber, sectionIndex) {
|
|
240
331
|
const pages = [];
|
|
@@ -245,16 +336,22 @@ export class PaginationEngine {
|
|
|
245
336
|
let pageInSection = 1;
|
|
246
337
|
// Track the previous block's bottom margin for margin collapsing
|
|
247
338
|
let prevMarginBottomPt = 0;
|
|
339
|
+
// Track footnote IDs for the current page
|
|
340
|
+
let currentFootnoteIds = [];
|
|
341
|
+
// Track height consumed by footnotes on current page
|
|
342
|
+
let currentFootnoteHeight = 0;
|
|
248
343
|
const finishPage = () => {
|
|
249
344
|
if (currentContent.length === 0)
|
|
250
345
|
return;
|
|
251
|
-
const page = this.createPage(dims, pageNumber, sectionIndex, currentContent, pageInSection);
|
|
346
|
+
const page = this.createPage(dims, pageNumber, sectionIndex, currentContent, pageInSection, currentFootnoteIds);
|
|
252
347
|
pages.push(page);
|
|
253
348
|
pageNumber++;
|
|
254
349
|
pageInSection++;
|
|
255
350
|
currentContent = [];
|
|
256
351
|
remainingHeight = dims.contentHeight;
|
|
257
352
|
prevMarginBottomPt = 0; // Reset margin tracking for new page
|
|
353
|
+
currentFootnoteIds = []; // Reset footnotes for new page
|
|
354
|
+
currentFootnoteHeight = 0;
|
|
258
355
|
};
|
|
259
356
|
for (let i = 0; i < blocks.length; i++) {
|
|
260
357
|
const block = blocks[i];
|
|
@@ -268,6 +365,18 @@ export class PaginationEngine {
|
|
|
268
365
|
if (block.pageBreakBefore && currentContent.length > 0) {
|
|
269
366
|
finishPage();
|
|
270
367
|
}
|
|
368
|
+
// Extract footnote references from this block
|
|
369
|
+
const blockFootnoteIds = this.extractFootnoteRefs(block.element);
|
|
370
|
+
// Only count new footnotes (not already on this page)
|
|
371
|
+
const newFootnoteIds = blockFootnoteIds.filter(id => !currentFootnoteIds.includes(id));
|
|
372
|
+
// Calculate additional footnote height if this block is added
|
|
373
|
+
let additionalFootnoteHeight = 0;
|
|
374
|
+
if (newFootnoteIds.length > 0 && this.footnoteRegistry.size > 0) {
|
|
375
|
+
// Measure the combined height of all footnotes that would be on this page
|
|
376
|
+
const combinedFootnoteIds = [...currentFootnoteIds, ...newFootnoteIds];
|
|
377
|
+
const totalFootnoteHeight = this.measureFootnotesHeight(combinedFootnoteIds, dims.contentWidth);
|
|
378
|
+
additionalFootnoteHeight = totalFootnoteHeight - currentFootnoteHeight;
|
|
379
|
+
}
|
|
271
380
|
// Calculate the effective height this block will consume
|
|
272
381
|
// Account for margin collapsing: the gap between blocks is max(prevBottom, currTop), not sum
|
|
273
382
|
const isFirstOnPage = currentContent.length === 0;
|
|
@@ -276,32 +385,44 @@ export class PaginationEngine {
|
|
|
276
385
|
// Margin collapsing: use the larger of the two adjacent margins
|
|
277
386
|
effectiveMarginTop = Math.max(block.marginTopPt, prevMarginBottomPt) - prevMarginBottomPt;
|
|
278
387
|
}
|
|
279
|
-
// Total height = top margin gap + content + bottom margin
|
|
280
|
-
|
|
281
|
-
const blockSpace = effectiveMarginTop + block.heightPt + block.marginBottomPt;
|
|
388
|
+
// Total height = top margin gap + content + bottom margin + footnote space
|
|
389
|
+
const blockSpace = effectiveMarginTop + block.heightPt + block.marginBottomPt + additionalFootnoteHeight;
|
|
282
390
|
// Calculate needed height (including keepWithNext)
|
|
283
391
|
let neededHeight = blockSpace;
|
|
284
392
|
if (block.keepWithNext && nextBlock && !nextBlock.isPageBreak) {
|
|
285
393
|
// For keepWithNext, include the next block with collapsed margins
|
|
286
394
|
const collapsedMargin = Math.max(block.marginBottomPt, nextBlock.marginTopPt);
|
|
287
395
|
neededHeight = effectiveMarginTop + block.heightPt + collapsedMargin +
|
|
288
|
-
nextBlock.heightPt + nextBlock.marginBottomPt;
|
|
396
|
+
nextBlock.heightPt + nextBlock.marginBottomPt + additionalFootnoteHeight;
|
|
289
397
|
}
|
|
290
|
-
//
|
|
291
|
-
|
|
398
|
+
// Effective remaining height (content area minus footnotes already on page)
|
|
399
|
+
const effectiveRemainingHeight = remainingHeight - currentFootnoteHeight;
|
|
400
|
+
// Check if block fits on current page (including its footnotes)
|
|
401
|
+
if (blockSpace <= effectiveRemainingHeight) {
|
|
292
402
|
// Block fits
|
|
293
403
|
currentContent.push(block.element.cloneNode(true));
|
|
294
|
-
remainingHeight -=
|
|
404
|
+
remainingHeight -= (effectiveMarginTop + block.heightPt + block.marginBottomPt);
|
|
295
405
|
prevMarginBottomPt = block.marginBottomPt;
|
|
406
|
+
// Add new footnotes to current page
|
|
407
|
+
if (newFootnoteIds.length > 0) {
|
|
408
|
+
currentFootnoteIds.push(...newFootnoteIds);
|
|
409
|
+
currentFootnoteHeight += additionalFootnoteHeight;
|
|
410
|
+
}
|
|
296
411
|
}
|
|
297
|
-
else if (block.heightPt + block.marginTopPt + block.marginBottomPt <= dims.contentHeight) {
|
|
412
|
+
else if (block.heightPt + block.marginTopPt + block.marginBottomPt + additionalFootnoteHeight <= dims.contentHeight) {
|
|
298
413
|
// Block doesn't fit but will fit on a new page
|
|
299
414
|
finishPage();
|
|
300
|
-
// On new page,
|
|
415
|
+
// On new page, recalculate footnote height for just this block's footnotes
|
|
416
|
+
const newPageFootnoteHeight = blockFootnoteIds.length > 0
|
|
417
|
+
? this.measureFootnotesHeight(blockFootnoteIds, dims.contentWidth)
|
|
418
|
+
: 0;
|
|
419
|
+
// Include full top margin
|
|
301
420
|
const newPageSpace = block.marginTopPt + block.heightPt + block.marginBottomPt;
|
|
302
421
|
currentContent.push(block.element.cloneNode(true));
|
|
303
422
|
remainingHeight = dims.contentHeight - newPageSpace;
|
|
304
423
|
prevMarginBottomPt = block.marginBottomPt;
|
|
424
|
+
currentFootnoteIds = [...blockFootnoteIds];
|
|
425
|
+
currentFootnoteHeight = newPageFootnoteHeight;
|
|
305
426
|
}
|
|
306
427
|
else {
|
|
307
428
|
// Block is taller than a page - add it and let it overflow
|
|
@@ -310,6 +431,7 @@ export class PaginationEngine {
|
|
|
310
431
|
finishPage();
|
|
311
432
|
}
|
|
312
433
|
currentContent.push(block.element.cloneNode(true));
|
|
434
|
+
currentFootnoteIds = [...blockFootnoteIds];
|
|
313
435
|
finishPage();
|
|
314
436
|
}
|
|
315
437
|
}
|
|
@@ -320,7 +442,7 @@ export class PaginationEngine {
|
|
|
320
442
|
/**
|
|
321
443
|
* Creates a page container element.
|
|
322
444
|
*/
|
|
323
|
-
createPage(dims, pageNumber, sectionIndex, content, pageInSection) {
|
|
445
|
+
createPage(dims, pageNumber, sectionIndex, content, pageInSection, footnoteIds = []) {
|
|
324
446
|
// Create page box at full size, then scale the entire box
|
|
325
447
|
// This ensures proper clipping and consistent scaling of all elements
|
|
326
448
|
const pageBox = document.createElement("div");
|
|
@@ -359,10 +481,16 @@ export class PaginationEngine {
|
|
|
359
481
|
const headerDiv = document.createElement("div");
|
|
360
482
|
headerDiv.className = `${this.cssPrefix}header`;
|
|
361
483
|
headerDiv.style.position = "absolute";
|
|
362
|
-
headerDiv.style.top =
|
|
484
|
+
headerDiv.style.top = "0"; // Start at page top
|
|
363
485
|
headerDiv.style.left = `${dims.marginLeft}pt`;
|
|
364
486
|
headerDiv.style.width = `${dims.contentWidth}pt`;
|
|
487
|
+
headerDiv.style.height = `${dims.marginTop}pt`; // Constrain to top margin area
|
|
365
488
|
headerDiv.style.overflow = "hidden";
|
|
489
|
+
headerDiv.style.boxSizing = "border-box";
|
|
490
|
+
headerDiv.style.display = "flex";
|
|
491
|
+
headerDiv.style.flexDirection = "column";
|
|
492
|
+
headerDiv.style.justifyContent = "flex-end"; // Align content to bottom of header area
|
|
493
|
+
headerDiv.style.paddingBottom = "4pt"; // Small gap before content area
|
|
366
494
|
// Clone the header content (skip the wrapper div's data attributes)
|
|
367
495
|
for (const child of Array.from(headerSource.childNodes)) {
|
|
368
496
|
headerDiv.appendChild(child.cloneNode(true));
|
|
@@ -383,16 +511,26 @@ export class PaginationEngine {
|
|
|
383
511
|
contentArea.appendChild(el);
|
|
384
512
|
}
|
|
385
513
|
pageBox.appendChild(contentArea);
|
|
514
|
+
// Add footnotes if any references appear on this page
|
|
515
|
+
if (footnoteIds.length > 0) {
|
|
516
|
+
this.addPageFootnotes(pageBox, footnoteIds, dims);
|
|
517
|
+
}
|
|
386
518
|
// Add footer if available for this section/page
|
|
387
519
|
const footerSource = this.selectFooter(sectionIndex, pageInSection, pageNumber);
|
|
388
520
|
if (footerSource) {
|
|
389
521
|
const footerDiv = document.createElement("div");
|
|
390
522
|
footerDiv.className = `${this.cssPrefix}footer`;
|
|
391
523
|
footerDiv.style.position = "absolute";
|
|
392
|
-
footerDiv.style.bottom =
|
|
524
|
+
footerDiv.style.bottom = "0"; // Start at page bottom
|
|
393
525
|
footerDiv.style.left = `${dims.marginLeft}pt`;
|
|
394
526
|
footerDiv.style.width = `${dims.contentWidth}pt`;
|
|
527
|
+
footerDiv.style.height = `${dims.marginBottom}pt`; // Constrain to bottom margin area
|
|
395
528
|
footerDiv.style.overflow = "hidden";
|
|
529
|
+
footerDiv.style.boxSizing = "border-box";
|
|
530
|
+
footerDiv.style.display = "flex";
|
|
531
|
+
footerDiv.style.flexDirection = "column";
|
|
532
|
+
footerDiv.style.justifyContent = "flex-start"; // Align content to top of footer area
|
|
533
|
+
footerDiv.style.paddingTop = "4pt"; // Small gap after content area
|
|
396
534
|
// Clone the footer content (skip the wrapper div's data attributes)
|
|
397
535
|
for (const child of Array.from(footerSource.childNodes)) {
|
|
398
536
|
footerDiv.appendChild(child.cloneNode(true));
|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IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IAED,6BAA6B;IAC7B,WAAW,CAAC,SAAS,GAAG,IAAI,CAAC;IAE7B,kCAAkC;IAClC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC;IAC/C,MAAM,OAAO,GAAG,WAAW,CAAC,aAAa,CAAc,qBAAqB,CAAC;QAC3E,WAAW,CAAC,aAAa,CAAc,IAAI,SAAS,SAAS,CAAC,CAAC;IACjE,MAAM,aAAa,GAAG,WAAW,CAAC,aAAa,CAAc,uBAAuB,CAAC;QACnF,WAAW,CAAC,aAAa,CAAc,IAAI,SAAS,WAAW,CAAC,CAAC;IAEnE,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,sGAAsG,CACvG,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACrE,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;AAC3B,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mainAssemblyName": "DocxodusWasm.dll",
|
|
3
3
|
"resources": {
|
|
4
|
-
"hash": "sha256-
|
|
4
|
+
"hash": "sha256-P32xSIvA3tYByp2MpFMtks8DzXj+JZkm9OJj8VGEzOE=",
|
|
5
5
|
"jsModuleNative": {
|
|
6
6
|
"dotnet.native.js": "sha256-YLwjs9CPwrZG7YKULjmqr5bYsmhxwcWJOhQNM4bG6Gc="
|
|
7
7
|
},
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"assembly": {
|
|
18
18
|
"DocumentFormat.OpenXml.wasm": "sha256-edAN2rIA7QQ8K5qp1o5QXplt8M80fEiVmuMgT/MBmLM=",
|
|
19
19
|
"DocumentFormat.OpenXml.Framework.wasm": "sha256-CFdrD1dSpnkcOk0gxZcKb2T5p+q2ck9ivs+TOML6Jmw=",
|
|
20
|
-
"Docxodus.wasm": "sha256-
|
|
21
|
-
"DocxodusWasm.wasm": "sha256-
|
|
20
|
+
"Docxodus.wasm": "sha256-dz1pKwjvSqtjV6Ol4pB7LMny6xgHPUw3U/ruXt0ayAw=",
|
|
21
|
+
"DocxodusWasm.wasm": "sha256-iwUdChc7ew6Xv4XER/NAlFUHkIqyIeuhWB0LKgAn3zM=",
|
|
22
22
|
"SkiaSharp.wasm": "sha256-U6RbqUVBn8Vx8qpghJC5+r/DC1NSBY+EIRDxP8o6dsk=",
|
|
23
23
|
"System.Collections.Concurrent.wasm": "sha256-xXJbJWNeQ2DSYvAGUoUHjF9y4Iajv2ed0eACOxWD19U=",
|
|
24
24
|
"System.Collections.wasm": "sha256-mNLhFaXT8X16KYjUVNFYwcdw0h3BUjgD427TR5IWVKU=",
|