@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.
- package/dist/chunk-2LEFMTNZ.mjs +1 -0
- package/dist/chunk-4MYKVWNF.js +1 -0
- package/dist/chunk-4PANZ3VU.js +1 -0
- package/dist/{chunk-Q5B5GKXD.mjs → chunk-55XWETY4.mjs} +1 -1
- package/dist/chunk-6WZW3NSJ.js +1 -0
- package/dist/chunk-HKN2NKOG.mjs +1 -0
- package/dist/chunk-HPJBZL37.mjs +1 -0
- package/dist/{chunk-TURYWKNS.js → chunk-J3YFJDZD.js} +1 -1
- package/dist/chunk-JHTURDPX.mjs +1 -0
- package/dist/chunk-KKXCBWVG.mjs +1 -0
- package/dist/chunk-LJE7HQEJ.mjs +1 -0
- package/dist/chunk-LX35TFGF.mjs +1 -0
- package/dist/chunk-NRWQ65NX.js +1 -0
- package/dist/chunk-PFMM7QON.js +1 -0
- package/dist/chunk-PMSGJXOE.mjs +1 -0
- package/dist/chunk-QVRNNRG5.js +1 -0
- package/dist/chunk-RSU4HTC6.js +1 -0
- package/dist/{chunk-L6YTCHOQ.mjs → chunk-UEPLDKKM.mjs} +1 -1
- package/dist/chunk-YPQACU4A.js +1 -0
- package/dist/{chunk-TJRROR6U.js → chunk-ZAZWHK4J.js} +1 -1
- package/dist/core.d.mts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/editor/index.d.mts +128 -0
- package/dist/editor/index.d.ts +128 -0
- package/dist/editor/index.js +1 -0
- package/dist/editor/index.mjs +1 -0
- package/dist/{footnotes-BtVc6VFl.d.mts → footnotes-BZ24OTAT.d.mts} +11 -1
- package/dist/{footnotes-DcUMWXul.d.ts → footnotes-DMsicPGd.d.ts} +11 -1
- package/dist/{headerFooterLayout-4E-S4Aay.d.ts → headerFooterLayout-AtAOhM8E.d.ts} +18 -2
- package/dist/{headerFooterLayout-DlJLWmpR.d.mts → headerFooterLayout-CU6hvszp.d.mts} +18 -2
- package/dist/layout-bridge/clickToPositionDom.js +1 -1
- package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +109 -5
- package/dist/layout-bridge/index.d.ts +109 -5
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +5 -95
- package/dist/layout-bridge/measuring/index.d.ts +5 -95
- package/dist/layout-bridge/measuring/index.js +1 -1
- package/dist/layout-bridge/measuring/index.mjs +1 -1
- package/dist/layout-bridge/tableInsertHover.js +1 -1
- package/dist/layout-bridge/tableInsertHover.mjs +1 -1
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-painter/index.d.mts +2 -2
- package/dist/layout-painter/index.d.ts +2 -2
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +8 -3
- package/dist/layout-painter/renderPage.d.ts +8 -3
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/measureBlocksPipeline-BMqbRFQB.d.mts +96 -0
- package/dist/measureBlocksPipeline-iYNzAH-o.d.ts +96 -0
- package/dist/prosemirror/applyFormatting.d.mts +67 -0
- package/dist/prosemirror/applyFormatting.d.ts +67 -0
- package/dist/prosemirror/applyFormatting.js +1 -0
- package/dist/prosemirror/applyFormatting.mjs +1 -0
- package/dist/prosemirror/commentIdAllocator.d.mts +50 -0
- package/dist/prosemirror/commentIdAllocator.d.ts +50 -0
- package/dist/prosemirror/commentIdAllocator.js +1 -0
- package/dist/prosemirror/commentIdAllocator.mjs +1 -0
- package/dist/prosemirror/commentOps.d.mts +46 -0
- package/dist/prosemirror/commentOps.d.ts +46 -0
- package/dist/prosemirror/commentOps.js +1 -0
- package/dist/prosemirror/commentOps.mjs +1 -0
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/imageCommit.d.mts +35 -0
- package/dist/prosemirror/imageCommit.d.ts +35 -0
- package/dist/prosemirror/imageCommit.js +1 -0
- package/dist/prosemirror/imageCommit.mjs +1 -0
- package/dist/prosemirror/index.js +2 -2
- package/dist/prosemirror/index.mjs +1 -1
- package/dist/prosemirror/paraText.d.mts +52 -0
- package/dist/prosemirror/paraText.d.ts +52 -0
- package/dist/prosemirror/paraText.js +1 -0
- package/dist/prosemirror/paraText.mjs +1 -0
- package/dist/prosemirror/queries.d.mts +65 -0
- package/dist/prosemirror/queries.d.ts +65 -0
- package/dist/prosemirror/queries.js +2 -0
- package/dist/prosemirror/queries.mjs +2 -0
- package/dist/prosemirror/tableResize.d.mts +58 -0
- package/dist/prosemirror/tableResize.d.ts +58 -0
- package/dist/prosemirror/tableResize.js +1 -0
- package/dist/prosemirror/tableResize.mjs +1 -0
- package/dist/utils/autoScroll.d.mts +24 -0
- package/dist/utils/autoScroll.d.ts +24 -0
- package/dist/utils/autoScroll.js +1 -0
- package/dist/utils/autoScroll.mjs +1 -0
- package/package.json +73 -1
- package/dist/chunk-72KLR6TJ.mjs +0 -1
- package/dist/chunk-7JQVKJRN.mjs +0 -1
- package/dist/chunk-7WGN2OBZ.js +0 -1
- package/dist/chunk-B46V5G46.mjs +0 -1
- package/dist/chunk-BUCOTKYY.js +0 -1
- package/dist/chunk-FQS436KN.js +0 -1
- package/dist/chunk-IUVQJ6PX.mjs +0 -1
- package/dist/chunk-JUMHC5Z6.mjs +0 -1
- package/dist/chunk-MEVZCB56.mjs +0 -1
- package/dist/chunk-T4RYVPAB.js +0 -1
- package/dist/chunk-WDBZ3QVB.js +0 -1
- package/dist/chunk-XWC67YLW.js +0 -1
|
@@ -6,13 +6,15 @@
|
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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 {
|
|
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
|
|
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-
|
|
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
|
|
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-
|
|
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
|
|
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-
|
|
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
|
|
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-
|
|
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
|
|
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-
|
|
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
|
|
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-
|
|
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
|
|
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
|
-
|
|
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-
|
|
22
|
-
export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatLeft, b as resolveHeaderFooterFloatingTablePosition } from '../footnotes-
|
|
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,
|
|
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-
|
|
22
|
-
export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatLeft, b as resolveHeaderFooterFloatingTablePosition } from '../footnotes-
|
|
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,
|
|
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
|
|
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-
|
|
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 };
|