@eigenpal/docx-editor-core 1.3.0 → 1.3.2

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.
Files changed (107) hide show
  1. package/dist/chunk-2LEFMTNZ.mjs +1 -0
  2. package/dist/chunk-4MYKVWNF.js +1 -0
  3. package/dist/chunk-4PANZ3VU.js +1 -0
  4. package/dist/{chunk-Q5B5GKXD.mjs → chunk-55XWETY4.mjs} +1 -1
  5. package/dist/chunk-6WZW3NSJ.js +1 -0
  6. package/dist/chunk-HKN2NKOG.mjs +1 -0
  7. package/dist/chunk-HPJBZL37.mjs +1 -0
  8. package/dist/{chunk-TURYWKNS.js → chunk-J3YFJDZD.js} +1 -1
  9. package/dist/chunk-JHTURDPX.mjs +1 -0
  10. package/dist/chunk-KKXCBWVG.mjs +1 -0
  11. package/dist/chunk-LJE7HQEJ.mjs +1 -0
  12. package/dist/chunk-LX35TFGF.mjs +1 -0
  13. package/dist/chunk-NRWQ65NX.js +1 -0
  14. package/dist/chunk-PFMM7QON.js +1 -0
  15. package/dist/chunk-PMSGJXOE.mjs +1 -0
  16. package/dist/chunk-QVRNNRG5.js +1 -0
  17. package/dist/chunk-RSU4HTC6.js +1 -0
  18. package/dist/{chunk-L6YTCHOQ.mjs → chunk-UEPLDKKM.mjs} +1 -1
  19. package/dist/chunk-YPQACU4A.js +1 -0
  20. package/dist/{chunk-TJRROR6U.js → chunk-ZAZWHK4J.js} +1 -1
  21. package/dist/core.d.mts +2 -2
  22. package/dist/core.d.ts +2 -2
  23. package/dist/core.js +1 -1
  24. package/dist/core.mjs +1 -1
  25. package/dist/editor/index.d.mts +128 -0
  26. package/dist/editor/index.d.ts +128 -0
  27. package/dist/editor/index.js +1 -0
  28. package/dist/editor/index.mjs +1 -0
  29. package/dist/{footnotes-BtVc6VFl.d.mts → footnotes-BZ24OTAT.d.mts} +11 -1
  30. package/dist/{footnotes-DcUMWXul.d.ts → footnotes-DMsicPGd.d.ts} +11 -1
  31. package/dist/{headerFooterLayout-4E-S4Aay.d.ts → headerFooterLayout-AtAOhM8E.d.ts} +18 -2
  32. package/dist/{headerFooterLayout-DlJLWmpR.d.mts → headerFooterLayout-CU6hvszp.d.mts} +18 -2
  33. package/dist/layout-bridge/clickToPositionDom.js +1 -1
  34. package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
  35. package/dist/layout-bridge/index.d.mts +109 -5
  36. package/dist/layout-bridge/index.d.ts +109 -5
  37. package/dist/layout-bridge/index.js +1 -1
  38. package/dist/layout-bridge/index.mjs +1 -1
  39. package/dist/layout-bridge/measuring/index.d.mts +5 -95
  40. package/dist/layout-bridge/measuring/index.d.ts +5 -95
  41. package/dist/layout-bridge/measuring/index.js +1 -1
  42. package/dist/layout-bridge/measuring/index.mjs +1 -1
  43. package/dist/layout-bridge/tableInsertHover.js +1 -1
  44. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  45. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  46. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  47. package/dist/layout-engine/index.js +1 -1
  48. package/dist/layout-engine/index.mjs +1 -1
  49. package/dist/layout-painter/index.d.mts +2 -2
  50. package/dist/layout-painter/index.d.ts +2 -2
  51. package/dist/layout-painter/index.js +1 -1
  52. package/dist/layout-painter/index.mjs +1 -1
  53. package/dist/layout-painter/renderPage.d.mts +8 -3
  54. package/dist/layout-painter/renderPage.d.ts +8 -3
  55. package/dist/layout-painter/renderPage.js +1 -1
  56. package/dist/layout-painter/renderPage.mjs +1 -1
  57. package/dist/measureBlocksPipeline-BMqbRFQB.d.mts +96 -0
  58. package/dist/measureBlocksPipeline-iYNzAH-o.d.ts +96 -0
  59. package/dist/prosemirror/applyFormatting.d.mts +67 -0
  60. package/dist/prosemirror/applyFormatting.d.ts +67 -0
  61. package/dist/prosemirror/applyFormatting.js +1 -0
  62. package/dist/prosemirror/applyFormatting.mjs +1 -0
  63. package/dist/prosemirror/commentIdAllocator.d.mts +50 -0
  64. package/dist/prosemirror/commentIdAllocator.d.ts +50 -0
  65. package/dist/prosemirror/commentIdAllocator.js +1 -0
  66. package/dist/prosemirror/commentIdAllocator.mjs +1 -0
  67. package/dist/prosemirror/commentOps.d.mts +46 -0
  68. package/dist/prosemirror/commentOps.d.ts +46 -0
  69. package/dist/prosemirror/commentOps.js +1 -0
  70. package/dist/prosemirror/commentOps.mjs +1 -0
  71. package/dist/prosemirror/conversion/index.js +1 -1
  72. package/dist/prosemirror/conversion/index.mjs +1 -1
  73. package/dist/prosemirror/imageCommit.d.mts +35 -0
  74. package/dist/prosemirror/imageCommit.d.ts +35 -0
  75. package/dist/prosemirror/imageCommit.js +1 -0
  76. package/dist/prosemirror/imageCommit.mjs +1 -0
  77. package/dist/prosemirror/index.js +2 -2
  78. package/dist/prosemirror/index.mjs +1 -1
  79. package/dist/prosemirror/paraText.d.mts +52 -0
  80. package/dist/prosemirror/paraText.d.ts +52 -0
  81. package/dist/prosemirror/paraText.js +1 -0
  82. package/dist/prosemirror/paraText.mjs +1 -0
  83. package/dist/prosemirror/queries.d.mts +65 -0
  84. package/dist/prosemirror/queries.d.ts +65 -0
  85. package/dist/prosemirror/queries.js +2 -0
  86. package/dist/prosemirror/queries.mjs +2 -0
  87. package/dist/prosemirror/tableResize.d.mts +58 -0
  88. package/dist/prosemirror/tableResize.d.ts +58 -0
  89. package/dist/prosemirror/tableResize.js +1 -0
  90. package/dist/prosemirror/tableResize.mjs +1 -0
  91. package/dist/utils/autoScroll.d.mts +24 -0
  92. package/dist/utils/autoScroll.d.ts +24 -0
  93. package/dist/utils/autoScroll.js +1 -0
  94. package/dist/utils/autoScroll.mjs +1 -0
  95. package/package.json +73 -1
  96. package/dist/chunk-72KLR6TJ.mjs +0 -1
  97. package/dist/chunk-7JQVKJRN.mjs +0 -1
  98. package/dist/chunk-7WGN2OBZ.js +0 -1
  99. package/dist/chunk-B46V5G46.mjs +0 -1
  100. package/dist/chunk-BUCOTKYY.js +0 -1
  101. package/dist/chunk-FQS436KN.js +0 -1
  102. package/dist/chunk-IUVQJ6PX.mjs +0 -1
  103. package/dist/chunk-JUMHC5Z6.mjs +0 -1
  104. package/dist/chunk-MEVZCB56.mjs +0 -1
  105. package/dist/chunk-T4RYVPAB.js +0 -1
  106. package/dist/chunk-WDBZ3QVB.js +0 -1
  107. package/dist/chunk-XWC67YLW.js +0 -1
@@ -6,13 +6,15 @@
6
6
  * @packageDocumentation
7
7
  * @public
8
8
  */
9
- import { WrapTextDirection, TextRun, ParagraphBlock, ParagraphMeasure, FlowBlock, Measure } from '../../layout-engine/types.js';
10
- import { P as PageGeometry } from '../../anchoredObjectPosition-CS-8BfhO.js';
9
+ import { TextRun, ParagraphBlock, ParagraphMeasure } from '../../layout-engine/types.js';
10
+ import { b as FloatingImageZone } from '../../measureBlocksPipeline-iYNzAH-o.js';
11
+ export { F as FloatPageGeometry, a as FloatingExclusionRect, c as FloatingLineSegmentZone, M as MeasureBlockFn, g as getFloatingMargins, m as measureBlocksWithFloats, r as rectsToFloatingZones } from '../../measureBlocksPipeline-iYNzAH-o.js';
11
12
  import '../../content-C8fc_tL6.js';
12
13
  import '../../formatting-_OXU8gLB.js';
13
14
  import '../../colors-C3vA7HUU.js';
14
15
  import '../../docx/wrapTypes.js';
15
16
  import '../../watermark-DAcnAs_J.js';
17
+ import '../../anchoredObjectPosition-CS-8BfhO.js';
16
18
 
17
19
  /**
18
20
  * Measurement container for text layout
@@ -157,46 +159,6 @@ declare function halfPtToPx(halfPt: number): number;
157
159
  */
158
160
  declare function pxToHalfPt(px: number): number;
159
161
 
160
- interface FloatingExclusionRect {
161
- /** Which side the object is on for simple one-sided wrapping. */
162
- side: 'left' | 'right';
163
- /** X position relative to the content area. */
164
- x: number;
165
- /** Y position relative to the content area. */
166
- y: number;
167
- width: number;
168
- height: number;
169
- distTop: number;
170
- distBottom: number;
171
- distLeft: number;
172
- distRight: number;
173
- wrapText?: WrapTextDirection;
174
- wrapType?: string;
175
- }
176
- interface FloatingImageZone {
177
- leftMargin: number;
178
- rightMargin: number;
179
- topY: number;
180
- bottomY: number;
181
- segments?: FloatingLineSegmentZone[];
182
- /**
183
- * Full-width vertical band (OOXML `topAndBottom` wrap): no text fits beside
184
- * it, so any line overlapping `[topY, bottomY]` is pushed below the band.
185
- */
186
- fullWidthBlock?: boolean;
187
- }
188
- interface FloatingLineSegmentZone {
189
- leftOffset: number;
190
- availableWidth: number;
191
- }
192
- interface FloatingLineMargins {
193
- leftMargin: number;
194
- rightMargin: number;
195
- segments?: FloatingLineSegmentZone[];
196
- }
197
- declare function rectsToFloatingZones(rects: FloatingExclusionRect[], contentWidth: number): FloatingImageZone[];
198
- declare function getFloatingMargins(lineY: number, lineHeight: number, zones: FloatingImageZone[] | undefined, paragraphYOffset: number): FloatingLineMargins;
199
-
200
162
  /**
201
163
  * Paragraph measurement module
202
164
  *
@@ -254,58 +216,6 @@ declare function measureParagraphs(blocks: ParagraphBlock[], maxWidth: number):
254
216
  */
255
217
  declare function getRunCharWidths(run: TextRun): number[];
256
218
 
257
- /**
258
- * Floating-aware block measurement pipeline.
259
- *
260
- * Pre-scans a block list to extract exclusion zones from anchored images,
261
- * floating tables, and floating text boxes; groups co-located floats so
262
- * their combined exclusion applies starting from the earliest anchor; then
263
- * walks the blocks calling the caller-supplied `measureBlock` with the
264
- * active zones and cumulative Y at each step.
265
- *
266
- * Adapters (React, Vue) provide their own `measureBlock` so they can
267
- * decide e.g. whether to cache paragraph measures. The orchestration,
268
- * extraction, and grouping live here so both adapters stay in lockstep.
269
- *
270
- * @packageDocumentation
271
- * @public
272
- */
273
-
274
- /**
275
- * Block-measurement callback shape passed to {@link measureBlocksWithFloats}.
276
- * Adapters (React, Vue) supply this so they can decide platform-specific
277
- * concerns (e.g. paragraph-measure caching, per-section width) while
278
- * sharing the floating-zone orchestration. This is adapter-author API,
279
- * not end-consumer API.
280
- *
281
- * @public
282
- */
283
- type MeasureBlockFn = (block: FlowBlock, contentWidth: number, floatingZones?: FloatingImageZone[], cumulativeY?: number) => Measure;
284
- /**
285
- * Page geometry (CSS px) used to resolve page/margin-relative anchored objects
286
- * into content-area coordinates — currently the vertical anchor of a top-pinned
287
- * `topAndBottom` band. Same shape the painter uses (see `pageGeometryFromPage`),
288
- * so both paths resolve to identical positions.
289
- *
290
- * @public
291
- */
292
- type FloatPageGeometry = PageGeometry;
293
- /**
294
- * Walk `blocks` and produce one `Measure` per block. Before measuring, this
295
- * extracts floating exclusion zones (images / floating tables / floating
296
- * textboxes), groups overlapping co-located floats, and threads the active
297
- * zones plus cumulative Y into each `measureBlock` call.
298
- *
299
- * Pass `pageGeometry` whenever the document may contain page/margin-anchored
300
- * `topAndBottom` text boxes (e.g. a title banner pinned to the page top):
301
- * without it their reserved band falls back to flow-relative Y and the band
302
- * won't line up with where the painter places the box. Build it with the
303
- * shared `pageGeometryFromPage` helper.
304
- *
305
- * @public
306
- */
307
- declare function measureBlocksWithFloats(blocks: FlowBlock[], contentWidth: number | number[], measureBlock: MeasureBlockFn, pageGeometry?: FloatPageGeometry): Measure[];
308
-
309
219
  /**
310
220
  * Measurement Cache
311
221
  *
@@ -396,4 +306,4 @@ declare function clearAllCaches(): void;
396
306
  */
397
307
  declare function getTotalCacheSize(): number;
398
308
 
399
- export { type FloatPageGeometry, type FloatingExclusionRect, type FloatingImageZone, type FloatingLineSegmentZone, type FontMetrics, type FontStyle, type MeasureBlockFn, type MeasureParagraphOptions, type RunMeasurement, type TextMeasurement, buildFontString, clampFloatingWrapMargins, clearAllCaches, clearFontMetricsCache, clearParagraphMeasureCache, clearTextWidthCache, findCharacterAtX, getCachedFontMetrics, getCachedParagraphMeasure, getCachedTextWidth, getCanvasContext, getFloatingMargins, getFontCacheSize, getFontMetrics, getParagraphCacheSize, getRunCharWidths, getTextCacheSize, getTotalCacheSize, getXForCharacter, halfPtToPx, hashParagraphBlock, measureBlocksWithFloats, measureParagraph, measureParagraphs, measureRun, measureText, measureTextWidth, ptToPx, pxToHalfPt, pxToPt, pxToTwips, rectsToFloatingZones, resetCanvasContext, setCachedFontMetrics, setCachedParagraphMeasure, setCachedTextWidth, setFontCacheSize, setParagraphCacheSize, setTextCacheSize, twipsToPx };
309
+ export { FloatingImageZone, type FontMetrics, type FontStyle, type MeasureParagraphOptions, type RunMeasurement, type TextMeasurement, buildFontString, clampFloatingWrapMargins, clearAllCaches, clearFontMetricsCache, clearParagraphMeasureCache, clearTextWidthCache, findCharacterAtX, getCachedFontMetrics, getCachedParagraphMeasure, getCachedTextWidth, getCanvasContext, getFontCacheSize, getFontMetrics, getParagraphCacheSize, getRunCharWidths, getTextCacheSize, getTotalCacheSize, getXForCharacter, halfPtToPx, hashParagraphBlock, measureParagraph, measureParagraphs, measureRun, measureText, measureTextWidth, ptToPx, pxToHalfPt, pxToPt, pxToTwips, resetCanvasContext, setCachedFontMetrics, setCachedParagraphMeasure, setCachedTextWidth, setFontCacheSize, setParagraphCacheSize, setTextCacheSize, twipsToPx };
@@ -1 +1 @@
1
- 'use strict';var chunkTURYWKNS_js=require('../../chunk-TURYWKNS.js'),chunkT4RYVPAB_js=require('../../chunk-T4RYVPAB.js');require('../../chunk-IMKU4O3P.js'),require('../../chunk-DROCYKAR.js'),require('../../chunk-FIGLFSNR.js'),require('../../chunk-JFZIXFRC.js'),require('../../chunk-3R7QHNI5.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"clearAllCaches",{enumerable:true,get:function(){return chunkTURYWKNS_js.B}});Object.defineProperty(exports,"clearFontMetricsCache",{enumerable:true,get:function(){return chunkTURYWKNS_js.s}});Object.defineProperty(exports,"clearParagraphMeasureCache",{enumerable:true,get:function(){return chunkTURYWKNS_js.y}});Object.defineProperty(exports,"clearTextWidthCache",{enumerable:true,get:function(){return chunkTURYWKNS_js.n}});Object.defineProperty(exports,"getCachedFontMetrics",{enumerable:true,get:function(){return chunkTURYWKNS_js.q}});Object.defineProperty(exports,"getCachedParagraphMeasure",{enumerable:true,get:function(){return chunkTURYWKNS_js.w}});Object.defineProperty(exports,"getCachedTextWidth",{enumerable:true,get:function(){return chunkTURYWKNS_js.l}});Object.defineProperty(exports,"getFontCacheSize",{enumerable:true,get:function(){return chunkTURYWKNS_js.u}});Object.defineProperty(exports,"getParagraphCacheSize",{enumerable:true,get:function(){return chunkTURYWKNS_js.A}});Object.defineProperty(exports,"getTextCacheSize",{enumerable:true,get:function(){return chunkTURYWKNS_js.p}});Object.defineProperty(exports,"getTotalCacheSize",{enumerable:true,get:function(){return chunkTURYWKNS_js.C}});Object.defineProperty(exports,"hashParagraphBlock",{enumerable:true,get:function(){return chunkTURYWKNS_js.v}});Object.defineProperty(exports,"measureBlocksWithFloats",{enumerable:true,get:function(){return chunkTURYWKNS_js.k}});Object.defineProperty(exports,"setCachedFontMetrics",{enumerable:true,get:function(){return chunkTURYWKNS_js.r}});Object.defineProperty(exports,"setCachedParagraphMeasure",{enumerable:true,get:function(){return chunkTURYWKNS_js.x}});Object.defineProperty(exports,"setCachedTextWidth",{enumerable:true,get:function(){return chunkTURYWKNS_js.m}});Object.defineProperty(exports,"setFontCacheSize",{enumerable:true,get:function(){return chunkTURYWKNS_js.t}});Object.defineProperty(exports,"setParagraphCacheSize",{enumerable:true,get:function(){return chunkTURYWKNS_js.z}});Object.defineProperty(exports,"setTextCacheSize",{enumerable:true,get:function(){return chunkTURYWKNS_js.o}});Object.defineProperty(exports,"buildFontString",{enumerable:true,get:function(){return chunkT4RYVPAB_js.g}});Object.defineProperty(exports,"clampFloatingWrapMargins",{enumerable:true,get:function(){return chunkT4RYVPAB_js.y}});Object.defineProperty(exports,"findCharacterAtX",{enumerable:true,get:function(){return chunkT4RYVPAB_js.l}});Object.defineProperty(exports,"getCanvasContext",{enumerable:true,get:function(){return chunkT4RYVPAB_js.e}});Object.defineProperty(exports,"getFloatingMargins",{enumerable:true,get:function(){return chunkT4RYVPAB_js.u}});Object.defineProperty(exports,"getFontMetrics",{enumerable:true,get:function(){return chunkT4RYVPAB_js.h}});Object.defineProperty(exports,"getRunCharWidths",{enumerable:true,get:function(){return chunkT4RYVPAB_js.B}});Object.defineProperty(exports,"getXForCharacter",{enumerable:true,get:function(){return chunkT4RYVPAB_js.m}});Object.defineProperty(exports,"halfPtToPx",{enumerable:true,get:function(){return chunkT4RYVPAB_js.r}});Object.defineProperty(exports,"measureParagraph",{enumerable:true,get:function(){return chunkT4RYVPAB_js.z}});Object.defineProperty(exports,"measureParagraphs",{enumerable:true,get:function(){return chunkT4RYVPAB_js.A}});Object.defineProperty(exports,"measureRun",{enumerable:true,get:function(){return chunkT4RYVPAB_js.k}});Object.defineProperty(exports,"measureText",{enumerable:true,get:function(){return chunkT4RYVPAB_js.j}});Object.defineProperty(exports,"measureTextWidth",{enumerable:true,get:function(){return chunkT4RYVPAB_js.i}});Object.defineProperty(exports,"ptToPx",{enumerable:true,get:function(){return chunkT4RYVPAB_js.p}});Object.defineProperty(exports,"pxToHalfPt",{enumerable:true,get:function(){return chunkT4RYVPAB_js.s}});Object.defineProperty(exports,"pxToPt",{enumerable:true,get:function(){return chunkT4RYVPAB_js.q}});Object.defineProperty(exports,"pxToTwips",{enumerable:true,get:function(){return chunkT4RYVPAB_js.o}});Object.defineProperty(exports,"rectsToFloatingZones",{enumerable:true,get:function(){return chunkT4RYVPAB_js.t}});Object.defineProperty(exports,"resetCanvasContext",{enumerable:true,get:function(){return chunkT4RYVPAB_js.f}});Object.defineProperty(exports,"twipsToPx",{enumerable:true,get:function(){return chunkT4RYVPAB_js.n}});
1
+ 'use strict';var chunkJ3YFJDZD_js=require('../../chunk-J3YFJDZD.js'),chunkRSU4HTC6_js=require('../../chunk-RSU4HTC6.js');require('../../chunk-IMKU4O3P.js'),require('../../chunk-DROCYKAR.js'),require('../../chunk-FIGLFSNR.js'),require('../../chunk-JFZIXFRC.js'),require('../../chunk-3R7QHNI5.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"clearAllCaches",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.B}});Object.defineProperty(exports,"clearFontMetricsCache",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.s}});Object.defineProperty(exports,"clearParagraphMeasureCache",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.y}});Object.defineProperty(exports,"clearTextWidthCache",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.n}});Object.defineProperty(exports,"getCachedFontMetrics",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.q}});Object.defineProperty(exports,"getCachedParagraphMeasure",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.w}});Object.defineProperty(exports,"getCachedTextWidth",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.l}});Object.defineProperty(exports,"getFontCacheSize",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.u}});Object.defineProperty(exports,"getParagraphCacheSize",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.A}});Object.defineProperty(exports,"getTextCacheSize",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.p}});Object.defineProperty(exports,"getTotalCacheSize",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.C}});Object.defineProperty(exports,"hashParagraphBlock",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.v}});Object.defineProperty(exports,"measureBlocksWithFloats",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.k}});Object.defineProperty(exports,"setCachedFontMetrics",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.r}});Object.defineProperty(exports,"setCachedParagraphMeasure",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.x}});Object.defineProperty(exports,"setCachedTextWidth",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.m}});Object.defineProperty(exports,"setFontCacheSize",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.t}});Object.defineProperty(exports,"setParagraphCacheSize",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.z}});Object.defineProperty(exports,"setTextCacheSize",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.o}});Object.defineProperty(exports,"buildFontString",{enumerable:true,get:function(){return chunkRSU4HTC6_js.g}});Object.defineProperty(exports,"clampFloatingWrapMargins",{enumerable:true,get:function(){return chunkRSU4HTC6_js.y}});Object.defineProperty(exports,"findCharacterAtX",{enumerable:true,get:function(){return chunkRSU4HTC6_js.l}});Object.defineProperty(exports,"getCanvasContext",{enumerable:true,get:function(){return chunkRSU4HTC6_js.e}});Object.defineProperty(exports,"getFloatingMargins",{enumerable:true,get:function(){return chunkRSU4HTC6_js.u}});Object.defineProperty(exports,"getFontMetrics",{enumerable:true,get:function(){return chunkRSU4HTC6_js.h}});Object.defineProperty(exports,"getRunCharWidths",{enumerable:true,get:function(){return chunkRSU4HTC6_js.B}});Object.defineProperty(exports,"getXForCharacter",{enumerable:true,get:function(){return chunkRSU4HTC6_js.m}});Object.defineProperty(exports,"halfPtToPx",{enumerable:true,get:function(){return chunkRSU4HTC6_js.r}});Object.defineProperty(exports,"measureParagraph",{enumerable:true,get:function(){return chunkRSU4HTC6_js.z}});Object.defineProperty(exports,"measureParagraphs",{enumerable:true,get:function(){return chunkRSU4HTC6_js.A}});Object.defineProperty(exports,"measureRun",{enumerable:true,get:function(){return chunkRSU4HTC6_js.k}});Object.defineProperty(exports,"measureText",{enumerable:true,get:function(){return chunkRSU4HTC6_js.j}});Object.defineProperty(exports,"measureTextWidth",{enumerable:true,get:function(){return chunkRSU4HTC6_js.i}});Object.defineProperty(exports,"ptToPx",{enumerable:true,get:function(){return chunkRSU4HTC6_js.p}});Object.defineProperty(exports,"pxToHalfPt",{enumerable:true,get:function(){return chunkRSU4HTC6_js.s}});Object.defineProperty(exports,"pxToPt",{enumerable:true,get:function(){return chunkRSU4HTC6_js.q}});Object.defineProperty(exports,"pxToTwips",{enumerable:true,get:function(){return chunkRSU4HTC6_js.o}});Object.defineProperty(exports,"rectsToFloatingZones",{enumerable:true,get:function(){return chunkRSU4HTC6_js.t}});Object.defineProperty(exports,"resetCanvasContext",{enumerable:true,get:function(){return chunkRSU4HTC6_js.f}});Object.defineProperty(exports,"twipsToPx",{enumerable:true,get:function(){return chunkRSU4HTC6_js.n}});
@@ -1 +1 @@
1
- export{B as clearAllCaches,s as clearFontMetricsCache,y as clearParagraphMeasureCache,n as clearTextWidthCache,q as getCachedFontMetrics,w as getCachedParagraphMeasure,l as getCachedTextWidth,u as getFontCacheSize,A as getParagraphCacheSize,p as getTextCacheSize,C as getTotalCacheSize,v as hashParagraphBlock,k as measureBlocksWithFloats,r as setCachedFontMetrics,x as setCachedParagraphMeasure,m as setCachedTextWidth,t as setFontCacheSize,z as setParagraphCacheSize,o as setTextCacheSize}from'../../chunk-Q5B5GKXD.mjs';export{g as buildFontString,y as clampFloatingWrapMargins,l as findCharacterAtX,e as getCanvasContext,u as getFloatingMargins,h as getFontMetrics,B as getRunCharWidths,m as getXForCharacter,r as halfPtToPx,z as measureParagraph,A as measureParagraphs,k as measureRun,j as measureText,i as measureTextWidth,p as ptToPx,s as pxToHalfPt,q as pxToPt,o as pxToTwips,t as rectsToFloatingZones,f as resetCanvasContext,n as twipsToPx}from'../../chunk-72KLR6TJ.mjs';import'../../chunk-FCJWLEKT.mjs';import'../../chunk-7E5VBRDL.mjs';import'../../chunk-MOCGHQ4A.mjs';import'../../chunk-QPFJJPIC.mjs';import'../../chunk-3ANZ3252.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';
1
+ export{B as clearAllCaches,s as clearFontMetricsCache,y as clearParagraphMeasureCache,n as clearTextWidthCache,q as getCachedFontMetrics,w as getCachedParagraphMeasure,l as getCachedTextWidth,u as getFontCacheSize,A as getParagraphCacheSize,p as getTextCacheSize,C as getTotalCacheSize,v as hashParagraphBlock,k as measureBlocksWithFloats,r as setCachedFontMetrics,x as setCachedParagraphMeasure,m as setCachedTextWidth,t as setFontCacheSize,z as setParagraphCacheSize,o as setTextCacheSize}from'../../chunk-55XWETY4.mjs';export{g as buildFontString,y as clampFloatingWrapMargins,l as findCharacterAtX,e as getCanvasContext,u as getFloatingMargins,h as getFontMetrics,B as getRunCharWidths,m as getXForCharacter,r as halfPtToPx,z as measureParagraph,A as measureParagraphs,k as measureRun,j as measureText,i as measureTextWidth,p as ptToPx,s as pxToHalfPt,q as pxToPt,o as pxToTwips,t as rectsToFloatingZones,f as resetCanvasContext,n as twipsToPx}from'../../chunk-JHTURDPX.mjs';import'../../chunk-FCJWLEKT.mjs';import'../../chunk-7E5VBRDL.mjs';import'../../chunk-MOCGHQ4A.mjs';import'../../chunk-QPFJJPIC.mjs';import'../../chunk-3ANZ3252.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';
@@ -1 +1 @@
1
- 'use strict';var chunkTJRROR6U_js=require('../chunk-TJRROR6U.js');require('../chunk-WDBZ3QVB.js'),require('../chunk-FQS436KN.js'),require('../chunk-TURYWKNS.js'),require('../chunk-T4RYVPAB.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-BUCOTKYY.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-WWBNJ7KF.js'),require('../chunk-4RTVLMRZ.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-WVERBZZU.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-TUIEV7Q7.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"TABLE_INSERT_EDGE_PROXIMITY",{enumerable:true,get:function(){return chunkTJRROR6U_js.a}});Object.defineProperty(exports,"TABLE_INSERT_HIDE_DELAY_MS",{enumerable:true,get:function(){return chunkTJRROR6U_js.b}});Object.defineProperty(exports,"detectTableInsertHover",{enumerable:true,get:function(){return chunkTJRROR6U_js.c}});
1
+ 'use strict';var chunkZAZWHK4J_js=require('../chunk-ZAZWHK4J.js');require('../chunk-PFMM7QON.js'),require('../chunk-YPQACU4A.js'),require('../chunk-J3YFJDZD.js'),require('../chunk-RSU4HTC6.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-QVRNNRG5.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-WWBNJ7KF.js'),require('../chunk-4RTVLMRZ.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-WVERBZZU.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-TUIEV7Q7.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"TABLE_INSERT_EDGE_PROXIMITY",{enumerable:true,get:function(){return chunkZAZWHK4J_js.a}});Object.defineProperty(exports,"TABLE_INSERT_HIDE_DELAY_MS",{enumerable:true,get:function(){return chunkZAZWHK4J_js.b}});Object.defineProperty(exports,"detectTableInsertHover",{enumerable:true,get:function(){return chunkZAZWHK4J_js.c}});
@@ -1 +1 @@
1
- export{a as TABLE_INSERT_EDGE_PROXIMITY,b as TABLE_INSERT_HIDE_DELAY_MS,c as detectTableInsertHover}from'../chunk-L6YTCHOQ.mjs';import'../chunk-7JQVKJRN.mjs';import'../chunk-B46V5G46.mjs';import'../chunk-Q5B5GKXD.mjs';import'../chunk-72KLR6TJ.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-IUVQJ6PX.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-4GFTMGSV.mjs';import'../chunk-SWBLJF6R.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-U67MWOPZ.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-ZX26QZJ5.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{a as TABLE_INSERT_EDGE_PROXIMITY,b as TABLE_INSERT_HIDE_DELAY_MS,c as detectTableInsertHover}from'../chunk-UEPLDKKM.mjs';import'../chunk-KKXCBWVG.mjs';import'../chunk-HKN2NKOG.mjs';import'../chunk-55XWETY4.mjs';import'../chunk-JHTURDPX.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-LJE7HQEJ.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-4GFTMGSV.mjs';import'../chunk-SWBLJF6R.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-U67MWOPZ.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-ZX26QZJ5.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -1 +1 @@
1
- 'use strict';var chunkFQS436KN_js=require('../chunk-FQS436KN.js'),chunkIMKU4O3P_js=require('../chunk-IMKU4O3P.js');require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"convertBorderSpecToLayout",{enumerable:true,get:function(){return chunkFQS436KN_js.a}});Object.defineProperty(exports,"resolveListTemplate",{enumerable:true,get:function(){return chunkFQS436KN_js.b}});Object.defineProperty(exports,"toFlowBlocks",{enumerable:true,get:function(){return chunkFQS436KN_js.c}});Object.defineProperty(exports,"resetBlockIdCounter",{enumerable:true,get:function(){return chunkIMKU4O3P_js.d}});
1
+ 'use strict';var chunkYPQACU4A_js=require('../chunk-YPQACU4A.js'),chunkIMKU4O3P_js=require('../chunk-IMKU4O3P.js');require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"convertBorderSpecToLayout",{enumerable:true,get:function(){return chunkYPQACU4A_js.a}});Object.defineProperty(exports,"resolveListTemplate",{enumerable:true,get:function(){return chunkYPQACU4A_js.b}});Object.defineProperty(exports,"toFlowBlocks",{enumerable:true,get:function(){return chunkYPQACU4A_js.c}});Object.defineProperty(exports,"resetBlockIdCounter",{enumerable:true,get:function(){return chunkIMKU4O3P_js.d}});
@@ -1 +1 @@
1
- export{a as convertBorderSpecToLayout,b as resolveListTemplate,c as toFlowBlocks}from'../chunk-B46V5G46.mjs';export{d as resetBlockIdCounter}from'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{a as convertBorderSpecToLayout,b as resolveListTemplate,c as toFlowBlocks}from'../chunk-HKN2NKOG.mjs';export{d as resetBlockIdCounter}from'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -1 +1 @@
1
- 'use strict';var chunkT4RYVPAB_js=require('../chunk-T4RYVPAB.js');require('../chunk-IMKU4O3P.js');var chunkDROCYKAR_js=require('../chunk-DROCYKAR.js');require('../chunk-FIGLFSNR.js');var chunkJFZIXFRC_js=require('../chunk-JFZIXFRC.js');require('../chunk-3R7QHNI5.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"applyPendingToActive",{enumerable:true,get:function(){return chunkT4RYVPAB_js.O}});Object.defineProperty(exports,"calculateChainHeight",{enumerable:true,get:function(){return chunkT4RYVPAB_js.E}});Object.defineProperty(exports,"collectSectionConfigs",{enumerable:true,get:function(){return chunkT4RYVPAB_js.T}});Object.defineProperty(exports,"computeKeepNextChains",{enumerable:true,get:function(){return chunkT4RYVPAB_js.D}});Object.defineProperty(exports,"createInitialSectionState",{enumerable:true,get:function(){return chunkT4RYVPAB_js.M}});Object.defineProperty(exports,"createPaginator",{enumerable:true,get:function(){return chunkT4RYVPAB_js.C}});Object.defineProperty(exports,"findPageIndexContainingPmPos",{enumerable:true,get:function(){return chunkT4RYVPAB_js.S}});Object.defineProperty(exports,"floatingTextBoxReservesBand",{enumerable:true,get:function(){return chunkT4RYVPAB_js.J}});Object.defineProperty(exports,"floatingTextBoxWrapsText",{enumerable:true,get:function(){return chunkT4RYVPAB_js.K}});Object.defineProperty(exports,"getEffectiveColumns",{enumerable:true,get:function(){return chunkT4RYVPAB_js.R}});Object.defineProperty(exports,"getEffectiveMargins",{enumerable:true,get:function(){return chunkT4RYVPAB_js.P}});Object.defineProperty(exports,"getEffectivePageSize",{enumerable:true,get:function(){return chunkT4RYVPAB_js.Q}});Object.defineProperty(exports,"getHeaderRowsHeight",{enumerable:true,get:function(){return chunkT4RYVPAB_js.V}});Object.defineProperty(exports,"getMidChainIndices",{enumerable:true,get:function(){return chunkT4RYVPAB_js.F}});Object.defineProperty(exports,"hasKeepLines",{enumerable:true,get:function(){return chunkT4RYVPAB_js.G}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunkT4RYVPAB_js.H}});Object.defineProperty(exports,"isFloatingTextBoxBlock",{enumerable:true,get:function(){return chunkT4RYVPAB_js.I}});Object.defineProperty(exports,"layoutDocument",{enumerable:true,get:function(){return chunkT4RYVPAB_js.U}});Object.defineProperty(exports,"scheduleSectionBreak",{enumerable:true,get:function(){return chunkT4RYVPAB_js.N}});Object.defineProperty(exports,"DEFAULT_TEXTBOX_MARGINS",{enumerable:true,get:function(){return chunkDROCYKAR_js.a}});Object.defineProperty(exports,"DEFAULT_TEXTBOX_WIDTH",{enumerable:true,get:function(){return chunkDROCYKAR_js.b}});Object.defineProperty(exports,"assertExhaustiveFlowBlock",{enumerable:true,get:function(){return chunkDROCYKAR_js.c}});Object.defineProperty(exports,"isFloatingWrapType",{enumerable:true,get:function(){return chunkJFZIXFRC_js.a}});Object.defineProperty(exports,"isWrapNone",{enumerable:true,get:function(){return chunkJFZIXFRC_js.b}});Object.defineProperty(exports,"wrapsAroundText",{enumerable:true,get:function(){return chunkJFZIXFRC_js.c}});
1
+ 'use strict';var chunkRSU4HTC6_js=require('../chunk-RSU4HTC6.js');require('../chunk-IMKU4O3P.js');var chunkDROCYKAR_js=require('../chunk-DROCYKAR.js');require('../chunk-FIGLFSNR.js');var chunkJFZIXFRC_js=require('../chunk-JFZIXFRC.js');require('../chunk-3R7QHNI5.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"applyPendingToActive",{enumerable:true,get:function(){return chunkRSU4HTC6_js.O}});Object.defineProperty(exports,"calculateChainHeight",{enumerable:true,get:function(){return chunkRSU4HTC6_js.E}});Object.defineProperty(exports,"collectSectionConfigs",{enumerable:true,get:function(){return chunkRSU4HTC6_js.T}});Object.defineProperty(exports,"computeKeepNextChains",{enumerable:true,get:function(){return chunkRSU4HTC6_js.D}});Object.defineProperty(exports,"createInitialSectionState",{enumerable:true,get:function(){return chunkRSU4HTC6_js.M}});Object.defineProperty(exports,"createPaginator",{enumerable:true,get:function(){return chunkRSU4HTC6_js.C}});Object.defineProperty(exports,"findPageIndexContainingPmPos",{enumerable:true,get:function(){return chunkRSU4HTC6_js.S}});Object.defineProperty(exports,"floatingTextBoxReservesBand",{enumerable:true,get:function(){return chunkRSU4HTC6_js.J}});Object.defineProperty(exports,"floatingTextBoxWrapsText",{enumerable:true,get:function(){return chunkRSU4HTC6_js.K}});Object.defineProperty(exports,"getEffectiveColumns",{enumerable:true,get:function(){return chunkRSU4HTC6_js.R}});Object.defineProperty(exports,"getEffectiveMargins",{enumerable:true,get:function(){return chunkRSU4HTC6_js.P}});Object.defineProperty(exports,"getEffectivePageSize",{enumerable:true,get:function(){return chunkRSU4HTC6_js.Q}});Object.defineProperty(exports,"getHeaderRowsHeight",{enumerable:true,get:function(){return chunkRSU4HTC6_js.V}});Object.defineProperty(exports,"getMidChainIndices",{enumerable:true,get:function(){return chunkRSU4HTC6_js.F}});Object.defineProperty(exports,"hasKeepLines",{enumerable:true,get:function(){return chunkRSU4HTC6_js.G}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunkRSU4HTC6_js.H}});Object.defineProperty(exports,"isFloatingTextBoxBlock",{enumerable:true,get:function(){return chunkRSU4HTC6_js.I}});Object.defineProperty(exports,"layoutDocument",{enumerable:true,get:function(){return chunkRSU4HTC6_js.U}});Object.defineProperty(exports,"scheduleSectionBreak",{enumerable:true,get:function(){return chunkRSU4HTC6_js.N}});Object.defineProperty(exports,"DEFAULT_TEXTBOX_MARGINS",{enumerable:true,get:function(){return chunkDROCYKAR_js.a}});Object.defineProperty(exports,"DEFAULT_TEXTBOX_WIDTH",{enumerable:true,get:function(){return chunkDROCYKAR_js.b}});Object.defineProperty(exports,"assertExhaustiveFlowBlock",{enumerable:true,get:function(){return chunkDROCYKAR_js.c}});Object.defineProperty(exports,"isFloatingWrapType",{enumerable:true,get:function(){return chunkJFZIXFRC_js.a}});Object.defineProperty(exports,"isWrapNone",{enumerable:true,get:function(){return chunkJFZIXFRC_js.b}});Object.defineProperty(exports,"wrapsAroundText",{enumerable:true,get:function(){return chunkJFZIXFRC_js.c}});
@@ -1 +1 @@
1
- export{O as applyPendingToActive,E as calculateChainHeight,T as collectSectionConfigs,D as computeKeepNextChains,M as createInitialSectionState,C as createPaginator,S as findPageIndexContainingPmPos,J as floatingTextBoxReservesBand,K as floatingTextBoxWrapsText,R as getEffectiveColumns,P as getEffectiveMargins,Q as getEffectivePageSize,V as getHeaderRowsHeight,F as getMidChainIndices,G as hasKeepLines,H as hasPageBreakBefore,I as isFloatingTextBoxBlock,U as layoutDocument,N as scheduleSectionBreak}from'../chunk-72KLR6TJ.mjs';import'../chunk-FCJWLEKT.mjs';export{a as DEFAULT_TEXTBOX_MARGINS,b as DEFAULT_TEXTBOX_WIDTH,c as assertExhaustiveFlowBlock}from'../chunk-7E5VBRDL.mjs';import'../chunk-MOCGHQ4A.mjs';export{a as isFloatingWrapType,b as isWrapNone,c as wrapsAroundText}from'../chunk-QPFJJPIC.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{O as applyPendingToActive,E as calculateChainHeight,T as collectSectionConfigs,D as computeKeepNextChains,M as createInitialSectionState,C as createPaginator,S as findPageIndexContainingPmPos,J as floatingTextBoxReservesBand,K as floatingTextBoxWrapsText,R as getEffectiveColumns,P as getEffectiveMargins,Q as getEffectivePageSize,V as getHeaderRowsHeight,F as getMidChainIndices,G as hasKeepLines,H as hasPageBreakBefore,I as isFloatingTextBoxBlock,U as layoutDocument,N as scheduleSectionBreak}from'../chunk-JHTURDPX.mjs';import'../chunk-FCJWLEKT.mjs';export{a as DEFAULT_TEXTBOX_MARGINS,b as DEFAULT_TEXTBOX_WIDTH,c as assertExhaustiveFlowBlock}from'../chunk-7E5VBRDL.mjs';import'../chunk-MOCGHQ4A.mjs';export{a as isFloatingWrapType,b as isWrapNone,c as wrapsAroundText}from'../chunk-QPFJJPIC.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -11,9 +11,9 @@
11
11
  * @public
12
12
  */
13
13
  import '../layout-engine/types.mjs';
14
- export { B as BlockLookup, a as BlockLookupEntry, F as FRAGMENT_CLASS_NAMES, I as IMAGE_CLASS_NAMES, b as IMAGE_LAYOUT_OPTIONS, c as ImageHitTestResult, d as ImageLayoutIconHint, e as ImageLayoutOptionDef, L as LAYOUT_IMAGE_CLASSES, f as LayoutPainter, P as PainterOptions, RenderContext, RenderPageOptions, RenderPagesUpdateKind, T as TABLE_CLASS_NAMES, g as TEXTBOX_CLASS_NAMES, h as applySdtFocus, i as captureInlinePositionEmu, j as createPainter, k as deriveLayoutChoice, l as enclosingSdtGroupIds, m as findImageElement, n as hitTestImage, isFloatingImageRun, o as isImageLayoutOptionEnabled, isTextWrappingFloatingImageRun, renderAllPagesNow, r as renderFragment, p as renderImageFragment, q as renderLine, renderPage, renderPages, s as renderParagraphFragment, t as renderTableFragment, u as renderTextBoxFragment, v as sliceRunsForLine, w as toolbarValueToLayoutTarget } from './renderPage.mjs';
14
+ export { B as BlockLookup, a as BlockLookupEntry, F as FRAGMENT_CLASS_NAMES, I as IMAGE_CLASS_NAMES, b as IMAGE_LAYOUT_OPTIONS, c as ImageHitTestResult, d as ImageLayoutIconHint, e as ImageLayoutOptionDef, L as LAYOUT_IMAGE_CLASSES, f as LayoutPainter, P as PainterOptions, RenderContext, RenderPageOptions, RenderPagesUpdateKind, T as TABLE_CLASS_NAMES, g as TEXTBOX_CLASS_NAMES, h as applySdtFocus, i as buildBlockLookup, j as captureInlinePositionEmu, k as createPainter, l as deriveLayoutChoice, m as enclosingSdtGroupIds, n as findImageElement, o as hitTestImage, isFloatingImageRun, p as isImageLayoutOptionEnabled, isTextWrappingFloatingImageRun, renderAllPagesNow, r as renderFragment, q as renderImageFragment, s as renderLine, renderPage, renderPages, t as renderParagraphFragment, u as renderTableFragment, v as renderTextBoxFragment, w as sliceRunsForLine, x as toolbarValueToLayoutTarget } from './renderPage.mjs';
15
15
  export { P as PageGeometry, p as pageGeometryFromPage, r as resolveAnchoredObjectPosition, a as resolveAnchoredObjectVerticalTop } from '../anchoredObjectPosition-KJEyF-wr.mjs';
16
- export { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-BtVc6VFl.mjs';
16
+ export { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-BZ24OTAT.mjs';
17
17
  import '../content-3xF4WDE8.mjs';
18
18
  import '../formatting-BH4hcZiq.mjs';
19
19
  import '../colors-C3vA7HUU.mjs';
@@ -11,9 +11,9 @@
11
11
  * @public
12
12
  */
13
13
  import '../layout-engine/types.js';
14
- export { B as BlockLookup, a as BlockLookupEntry, F as FRAGMENT_CLASS_NAMES, I as IMAGE_CLASS_NAMES, b as IMAGE_LAYOUT_OPTIONS, c as ImageHitTestResult, d as ImageLayoutIconHint, e as ImageLayoutOptionDef, L as LAYOUT_IMAGE_CLASSES, f as LayoutPainter, P as PainterOptions, RenderContext, RenderPageOptions, RenderPagesUpdateKind, T as TABLE_CLASS_NAMES, g as TEXTBOX_CLASS_NAMES, h as applySdtFocus, i as captureInlinePositionEmu, j as createPainter, k as deriveLayoutChoice, l as enclosingSdtGroupIds, m as findImageElement, n as hitTestImage, isFloatingImageRun, o as isImageLayoutOptionEnabled, isTextWrappingFloatingImageRun, renderAllPagesNow, r as renderFragment, p as renderImageFragment, q as renderLine, renderPage, renderPages, s as renderParagraphFragment, t as renderTableFragment, u as renderTextBoxFragment, v as sliceRunsForLine, w as toolbarValueToLayoutTarget } from './renderPage.js';
14
+ export { B as BlockLookup, a as BlockLookupEntry, F as FRAGMENT_CLASS_NAMES, I as IMAGE_CLASS_NAMES, b as IMAGE_LAYOUT_OPTIONS, c as ImageHitTestResult, d as ImageLayoutIconHint, e as ImageLayoutOptionDef, L as LAYOUT_IMAGE_CLASSES, f as LayoutPainter, P as PainterOptions, RenderContext, RenderPageOptions, RenderPagesUpdateKind, T as TABLE_CLASS_NAMES, g as TEXTBOX_CLASS_NAMES, h as applySdtFocus, i as buildBlockLookup, j as captureInlinePositionEmu, k as createPainter, l as deriveLayoutChoice, m as enclosingSdtGroupIds, n as findImageElement, o as hitTestImage, isFloatingImageRun, p as isImageLayoutOptionEnabled, isTextWrappingFloatingImageRun, renderAllPagesNow, r as renderFragment, q as renderImageFragment, s as renderLine, renderPage, renderPages, t as renderParagraphFragment, u as renderTableFragment, v as renderTextBoxFragment, w as sliceRunsForLine, x as toolbarValueToLayoutTarget } from './renderPage.js';
15
15
  export { P as PageGeometry, p as pageGeometryFromPage, r as resolveAnchoredObjectPosition, a as resolveAnchoredObjectVerticalTop } from '../anchoredObjectPosition-CS-8BfhO.js';
16
- export { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-DcUMWXul.js';
16
+ export { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-DMsicPGd.js';
17
17
  import '../content-C8fc_tL6.js';
18
18
  import '../formatting-_OXU8gLB.js';
19
19
  import '../colors-C3vA7HUU.js';
@@ -1 +1 @@
1
- 'use strict';var chunkWDBZ3QVB_js=require('../chunk-WDBZ3QVB.js');require('../chunk-FQS436KN.js');var chunkTURYWKNS_js=require('../chunk-TURYWKNS.js');require('../chunk-T4RYVPAB.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-BUCOTKYY.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-WWBNJ7KF.js'),require('../chunk-4RTVLMRZ.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-WVERBZZU.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-TUIEV7Q7.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js');var chunk4Q2IP5FW_js=require('../chunk-4Q2IP5FW.js');require('../chunk-GSKMHXHG.js');var chunkDC7S76ZX_js=require('../chunk-DC7S76ZX.js');var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function A(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function O(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function N(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let r=n.getBoundingClientRect(),a=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(chunk4Q2IP5FW_js.f((r.left-a.left)/p)),verticalEmu:Math.round(chunk4Q2IP5FW_js.f((r.top-l.top)/p))}}function _(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var w=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function $(n,e){return true}function q(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){chunkDC7S76ZX_js.a(this,"container",null);chunkDC7S76ZX_js.a(this,"blockLookup",new Map);chunkDC7S76ZX_js.a(this,"pageStates",[]);chunkDC7S76ZX_js.a(this,"totalPages",0);chunkDC7S76ZX_js.a(this,"options");chunkDC7S76ZX_js.a(this,"doc");chunkDC7S76ZX_js.a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let r=o[t],a={pageNumber:r.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(r,a);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:r.number,fragmentCount:r.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let r=this.doc.createElement("div");r.className="layout-page-content",r.style.position="absolute",r.style.top=`${e.margins.top}px`,r.style.left=`${e.margins.left}px`,r.style.right=`${e.margins.right}px`,r.style.bottom=`${e.margins.bottom}px`,r.style.overflow="visible";for(let a of e.fragments){let l=this.renderFragmentWithLookup(a,o);this.applyFragmentPosition(l,a),r.appendChild(l);}return t.appendChild(r),t}renderFragmentWithLookup(e,o){let t=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t){let r=t.block,a=t.measure;return chunkWDBZ3QVB_js.t(e,r,a,o,{document:this.doc})}if(e.kind==="table"&&t){let r=t.block,a=t.measure;return chunkWDBZ3QVB_js.w(e,r,a,o,{document:this.doc})}if(e.kind==="image"&&t){let r=t.block,a=t.measure;return chunkWDBZ3QVB_js.q(e,r,a,o,{document:this.doc})}if(e.kind==="textBox"&&t){let r=t.block,a=t.measure;return chunkWDBZ3QVB_js.y(e,r,a,o,{document:this.doc})}return chunkWDBZ3QVB_js.o(e,o,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function X(n){return new c(n)}Object.defineProperty(exports,"FRAGMENT_CLASS_NAMES",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.n}});Object.defineProperty(exports,"IMAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.p}});Object.defineProperty(exports,"TABLE_CLASS_NAMES",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.v}});Object.defineProperty(exports,"TEXTBOX_CLASS_NAMES",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.x}});Object.defineProperty(exports,"applySdtFocus",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.m}});Object.defineProperty(exports,"enclosingSdtGroupIds",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.l}});Object.defineProperty(exports,"renderAllPagesNow",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.C}});Object.defineProperty(exports,"renderFragment",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.o}});Object.defineProperty(exports,"renderImageFragment",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.q}});Object.defineProperty(exports,"renderLine",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.s}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.B}});Object.defineProperty(exports,"renderParagraphFragment",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.t}});Object.defineProperty(exports,"renderTableFragment",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.w}});Object.defineProperty(exports,"renderTextBoxFragment",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.y}});Object.defineProperty(exports,"sliceRunsForLine",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.r}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkTURYWKNS_js.c}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkTURYWKNS_js.d}});Object.defineProperty(exports,"pageGeometryFromPage",{enumerable:true,get:function(){return chunkTURYWKNS_js.f}});Object.defineProperty(exports,"resolveAnchoredObjectPosition",{enumerable:true,get:function(){return chunkTURYWKNS_js.g}});Object.defineProperty(exports,"resolveAnchoredObjectVerticalTop",{enumerable:true,get:function(){return chunkTURYWKNS_js.h}});exports.IMAGE_LAYOUT_OPTIONS=w;exports.LAYOUT_IMAGE_CLASSES=i;exports.LayoutPainter=c;exports.captureInlinePositionEmu=N;exports.createPainter=X;exports.deriveLayoutChoice=_;exports.findImageElement=O;exports.hitTestImage=A;exports.isImageLayoutOptionEnabled=$;exports.toolbarValueToLayoutTarget=q;
1
+ 'use strict';var chunk6WZW3NSJ_js=require('../chunk-6WZW3NSJ.js'),chunkPFMM7QON_js=require('../chunk-PFMM7QON.js');require('../chunk-YPQACU4A.js');var chunkJ3YFJDZD_js=require('../chunk-J3YFJDZD.js');require('../chunk-RSU4HTC6.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-QVRNNRG5.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-WWBNJ7KF.js'),require('../chunk-4RTVLMRZ.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-WVERBZZU.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-TUIEV7Q7.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"IMAGE_LAYOUT_OPTIONS",{enumerable:true,get:function(){return chunk6WZW3NSJ_js.f}});Object.defineProperty(exports,"LAYOUT_IMAGE_CLASSES",{enumerable:true,get:function(){return chunk6WZW3NSJ_js.a}});Object.defineProperty(exports,"LayoutPainter",{enumerable:true,get:function(){return chunk6WZW3NSJ_js.j}});Object.defineProperty(exports,"buildBlockLookup",{enumerable:true,get:function(){return chunk6WZW3NSJ_js.i}});Object.defineProperty(exports,"captureInlinePositionEmu",{enumerable:true,get:function(){return chunk6WZW3NSJ_js.d}});Object.defineProperty(exports,"createPainter",{enumerable:true,get:function(){return chunk6WZW3NSJ_js.k}});Object.defineProperty(exports,"deriveLayoutChoice",{enumerable:true,get:function(){return chunk6WZW3NSJ_js.e}});Object.defineProperty(exports,"findImageElement",{enumerable:true,get:function(){return chunk6WZW3NSJ_js.c}});Object.defineProperty(exports,"hitTestImage",{enumerable:true,get:function(){return chunk6WZW3NSJ_js.b}});Object.defineProperty(exports,"isImageLayoutOptionEnabled",{enumerable:true,get:function(){return chunk6WZW3NSJ_js.g}});Object.defineProperty(exports,"toolbarValueToLayoutTarget",{enumerable:true,get:function(){return chunk6WZW3NSJ_js.h}});Object.defineProperty(exports,"FRAGMENT_CLASS_NAMES",{enumerable:true,get:function(){return chunkPFMM7QON_js.n}});Object.defineProperty(exports,"IMAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkPFMM7QON_js.p}});Object.defineProperty(exports,"TABLE_CLASS_NAMES",{enumerable:true,get:function(){return chunkPFMM7QON_js.v}});Object.defineProperty(exports,"TEXTBOX_CLASS_NAMES",{enumerable:true,get:function(){return chunkPFMM7QON_js.x}});Object.defineProperty(exports,"applySdtFocus",{enumerable:true,get:function(){return chunkPFMM7QON_js.m}});Object.defineProperty(exports,"enclosingSdtGroupIds",{enumerable:true,get:function(){return chunkPFMM7QON_js.l}});Object.defineProperty(exports,"renderAllPagesNow",{enumerable:true,get:function(){return chunkPFMM7QON_js.C}});Object.defineProperty(exports,"renderFragment",{enumerable:true,get:function(){return chunkPFMM7QON_js.o}});Object.defineProperty(exports,"renderImageFragment",{enumerable:true,get:function(){return chunkPFMM7QON_js.q}});Object.defineProperty(exports,"renderLine",{enumerable:true,get:function(){return chunkPFMM7QON_js.s}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkPFMM7QON_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkPFMM7QON_js.B}});Object.defineProperty(exports,"renderParagraphFragment",{enumerable:true,get:function(){return chunkPFMM7QON_js.t}});Object.defineProperty(exports,"renderTableFragment",{enumerable:true,get:function(){return chunkPFMM7QON_js.w}});Object.defineProperty(exports,"renderTextBoxFragment",{enumerable:true,get:function(){return chunkPFMM7QON_js.y}});Object.defineProperty(exports,"sliceRunsForLine",{enumerable:true,get:function(){return chunkPFMM7QON_js.r}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.c}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.d}});Object.defineProperty(exports,"pageGeometryFromPage",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.f}});Object.defineProperty(exports,"resolveAnchoredObjectPosition",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.g}});Object.defineProperty(exports,"resolveAnchoredObjectVerticalTop",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.h}});
@@ -1 +1 @@
1
- import {t,w as w$1,q as q$1,y as y$1,o}from'../chunk-7JQVKJRN.mjs';export{n as FRAGMENT_CLASS_NAMES,p as IMAGE_CLASS_NAMES,v as TABLE_CLASS_NAMES,x as TEXTBOX_CLASS_NAMES,m as applySdtFocus,l as enclosingSdtGroupIds,C as renderAllPagesNow,o as renderFragment,q as renderImageFragment,s as renderLine,F as renderPage,B as renderPages,t as renderParagraphFragment,w as renderTableFragment,y as renderTextBoxFragment,r as sliceRunsForLine}from'../chunk-7JQVKJRN.mjs';import'../chunk-B46V5G46.mjs';export{c as isFloatingImageRun,d as isTextWrappingFloatingImageRun,f as pageGeometryFromPage,g as resolveAnchoredObjectPosition,h as resolveAnchoredObjectVerticalTop}from'../chunk-Q5B5GKXD.mjs';import'../chunk-72KLR6TJ.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-IUVQJ6PX.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-4GFTMGSV.mjs';import'../chunk-SWBLJF6R.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-U67MWOPZ.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-ZX26QZJ5.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import {f}from'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import {a}from'../chunk-QYUPLKLP.mjs';var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function A(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function O(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function N(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let r=n.getBoundingClientRect(),a=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(f((r.left-a.left)/p)),verticalEmu:Math.round(f((r.top-l.top)/p))}}function _(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var w=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function $(n,e){return true}function q(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){a(this,"container",null);a(this,"blockLookup",new Map);a(this,"pageStates",[]);a(this,"totalPages",0);a(this,"options");a(this,"doc");a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let r=o[t],a={pageNumber:r.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(r,a);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:r.number,fragmentCount:r.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let r=this.doc.createElement("div");r.className="layout-page-content",r.style.position="absolute",r.style.top=`${e.margins.top}px`,r.style.left=`${e.margins.left}px`,r.style.right=`${e.margins.right}px`,r.style.bottom=`${e.margins.bottom}px`,r.style.overflow="visible";for(let a of e.fragments){let l=this.renderFragmentWithLookup(a,o);this.applyFragmentPosition(l,a),r.appendChild(l);}return t.appendChild(r),t}renderFragmentWithLookup(e,o$1){let t$1=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t$1){let r=t$1.block,a=t$1.measure;return t(e,r,a,o$1,{document:this.doc})}if(e.kind==="table"&&t$1){let r=t$1.block,a=t$1.measure;return w$1(e,r,a,o$1,{document:this.doc})}if(e.kind==="image"&&t$1){let r=t$1.block,a=t$1.measure;return q$1(e,r,a,o$1,{document:this.doc})}if(e.kind==="textBox"&&t$1){let r=t$1.block,a=t$1.measure;return y$1(e,r,a,o$1,{document:this.doc})}return o(e,o$1,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function X(n){return new c(n)}export{w as IMAGE_LAYOUT_OPTIONS,i as LAYOUT_IMAGE_CLASSES,c as LayoutPainter,N as captureInlinePositionEmu,X as createPainter,_ as deriveLayoutChoice,O as findImageElement,A as hitTestImage,$ as isImageLayoutOptionEnabled,q as toolbarValueToLayoutTarget};
1
+ export{f as IMAGE_LAYOUT_OPTIONS,a as LAYOUT_IMAGE_CLASSES,j as LayoutPainter,i as buildBlockLookup,d as captureInlinePositionEmu,k as createPainter,e as deriveLayoutChoice,c as findImageElement,b as hitTestImage,g as isImageLayoutOptionEnabled,h as toolbarValueToLayoutTarget}from'../chunk-PMSGJXOE.mjs';export{n as FRAGMENT_CLASS_NAMES,p as IMAGE_CLASS_NAMES,v as TABLE_CLASS_NAMES,x as TEXTBOX_CLASS_NAMES,m as applySdtFocus,l as enclosingSdtGroupIds,C as renderAllPagesNow,o as renderFragment,q as renderImageFragment,s as renderLine,F as renderPage,B as renderPages,t as renderParagraphFragment,w as renderTableFragment,y as renderTextBoxFragment,r as sliceRunsForLine}from'../chunk-KKXCBWVG.mjs';import'../chunk-HKN2NKOG.mjs';export{c as isFloatingImageRun,d as isTextWrappingFloatingImageRun,f as pageGeometryFromPage,g as resolveAnchoredObjectPosition,h as resolveAnchoredObjectVerticalTop}from'../chunk-55XWETY4.mjs';import'../chunk-JHTURDPX.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-LJE7HQEJ.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-4GFTMGSV.mjs';import'../chunk-SWBLJF6R.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-U67MWOPZ.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-ZX26QZJ5.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -18,8 +18,8 @@ import { Node } from 'prosemirror-model';
18
18
  import { I as ImageAttrs } from '../nodes-cEI7hVY2.mjs';
19
19
  import { I as ImageLayoutTarget } from '../ImageExtension-BN327PNe.mjs';
20
20
  import { WrapType } from '../docx/wrapTypes.mjs';
21
- import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-BtVc6VFl.mjs';
22
- export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatLeft, b as resolveHeaderFooterFloatingTablePosition } from '../footnotes-BtVc6VFl.mjs';
21
+ import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-BZ24OTAT.mjs';
22
+ export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatLeft, b as resolveHeaderFooterFloatingTablePosition } from '../footnotes-BZ24OTAT.mjs';
23
23
  import { B as BorderSpec } from '../colors-C3vA7HUU.mjs';
24
24
  import { W as Watermark } from '../watermark-DAcnAs_J.mjs';
25
25
  import { T as Theme } from '../styles-BOJ93SAm.mjs';
@@ -638,6 +638,11 @@ interface BlockLookupEntry {
638
638
  * Block lookup map type
639
639
  */
640
640
  type BlockLookup = Map<string, BlockLookupEntry>;
641
+ /**
642
+ * Build the painter's `block.id → { block, measure }` lookup from the parallel
643
+ * blocks/measures arrays. Shared by both adapters' paint step.
644
+ */
645
+ declare function buildBlockLookup(blocks: FlowBlock[], measures: Measure[]): BlockLookup;
641
646
  /**
642
647
  * Painter options
643
648
  */
@@ -718,4 +723,4 @@ declare class LayoutPainter {
718
723
  */
719
724
  declare function createPainter(options?: PainterOptions): LayoutPainter;
720
725
 
721
- export { type BlockLookup as B, FRAGMENT_CLASS_NAMES as F, type FloatingImagePaintRecord, type FloatingImagesLayerOptions, FootnoteRenderItem, HeaderFooterContent, IMAGE_CLASS_NAMES as I, LAYOUT_IMAGE_CLASSES as L, type PainterOptions as P, PAGE_CLASS_NAMES, type RenderContext, type RenderPageOptions, type RenderPagesUpdateKind, TABLE_CLASS_NAMES as T, type BlockLookupEntry as a, applyPageStyles, IMAGE_LAYOUT_OPTIONS as b, type ImageHitTestResult as c, type ImageLayoutIconHint as d, type ImageLayoutOptionDef as e, LayoutPainter as f, floatingImageIsBehindDoc, floatingImageWrapsText, TEXTBOX_CLASS_NAMES as g, applySdtFocus as h, captureInlinePositionEmu as i, isFloatingImageRun, isTextWrappingFloatingImageRun, createPainter as j, deriveLayoutChoice as k, enclosingSdtGroupIds as l, findImageElement as m, hitTestImage as n, isImageLayoutOptionEnabled as o, renderImageFragment as p, renderLine as q, renderFragment as r, renderAllPagesNow, renderFloatingImagesLayer, renderPage, renderPages, renderParagraphFragment as s, renderTableFragment as t, renderTextBoxFragment as u, sliceRunsForLine as v, toolbarValueToLayoutTarget as w };
726
+ export { type BlockLookup as B, FRAGMENT_CLASS_NAMES as F, type FloatingImagePaintRecord, type FloatingImagesLayerOptions, FootnoteRenderItem, HeaderFooterContent, IMAGE_CLASS_NAMES as I, LAYOUT_IMAGE_CLASSES as L, type PainterOptions as P, PAGE_CLASS_NAMES, type RenderContext, type RenderPageOptions, type RenderPagesUpdateKind, TABLE_CLASS_NAMES as T, type BlockLookupEntry as a, applyPageStyles, IMAGE_LAYOUT_OPTIONS as b, type ImageHitTestResult as c, type ImageLayoutIconHint as d, type ImageLayoutOptionDef as e, LayoutPainter as f, floatingImageIsBehindDoc, floatingImageWrapsText, TEXTBOX_CLASS_NAMES as g, applySdtFocus as h, buildBlockLookup as i, isFloatingImageRun, isTextWrappingFloatingImageRun, captureInlinePositionEmu as j, createPainter as k, deriveLayoutChoice as l, enclosingSdtGroupIds as m, findImageElement as n, hitTestImage as o, isImageLayoutOptionEnabled as p, renderImageFragment as q, renderFragment as r, renderAllPagesNow, renderFloatingImagesLayer, renderPage, renderPages, renderLine as s, renderParagraphFragment as t, renderTableFragment as u, renderTextBoxFragment as v, sliceRunsForLine as w, toolbarValueToLayoutTarget as x };
@@ -18,8 +18,8 @@ import { Node } from 'prosemirror-model';
18
18
  import { I as ImageAttrs } from '../nodes-75Q9GBxV.js';
19
19
  import { I as ImageLayoutTarget } from '../ImageExtension-BlI5afZD.js';
20
20
  import { WrapType } from '../docx/wrapTypes.js';
21
- import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-DcUMWXul.js';
22
- export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatLeft, b as resolveHeaderFooterFloatingTablePosition } from '../footnotes-DcUMWXul.js';
21
+ import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-DMsicPGd.js';
22
+ export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatLeft, b as resolveHeaderFooterFloatingTablePosition } from '../footnotes-DMsicPGd.js';
23
23
  import { B as BorderSpec } from '../colors-C3vA7HUU.js';
24
24
  import { W as Watermark } from '../watermark-DAcnAs_J.js';
25
25
  import { T as Theme } from '../styles-BWqX2AS-.js';
@@ -638,6 +638,11 @@ interface BlockLookupEntry {
638
638
  * Block lookup map type
639
639
  */
640
640
  type BlockLookup = Map<string, BlockLookupEntry>;
641
+ /**
642
+ * Build the painter's `block.id → { block, measure }` lookup from the parallel
643
+ * blocks/measures arrays. Shared by both adapters' paint step.
644
+ */
645
+ declare function buildBlockLookup(blocks: FlowBlock[], measures: Measure[]): BlockLookup;
641
646
  /**
642
647
  * Painter options
643
648
  */
@@ -718,4 +723,4 @@ declare class LayoutPainter {
718
723
  */
719
724
  declare function createPainter(options?: PainterOptions): LayoutPainter;
720
725
 
721
- export { type BlockLookup as B, FRAGMENT_CLASS_NAMES as F, type FloatingImagePaintRecord, type FloatingImagesLayerOptions, FootnoteRenderItem, HeaderFooterContent, IMAGE_CLASS_NAMES as I, LAYOUT_IMAGE_CLASSES as L, type PainterOptions as P, PAGE_CLASS_NAMES, type RenderContext, type RenderPageOptions, type RenderPagesUpdateKind, TABLE_CLASS_NAMES as T, type BlockLookupEntry as a, applyPageStyles, IMAGE_LAYOUT_OPTIONS as b, type ImageHitTestResult as c, type ImageLayoutIconHint as d, type ImageLayoutOptionDef as e, LayoutPainter as f, floatingImageIsBehindDoc, floatingImageWrapsText, TEXTBOX_CLASS_NAMES as g, applySdtFocus as h, captureInlinePositionEmu as i, isFloatingImageRun, isTextWrappingFloatingImageRun, createPainter as j, deriveLayoutChoice as k, enclosingSdtGroupIds as l, findImageElement as m, hitTestImage as n, isImageLayoutOptionEnabled as o, renderImageFragment as p, renderLine as q, renderFragment as r, renderAllPagesNow, renderFloatingImagesLayer, renderPage, renderPages, renderParagraphFragment as s, renderTableFragment as t, renderTextBoxFragment as u, sliceRunsForLine as v, toolbarValueToLayoutTarget as w };
726
+ export { type BlockLookup as B, FRAGMENT_CLASS_NAMES as F, type FloatingImagePaintRecord, type FloatingImagesLayerOptions, FootnoteRenderItem, HeaderFooterContent, IMAGE_CLASS_NAMES as I, LAYOUT_IMAGE_CLASSES as L, type PainterOptions as P, PAGE_CLASS_NAMES, type RenderContext, type RenderPageOptions, type RenderPagesUpdateKind, TABLE_CLASS_NAMES as T, type BlockLookupEntry as a, applyPageStyles, IMAGE_LAYOUT_OPTIONS as b, type ImageHitTestResult as c, type ImageLayoutIconHint as d, type ImageLayoutOptionDef as e, LayoutPainter as f, floatingImageIsBehindDoc, floatingImageWrapsText, TEXTBOX_CLASS_NAMES as g, applySdtFocus as h, buildBlockLookup as i, isFloatingImageRun, isTextWrappingFloatingImageRun, captureInlinePositionEmu as j, createPainter as k, deriveLayoutChoice as l, enclosingSdtGroupIds as m, findImageElement as n, hitTestImage as o, isImageLayoutOptionEnabled as p, renderImageFragment as q, renderFragment as r, renderAllPagesNow, renderFloatingImagesLayer, renderPage, renderPages, renderLine as s, renderParagraphFragment as t, renderTableFragment as u, renderTextBoxFragment as v, sliceRunsForLine as w, toolbarValueToLayoutTarget as x };
@@ -1 +1 @@
1
- 'use strict';var chunkWDBZ3QVB_js=require('../chunk-WDBZ3QVB.js');require('../chunk-FQS436KN.js');var chunkTURYWKNS_js=require('../chunk-TURYWKNS.js');require('../chunk-T4RYVPAB.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-BUCOTKYY.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-WWBNJ7KF.js'),require('../chunk-4RTVLMRZ.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-WVERBZZU.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-TUIEV7Q7.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"PAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.D}});Object.defineProperty(exports,"applyPageStyles",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.E}});Object.defineProperty(exports,"renderAllPagesNow",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.C}});Object.defineProperty(exports,"renderFloatingImagesLayer",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.u}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.B}});Object.defineProperty(exports,"resolveHeaderFooterFloatLeft",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.z}});Object.defineProperty(exports,"resolveHeaderFooterFloatingTablePosition",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.A}});Object.defineProperty(exports,"floatingImageIsBehindDoc",{enumerable:true,get:function(){return chunkTURYWKNS_js.b}});Object.defineProperty(exports,"floatingImageWrapsText",{enumerable:true,get:function(){return chunkTURYWKNS_js.a}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkTURYWKNS_js.c}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkTURYWKNS_js.d}});
1
+ 'use strict';var chunkPFMM7QON_js=require('../chunk-PFMM7QON.js');require('../chunk-YPQACU4A.js');var chunkJ3YFJDZD_js=require('../chunk-J3YFJDZD.js');require('../chunk-RSU4HTC6.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-QVRNNRG5.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-WWBNJ7KF.js'),require('../chunk-4RTVLMRZ.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-WVERBZZU.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-TUIEV7Q7.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"PAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkPFMM7QON_js.D}});Object.defineProperty(exports,"applyPageStyles",{enumerable:true,get:function(){return chunkPFMM7QON_js.E}});Object.defineProperty(exports,"renderAllPagesNow",{enumerable:true,get:function(){return chunkPFMM7QON_js.C}});Object.defineProperty(exports,"renderFloatingImagesLayer",{enumerable:true,get:function(){return chunkPFMM7QON_js.u}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkPFMM7QON_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkPFMM7QON_js.B}});Object.defineProperty(exports,"resolveHeaderFooterFloatLeft",{enumerable:true,get:function(){return chunkPFMM7QON_js.z}});Object.defineProperty(exports,"resolveHeaderFooterFloatingTablePosition",{enumerable:true,get:function(){return chunkPFMM7QON_js.A}});Object.defineProperty(exports,"floatingImageIsBehindDoc",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.b}});Object.defineProperty(exports,"floatingImageWrapsText",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.a}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.c}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.d}});
@@ -1 +1 @@
1
- export{D as PAGE_CLASS_NAMES,E as applyPageStyles,C as renderAllPagesNow,u as renderFloatingImagesLayer,F as renderPage,B as renderPages,z as resolveHeaderFooterFloatLeft,A as resolveHeaderFooterFloatingTablePosition}from'../chunk-7JQVKJRN.mjs';import'../chunk-B46V5G46.mjs';export{b as floatingImageIsBehindDoc,a as floatingImageWrapsText,c as isFloatingImageRun,d as isTextWrappingFloatingImageRun}from'../chunk-Q5B5GKXD.mjs';import'../chunk-72KLR6TJ.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-IUVQJ6PX.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-4GFTMGSV.mjs';import'../chunk-SWBLJF6R.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-U67MWOPZ.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-ZX26QZJ5.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{D as PAGE_CLASS_NAMES,E as applyPageStyles,C as renderAllPagesNow,u as renderFloatingImagesLayer,F as renderPage,B as renderPages,z as resolveHeaderFooterFloatLeft,A as resolveHeaderFooterFloatingTablePosition}from'../chunk-KKXCBWVG.mjs';import'../chunk-HKN2NKOG.mjs';export{b as floatingImageIsBehindDoc,a as floatingImageWrapsText,c as isFloatingImageRun,d as isTextWrappingFloatingImageRun}from'../chunk-55XWETY4.mjs';import'../chunk-JHTURDPX.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-LJE7HQEJ.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-4GFTMGSV.mjs';import'../chunk-SWBLJF6R.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-U67MWOPZ.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-ZX26QZJ5.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -0,0 +1,96 @@
1
+ import { WrapTextDirection, FlowBlock, Measure } from './layout-engine/types.mjs';
2
+ import { P as PageGeometry } from './anchoredObjectPosition-KJEyF-wr.mjs';
3
+
4
+ interface FloatingExclusionRect {
5
+ /** Which side the object is on for simple one-sided wrapping. */
6
+ side: 'left' | 'right';
7
+ /** X position relative to the content area. */
8
+ x: number;
9
+ /** Y position relative to the content area. */
10
+ y: number;
11
+ width: number;
12
+ height: number;
13
+ distTop: number;
14
+ distBottom: number;
15
+ distLeft: number;
16
+ distRight: number;
17
+ wrapText?: WrapTextDirection;
18
+ wrapType?: string;
19
+ }
20
+ interface FloatingImageZone {
21
+ leftMargin: number;
22
+ rightMargin: number;
23
+ topY: number;
24
+ bottomY: number;
25
+ segments?: FloatingLineSegmentZone[];
26
+ /**
27
+ * Full-width vertical band (OOXML `topAndBottom` wrap): no text fits beside
28
+ * it, so any line overlapping `[topY, bottomY]` is pushed below the band.
29
+ */
30
+ fullWidthBlock?: boolean;
31
+ }
32
+ interface FloatingLineSegmentZone {
33
+ leftOffset: number;
34
+ availableWidth: number;
35
+ }
36
+ interface FloatingLineMargins {
37
+ leftMargin: number;
38
+ rightMargin: number;
39
+ segments?: FloatingLineSegmentZone[];
40
+ }
41
+ declare function rectsToFloatingZones(rects: FloatingExclusionRect[], contentWidth: number): FloatingImageZone[];
42
+ declare function getFloatingMargins(lineY: number, lineHeight: number, zones: FloatingImageZone[] | undefined, paragraphYOffset: number): FloatingLineMargins;
43
+
44
+ /**
45
+ * Floating-aware block measurement pipeline.
46
+ *
47
+ * Pre-scans a block list to extract exclusion zones from anchored images,
48
+ * floating tables, and floating text boxes; groups co-located floats so
49
+ * their combined exclusion applies starting from the earliest anchor; then
50
+ * walks the blocks calling the caller-supplied `measureBlock` with the
51
+ * active zones and cumulative Y at each step.
52
+ *
53
+ * Adapters (React, Vue) provide their own `measureBlock` so they can
54
+ * decide e.g. whether to cache paragraph measures. The orchestration,
55
+ * extraction, and grouping live here so both adapters stay in lockstep.
56
+ *
57
+ * @packageDocumentation
58
+ * @public
59
+ */
60
+
61
+ /**
62
+ * Block-measurement callback shape passed to {@link measureBlocksWithFloats}.
63
+ * Adapters (React, Vue) supply this so they can decide platform-specific
64
+ * concerns (e.g. paragraph-measure caching, per-section width) while
65
+ * sharing the floating-zone orchestration. This is adapter-author API,
66
+ * not end-consumer API.
67
+ *
68
+ * @public
69
+ */
70
+ type MeasureBlockFn = (block: FlowBlock, contentWidth: number, floatingZones?: FloatingImageZone[], cumulativeY?: number) => Measure;
71
+ /**
72
+ * Page geometry (CSS px) used to resolve page/margin-relative anchored objects
73
+ * into content-area coordinates — currently the vertical anchor of a top-pinned
74
+ * `topAndBottom` band. Same shape the painter uses (see `pageGeometryFromPage`),
75
+ * so both paths resolve to identical positions.
76
+ *
77
+ * @public
78
+ */
79
+ type FloatPageGeometry = PageGeometry;
80
+ /**
81
+ * Walk `blocks` and produce one `Measure` per block. Before measuring, this
82
+ * extracts floating exclusion zones (images / floating tables / floating
83
+ * textboxes), groups overlapping co-located floats, and threads the active
84
+ * zones plus cumulative Y into each `measureBlock` call.
85
+ *
86
+ * Pass `pageGeometry` whenever the document may contain page/margin-anchored
87
+ * `topAndBottom` text boxes (e.g. a title banner pinned to the page top):
88
+ * without it their reserved band falls back to flow-relative Y and the band
89
+ * won't line up with where the painter places the box. Build it with the
90
+ * shared `pageGeometryFromPage` helper.
91
+ *
92
+ * @public
93
+ */
94
+ declare function measureBlocksWithFloats(blocks: FlowBlock[], contentWidth: number | number[], measureBlock: MeasureBlockFn, pageGeometry?: FloatPageGeometry): Measure[];
95
+
96
+ export { type FloatPageGeometry as F, type MeasureBlockFn as M, type FloatingExclusionRect as a, type FloatingImageZone as b, type FloatingLineSegmentZone as c, getFloatingMargins as g, measureBlocksWithFloats as m, rectsToFloatingZones as r };