@eigenpal/docx-editor-core 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.mts +5 -4
- package/dist/agent/index.d.ts +5 -4
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/anchoredObjectPosition-CS-8BfhO.d.ts +48 -0
- package/dist/anchoredObjectPosition-KJEyF-wr.d.mts +48 -0
- package/dist/{chunk-U4WUDHDK.js → chunk-2SGJZYQF.js} +1 -1
- package/dist/chunk-3ANZ3252.mjs +2 -0
- package/dist/chunk-3G44SFHX.mjs +4 -0
- package/dist/{chunk-4QEETB7U.js → chunk-3QPKTG2Y.js} +2 -2
- package/dist/chunk-3R7QHNI5.js +2 -0
- package/dist/chunk-4GFTMGSV.mjs +1 -0
- package/dist/chunk-4RTVLMRZ.js +2 -0
- package/dist/{chunk-THLJYXFB.js → chunk-6V3SFHEM.js} +1 -1
- package/dist/chunk-72KLR6TJ.mjs +1 -0
- package/dist/{chunk-6ZXL3EIP.mjs → chunk-7CZEZ3UL.mjs} +1 -1
- package/dist/chunk-7JQVKJRN.mjs +1 -0
- package/dist/{chunk-Z5MJYQSD.mjs → chunk-7UZJ5YDF.mjs} +1 -1
- package/dist/chunk-7WGN2OBZ.js +1 -0
- package/dist/{chunk-BXWOLARZ.js → chunk-APNMO5JT.js} +1 -1
- package/dist/{chunk-KZXZWGFX.mjs → chunk-B46V5G46.mjs} +1 -1
- package/dist/chunk-BH3ACQ3M.js +59 -0
- package/dist/chunk-BUCOTKYY.js +1 -0
- package/dist/{chunk-5BLQHXWK.mjs → chunk-CDXCFHOY.mjs} +1 -1
- package/dist/chunk-CHN26LLL.mjs +59 -0
- package/dist/chunk-CZSAC65M.js +2 -0
- package/dist/chunk-D3PRIF3Y.mjs +1 -0
- package/dist/{chunk-7BVHKWEW.mjs → chunk-DFUWJHKF.mjs} +1 -1
- package/dist/chunk-DKKTY56Q.js +1 -0
- package/dist/chunk-FIGLFSNR.js +1 -0
- package/dist/{chunk-AMB6Y77B.js → chunk-FQS436KN.js} +1 -1
- package/dist/chunk-FYRJTDC4.mjs +2 -0
- package/dist/chunk-GYWTUUXX.mjs +2 -0
- package/dist/chunk-INDYZOOS.js +1 -0
- package/dist/chunk-IUVQJ6PX.mjs +1 -0
- package/dist/chunk-JUMHC5Z6.mjs +1 -0
- package/dist/chunk-L6YTCHOQ.mjs +1 -0
- package/dist/{chunk-D62KS7QG.mjs → chunk-LAJPGQEE.mjs} +1 -1
- package/dist/chunk-LERLET2D.js +4 -0
- package/dist/chunk-MEVZCB56.mjs +1 -0
- package/dist/{chunk-BOOHU5EW.mjs → chunk-MOCGHQ4A.mjs} +1 -1
- package/dist/chunk-NAFMAKLK.js +2 -0
- package/dist/chunk-OTHV7YV2.js +2 -0
- package/dist/chunk-Q5B5GKXD.mjs +1 -0
- package/dist/{chunk-U4XMGWF7.js → chunk-RAWVGULQ.js} +1 -1
- package/dist/chunk-RQVHKDXK.js +2 -0
- package/dist/{chunk-E4JMCA5X.js → chunk-SCK6ZM5V.js} +2 -2
- package/dist/chunk-SWBLJF6R.mjs +2 -0
- package/dist/chunk-T4RYVPAB.js +1 -0
- package/dist/{chunk-UGV4KRQB.js → chunk-TJRROR6U.js} +1 -1
- package/dist/chunk-TURYWKNS.js +1 -0
- package/dist/chunk-UE2ZKRYB.mjs +2 -0
- package/dist/chunk-VOCHZNOF.mjs +1 -0
- package/dist/{chunk-OEXVWIHW.mjs → chunk-W77JXDEV.mjs} +1 -1
- package/dist/chunk-WDBZ3QVB.js +1 -0
- package/dist/chunk-WWBNJ7KF.js +1 -0
- package/dist/chunk-WWNOXNEX.mjs +2 -0
- package/dist/chunk-XWC67YLW.js +1 -0
- package/dist/{chunk-QKLY4F2J.mjs → chunk-YNUPP7UG.mjs} +1 -1
- package/dist/{chunk-HQPWFUP5.js → chunk-Z3LGMBJC.js} +1 -1
- package/dist/{colorResolver-BZ_yScf4.d.ts → colorResolver-8A-qj-LP.d.ts} +1 -1
- package/dist/{colorResolver-C6DtsoFI.d.mts → colorResolver-BCvxTlLF.d.mts} +1 -1
- package/dist/{content-CE-ZdMwG.d.mts → content-3xF4WDE8.d.mts} +51 -7
- package/dist/{content-CYXJ2tfQ.d.ts → content-C8fc_tL6.d.ts} +51 -7
- package/dist/{contentControlValues-gyVPsi6m.d.ts → contentControlValues-DGDKD589.d.ts} +1 -1
- package/dist/{contentControlValues-DAwTWfgR.d.mts → contentControlValues-DjWvoJQ-.d.mts} +1 -1
- package/dist/core-plugins.d.mts +6 -5
- package/dist/core-plugins.d.ts +6 -5
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +12 -11
- package/dist/core.d.ts +12 -11
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{documentStyles-DToJv9co.d.ts → documentStyles-C7k_8Sye.d.ts} +1 -1
- package/dist/{documentStyles-D87dxl18.d.mts → documentStyles-qR0VR2s0.d.mts} +1 -1
- package/dist/docx/index.d.mts +3 -2
- package/dist/docx/index.d.ts +3 -2
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +3 -2
- package/dist/docx/parser.d.ts +3 -2
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +3 -2
- package/dist/docx/rezip.d.ts +3 -2
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +42 -4
- package/dist/docx/serializer/index.d.ts +42 -4
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/{fontLoader-Z7pqeNvZ.d.mts → fontLoader-CUS1BPv7.d.mts} +1 -1
- package/dist/{fontLoader-Cm02v7PO.d.ts → fontLoader-Dl9SEKex.d.ts} +1 -1
- package/dist/{footnotes-lCH_P3N3.d.mts → footnotes-BtVc6VFl.d.mts} +14 -1
- package/dist/{footnotes-skVvEHvZ.d.ts → footnotes-DcUMWXul.d.ts} +14 -1
- package/dist/{headerFooterLayout-Bd58Tum3.d.ts → headerFooterLayout-4E-S4Aay.d.ts} +5 -5
- package/dist/{headerFooterLayout-CuIJiIzi.d.mts → headerFooterLayout-DlJLWmpR.d.mts} +5 -5
- package/dist/headless.d.mts +47 -11
- package/dist/headless.d.ts +47 -11
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/clickToPositionDom.d.mts +26 -1
- package/dist/layout-bridge/clickToPositionDom.d.ts +26 -1
- package/dist/layout-bridge/clickToPositionDom.js +1 -1
- package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +29 -7
- package/dist/layout-bridge/index.d.ts +29 -7
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +25 -3
- package/dist/layout-bridge/measuring/index.d.ts +25 -3
- 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.d.mts +3 -2
- package/dist/layout-bridge/toFlowBlocks.d.ts +3 -2
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +16 -3
- package/dist/layout-engine/index.d.ts +16 -3
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +22 -1
- package/dist/layout-engine/types.d.ts +22 -1
- package/dist/layout-painter/index.d.mts +6 -4
- package/dist/layout-painter/index.d.ts +6 -4
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +9 -5
- package/dist/layout-painter/renderPage.d.ts +9 -5
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/managers/AutoSaveManager.d.mts +3 -2
- package/dist/managers/AutoSaveManager.d.ts +3 -2
- package/dist/managers/TableSelectionManager.d.mts +3 -2
- package/dist/managers/TableSelectionManager.d.ts +3 -2
- package/dist/managers/types.d.mts +3 -2
- package/dist/managers/types.d.ts +3 -2
- package/dist/mcp-cli.mjs +23 -23
- package/dist/mcp.d.mts +4 -3
- package/dist/mcp.d.ts +4 -3
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +2 -2
- package/dist/{nodes-BNkRKBBX.d.ts → nodes-75Q9GBxV.d.ts} +1 -1
- package/dist/{nodes-Bz-UHhLE.d.mts → nodes-cEI7hVY2.d.mts} +1 -1
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +20 -1
- package/dist/prosemirror/commands/index.d.ts +20 -1
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +1 -1
- package/dist/prosemirror/commands/paragraph.js +1 -1
- package/dist/prosemirror/commands/paragraph.mjs +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +3 -2
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +3 -2
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +3 -2
- package/dist/prosemirror/conversion/index.d.ts +3 -2
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/editor.css +12 -2
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/index.d.mts +6 -5
- package/dist/prosemirror/index.d.ts +6 -5
- package/dist/prosemirror/index.js +2 -2
- package/dist/prosemirror/index.mjs +1 -1
- package/dist/prosemirror/plugins/index.d.mts +4 -3
- package/dist/prosemirror/plugins/index.d.ts +4 -3
- package/dist/prosemirror/schema/index.d.mts +3 -2
- package/dist/prosemirror/schema/index.d.ts +3 -2
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +1 -1
- package/dist/prosemirror/styles/index.d.ts +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -1
- package/dist/{registry-Cpyybgij.d.mts → registry-NLnxX7pq.d.mts} +1 -1
- package/dist/{registry-E5pahPKL.d.ts → registry-egK81C_z.d.ts} +1 -1
- package/dist/sectionPropertiesSerializer-D86QlzlT.d.mts +59 -0
- package/dist/sectionPropertiesSerializer-uXyGONxu.d.ts +59 -0
- package/dist/{styles-EI2lxeEN.d.mts → styles-BOJ93SAm.d.mts} +1 -1
- package/dist/{styles-BBv7doYK.d.ts → styles-BWqX2AS-.d.ts} +1 -1
- package/dist/types/content.d.mts +2 -1
- package/dist/types/content.d.ts +2 -1
- package/dist/types/content.js +1 -1
- package/dist/types/content.mjs +1 -0
- package/dist/types/document.d.mts +17 -6
- package/dist/types/document.d.ts +17 -6
- package/dist/types/document.js +1 -1
- package/dist/types/document.mjs +1 -0
- package/dist/{types-DXG7vqe9.d.ts → types-DDQWU7-j.d.ts} +1 -1
- package/dist/{types-dYdjUZMo.d.mts → types-DTF0N7UE.d.mts} +1 -1
- package/dist/utils/comments.d.mts +2 -1
- package/dist/utils/comments.d.ts +2 -1
- package/dist/utils/index.d.mts +5 -4
- package/dist/utils/index.d.ts +5 -4
- package/dist/{variableDetector-HPZbJ_gw.d.ts → variableDetector-1mxzPfs2.d.ts} +1 -1
- package/dist/{variableDetector-C7BLz9sJ.d.mts → variableDetector-CaY-sDau.d.mts} +1 -1
- package/dist/watermark-DAcnAs_J.d.mts +77 -0
- package/dist/watermark-DAcnAs_J.d.ts +77 -0
- package/package.json +1 -1
- package/dist/chunk-2EQGBVPV.js +0 -2
- package/dist/chunk-44FHVKSI.js +0 -1
- package/dist/chunk-44JKHPGF.mjs +0 -2
- package/dist/chunk-5M7TI6TV.js +0 -1
- package/dist/chunk-6Y6LON6Y.mjs +0 -1
- package/dist/chunk-7RDCZLTU.js +0 -1
- package/dist/chunk-7ZN4WI5N.mjs +0 -4
- package/dist/chunk-CCPBNE2F.mjs +0 -2
- package/dist/chunk-DV6GWBUJ.js +0 -2
- package/dist/chunk-EQAORQC3.mjs +0 -1
- package/dist/chunk-FYKRDDKG.js +0 -1
- package/dist/chunk-GUQFNJHE.mjs +0 -1
- package/dist/chunk-ICE6NC3S.mjs +0 -1
- package/dist/chunk-IFUED5ZS.mjs +0 -1
- package/dist/chunk-KGTEBLB6.js +0 -1
- package/dist/chunk-KRN6YSR2.mjs +0 -1
- package/dist/chunk-L72YAV5N.js +0 -3
- package/dist/chunk-LTHT4A4S.js +0 -1
- package/dist/chunk-MERJFGEP.mjs +0 -59
- package/dist/chunk-MP4QSEO2.mjs +0 -1
- package/dist/chunk-PVAVS3IU.js +0 -1
- package/dist/chunk-QYF7BRG3.js +0 -2
- package/dist/chunk-RKDVY7I3.mjs +0 -1
- package/dist/chunk-ROG4MNOR.js +0 -4
- package/dist/chunk-SORYYVJ7.js +0 -1
- package/dist/chunk-SZIOF5SG.js +0 -59
- package/dist/chunk-VMRUBLPI.js +0 -1
- package/dist/chunk-WKUHYMDO.mjs +0 -1
- package/dist/chunk-WLDI6N3B.mjs +0 -3
- package/dist/chunk-WLHNIXWC.mjs +0 -2
- package/dist/chunk-YMZ3F2FZ.mjs +0 -1
- package/dist/chunk-ZBFNOJGY.js +0 -1
- package/dist/documentSerializer-Bghq9rFI.d.mts +0 -36
- package/dist/documentSerializer-C4lFC60P.d.ts +0 -36
|
@@ -10,19 +10,21 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export { ToFlowBlocksOptions, convertBorderSpecToLayout, resetBlockIdCounter, resolveListTemplate, toFlowBlocks } from './toFlowBlocks.js';
|
|
12
12
|
import { TableBlock, Fragment, FlowBlock, Measure, Page, TableFragment, TableMeasure, ParagraphBlock, ParagraphMeasure, Layout, PageMargins } from '../layout-engine/types.js';
|
|
13
|
-
export { FloatingExclusionRect, FloatingImageZone, FloatingLineSegmentZone, FontMetrics, FontStyle, MeasureBlockFn, MeasureParagraphOptions, RunMeasurement, 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 } from './measuring/index.js';
|
|
14
|
-
export { DomCaretPosition, DomSelectionRect, clickToPositionDom, getCaretPositionFromDom, getSelectionRectsFromDom, clickToPositionDom as mouseToPosition } from './clickToPositionDom.js';
|
|
15
|
-
export { C as ConvertFootnoteOptions, a as ConvertHeaderFooterOptions, F as FOOTNOTE_SEPARATOR_HEIGHT, H as HeaderFooterMetrics, M as MAX_FOOTNOTE_LAYOUT_PASSES, b as MeasureBlocksFn, S as StabilizeFootnoteLayoutArgs, c as StabilizeFootnoteLayoutResult, j as applyFootnotePresentation, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, k as calculateHeaderFooterVisualBounds, g as collectFootnoteRefs, l as computeHfCaretRectFromView, n as computeHfSelectionRectsFromView, o as convertFootnoteToContent, p as convertHeaderFooterPmDocToContent, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, q as invalidateHfDomCache, m as mapFootnotesToPages, r as normalizeHeaderFooterMeasureBlocks, t as resolveHeaderFooterVisualTop, s as stabilizeFootnoteLayout } from '../headerFooterLayout-
|
|
13
|
+
export { FloatPageGeometry, FloatingExclusionRect, FloatingImageZone, FloatingLineSegmentZone, FontMetrics, FontStyle, MeasureBlockFn, MeasureParagraphOptions, RunMeasurement, 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 } from './measuring/index.js';
|
|
14
|
+
export { DomCaretPosition, DomSelectionRect, clickToPositionDom, clipRectToTableWindow, getCaretPositionFromDom, getSelectionRectsFromDom, clickToPositionDom as mouseToPosition } from './clickToPositionDom.js';
|
|
15
|
+
export { C as ConvertFootnoteOptions, a as ConvertHeaderFooterOptions, F as FOOTNOTE_SEPARATOR_HEIGHT, H as HeaderFooterMetrics, M as MAX_FOOTNOTE_LAYOUT_PASSES, b as MeasureBlocksFn, S as StabilizeFootnoteLayoutArgs, c as StabilizeFootnoteLayoutResult, j as applyFootnotePresentation, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, k as calculateHeaderFooterVisualBounds, g as collectFootnoteRefs, l as computeHfCaretRectFromView, n as computeHfSelectionRectsFromView, o as convertFootnoteToContent, p as convertHeaderFooterPmDocToContent, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, q as invalidateHfDomCache, m as mapFootnotesToPages, r as normalizeHeaderFooterMeasureBlocks, t as resolveHeaderFooterVisualTop, s as stabilizeFootnoteLayout } from '../headerFooterLayout-4E-S4Aay.js';
|
|
16
16
|
export { TABLE_INSERT_EDGE_PROXIMITY, TABLE_INSERT_HIDE_DELAY_MS, TableInsertHoverHit, TableInsertHoverInput, detectTableInsertHover } from './tableInsertHover.js';
|
|
17
17
|
import { Document } from '../types/document.js';
|
|
18
|
-
import { S as SectionProperties, y as HeaderFooter } from '../content-
|
|
18
|
+
import { S as SectionProperties, y as HeaderFooter } from '../content-C8fc_tL6.js';
|
|
19
19
|
import 'prosemirror-model';
|
|
20
|
-
import '../styles-
|
|
20
|
+
import '../styles-BWqX2AS-.js';
|
|
21
21
|
import '../formatting-_OXU8gLB.js';
|
|
22
22
|
import '../colors-C3vA7HUU.js';
|
|
23
23
|
import '../docx/wrapTypes.js';
|
|
24
|
+
import '../watermark-DAcnAs_J.js';
|
|
25
|
+
import '../anchoredObjectPosition-CS-8BfhO.js';
|
|
24
26
|
import 'prosemirror-view';
|
|
25
|
-
import '../footnotes-
|
|
27
|
+
import '../footnotes-DcUMWXul.js';
|
|
26
28
|
|
|
27
29
|
/**
|
|
28
30
|
* @internal Helpers for resolving DOCX table-width metadata into pixel widths.
|
|
@@ -35,6 +37,26 @@ import '../footnotes-skVvEHvZ.js';
|
|
|
35
37
|
* @internal
|
|
36
38
|
*/
|
|
37
39
|
declare function resolveTableWidthPx(value: number | undefined, widthType: string | undefined, parentWidth: number): number | undefined;
|
|
40
|
+
/** A cell with its resolved grid position (column index honoring spans). */
|
|
41
|
+
interface ResolvedGridCell {
|
|
42
|
+
rowIndex: number;
|
|
43
|
+
cellIndex: number;
|
|
44
|
+
columnIndex: number;
|
|
45
|
+
colSpan: number;
|
|
46
|
+
rowSpan: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Resolve every cell's grid column index, accounting for `colSpan` and the
|
|
50
|
+
* columns occupied by vertically-merged (`rowSpan`) cells from earlier rows.
|
|
51
|
+
*
|
|
52
|
+
* Single source of truth for table grid geometry — the measurer, the painter,
|
|
53
|
+
* and the row-break paginator all consume this so they agree on which column a
|
|
54
|
+
* cell lives in. Width-free on purpose: callers multiply `columnIndex` by their
|
|
55
|
+
* own (possibly scaled) column widths to get an x offset.
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
declare function resolveCellGrid(tableBlock: TableBlock): ResolvedGridCell[];
|
|
38
60
|
/** Total grid columns, derived from the widest row's accumulated colSpans. */
|
|
39
61
|
declare function countTableColumns(tableBlock: TableBlock): number;
|
|
40
62
|
/**
|
|
@@ -459,4 +481,4 @@ declare function resolveHeaderFooter(doc: Document | null, sp: SectionProperties
|
|
|
459
481
|
firstFooter: HeaderFooter | null;
|
|
460
482
|
};
|
|
461
483
|
|
|
462
|
-
export { type CaretPosition, DEFAULT_BODY_MARGIN_PX, DEFAULT_HF_DISTANCE_PX, DEFAULT_PAGE_HEIGHT_PX, DEFAULT_PAGE_WIDTH_PX, type FragmentHit, type HitTestResult, type PageHit, type Point, type PositionResult, type SelectionRect, type TableCellHit, clickToPosition, clickToPositionInParagraph, clickToPositionInTableCell, countTableColumns, findBodyEmptyRuns, findBodyPmAnchor, findBodyPmAnchors, findBodyPmSpans, getCaretPosition, getMargins, getPageBounds, getPageIndexAtY, getPageSize, getPageTop, getPositionRect, getScrollYForPage, getTotalDocumentHeight, groupRectsByPage, hitTest, hitTestFragment, hitTestImageFragment, hitTestPage, hitTestTableCell, isMultiPageSelection, measureTableBlock, measureTableCellBlockVisualHeight, normalizeTableColumnWidths, positionToX, resolveHeaderFooter, resolveTableWidthPx, selectionToRects };
|
|
484
|
+
export { type CaretPosition, DEFAULT_BODY_MARGIN_PX, DEFAULT_HF_DISTANCE_PX, DEFAULT_PAGE_HEIGHT_PX, DEFAULT_PAGE_WIDTH_PX, type FragmentHit, type HitTestResult, type PageHit, type Point, type PositionResult, type ResolvedGridCell, type SelectionRect, type TableCellHit, clickToPosition, clickToPositionInParagraph, clickToPositionInTableCell, countTableColumns, findBodyEmptyRuns, findBodyPmAnchor, findBodyPmAnchors, findBodyPmSpans, getCaretPosition, getMargins, getPageBounds, getPageIndexAtY, getPageSize, getPageTop, getPositionRect, getScrollYForPage, getTotalDocumentHeight, groupRectsByPage, hitTest, hitTestFragment, hitTestImageFragment, hitTestPage, hitTestTableCell, isMultiPageSelection, measureTableBlock, measureTableCellBlockVisualHeight, normalizeTableColumnWidths, positionToX, resolveCellGrid, resolveHeaderFooter, resolveTableWidthPx, selectionToRects };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkFYKRDDKG_js=require('../chunk-FYKRDDKG.js'),chunkUGV4KRQB_js=require('../chunk-UGV4KRQB.js'),chunkKGTEBLB6_js=require('../chunk-KGTEBLB6.js'),chunkAMB6Y77B_js=require('../chunk-AMB6Y77B.js'),chunk7RDCZLTU_js=require('../chunk-7RDCZLTU.js'),chunkSORYYVJ7_js=require('../chunk-SORYYVJ7.js'),chunkLTHT4A4S_js=require('../chunk-LTHT4A4S.js'),chunkIMKU4O3P_js=require('../chunk-IMKU4O3P.js');require('../chunk-DROCYKAR.js'),require('../chunk-ROG4MNOR.js'),require('../chunk-44FHVKSI.js'),require('../chunk-ZBFNOJGY.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-E4JMCA5X.js'),require('../chunk-HQPWFUP5.js'),require('../chunk-DV6GWBUJ.js'),require('../chunk-VMRUBLPI.js'),require('../chunk-2EQGBVPV.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,"DEFAULT_BODY_MARGIN_PX",{enumerable:true,get:function(){return chunkFYKRDDKG_js.D}});Object.defineProperty(exports,"DEFAULT_HF_DISTANCE_PX",{enumerable:true,get:function(){return chunkFYKRDDKG_js.E}});Object.defineProperty(exports,"DEFAULT_PAGE_HEIGHT_PX",{enumerable:true,get:function(){return chunkFYKRDDKG_js.C}});Object.defineProperty(exports,"DEFAULT_PAGE_WIDTH_PX",{enumerable:true,get:function(){return chunkFYKRDDKG_js.B}});Object.defineProperty(exports,"calculateHeaderFooterVisualBounds",{enumerable:true,get:function(){return chunkFYKRDDKG_js.v}});Object.defineProperty(exports,"clickToPosition",{enumerable:true,get:function(){return chunkFYKRDDKG_js.m}});Object.defineProperty(exports,"clickToPositionInParagraph",{enumerable:true,get:function(){return chunkFYKRDDKG_js.k}});Object.defineProperty(exports,"clickToPositionInTableCell",{enumerable:true,get:function(){return chunkFYKRDDKG_js.l}});Object.defineProperty(exports,"computeHfCaretRectFromView",{enumerable:true,get:function(){return chunkFYKRDDKG_js.z}});Object.defineProperty(exports,"computeHfSelectionRectsFromView",{enumerable:true,get:function(){return chunkFYKRDDKG_js.A}});Object.defineProperty(exports,"convertHeaderFooterPmDocToContent",{enumerable:true,get:function(){return chunkFYKRDDKG_js.x}});Object.defineProperty(exports,"convertHeaderFooterToContent",{enumerable:true,get:function(){return chunkFYKRDDKG_js.w}});Object.defineProperty(exports,"getCaretPosition",{enumerable:true,get:function(){return chunkFYKRDDKG_js.q}});Object.defineProperty(exports,"getMargins",{enumerable:true,get:function(){return chunkFYKRDDKG_js.G}});Object.defineProperty(exports,"getPageBounds",{enumerable:true,get:function(){return chunkFYKRDDKG_js.j}});Object.defineProperty(exports,"getPageIndexAtY",{enumerable:true,get:function(){return chunkFYKRDDKG_js.c}});Object.defineProperty(exports,"getPageSize",{enumerable:true,get:function(){return chunkFYKRDDKG_js.F}});Object.defineProperty(exports,"getPageTop",{enumerable:true,get:function(){return chunkFYKRDDKG_js.b}});Object.defineProperty(exports,"getPositionRect",{enumerable:true,get:function(){return chunkFYKRDDKG_js.o}});Object.defineProperty(exports,"getScrollYForPage",{enumerable:true,get:function(){return chunkFYKRDDKG_js.i}});Object.defineProperty(exports,"getTotalDocumentHeight",{enumerable:true,get:function(){return chunkFYKRDDKG_js.h}});Object.defineProperty(exports,"groupRectsByPage",{enumerable:true,get:function(){return chunkFYKRDDKG_js.s}});Object.defineProperty(exports,"hitTest",{enumerable:true,get:function(){return chunkFYKRDDKG_js.g}});Object.defineProperty(exports,"hitTestFragment",{enumerable:true,get:function(){return chunkFYKRDDKG_js.d}});Object.defineProperty(exports,"hitTestImageFragment",{enumerable:true,get:function(){return chunkFYKRDDKG_js.e}});Object.defineProperty(exports,"hitTestPage",{enumerable:true,get:function(){return chunkFYKRDDKG_js.a}});Object.defineProperty(exports,"hitTestTableCell",{enumerable:true,get:function(){return chunkFYKRDDKG_js.f}});Object.defineProperty(exports,"invalidateHfDomCache",{enumerable:true,get:function(){return chunkFYKRDDKG_js.y}});Object.defineProperty(exports,"isMultiPageSelection",{enumerable:true,get:function(){return chunkFYKRDDKG_js.r}});Object.defineProperty(exports,"normalizeHeaderFooterMeasureBlocks",{enumerable:true,get:function(){return chunkFYKRDDKG_js.t}});Object.defineProperty(exports,"positionToX",{enumerable:true,get:function(){return chunkFYKRDDKG_js.n}});Object.defineProperty(exports,"resolveHeaderFooter",{enumerable:true,get:function(){return chunkFYKRDDKG_js.H}});Object.defineProperty(exports,"resolveHeaderFooterVisualTop",{enumerable:true,get:function(){return chunkFYKRDDKG_js.u}});Object.defineProperty(exports,"selectionToRects",{enumerable:true,get:function(){return chunkFYKRDDKG_js.p}});Object.defineProperty(exports,"TABLE_INSERT_EDGE_PROXIMITY",{enumerable:true,get:function(){return chunkUGV4KRQB_js.a}});Object.defineProperty(exports,"TABLE_INSERT_HIDE_DELAY_MS",{enumerable:true,get:function(){return chunkUGV4KRQB_js.b}});Object.defineProperty(exports,"detectTableInsertHover",{enumerable:true,get:function(){return chunkUGV4KRQB_js.c}});Object.defineProperty(exports,"FOOTNOTE_SEPARATOR_HEIGHT",{enumerable:true,get:function(){return chunkKGTEBLB6_js.a}});Object.defineProperty(exports,"MAX_FOOTNOTE_LAYOUT_PASSES",{enumerable:true,get:function(){return chunkKGTEBLB6_js.b}});Object.defineProperty(exports,"applyFootnotePresentation",{enumerable:true,get:function(){return chunkKGTEBLB6_js.f}});Object.defineProperty(exports,"buildFootnoteContentMap",{enumerable:true,get:function(){return chunkKGTEBLB6_js.h}});Object.defineProperty(exports,"buildFootnoteRenderItems",{enumerable:true,get:function(){return chunkKGTEBLB6_js.k}});Object.defineProperty(exports,"calculateFootnoteReservedHeights",{enumerable:true,get:function(){return chunkKGTEBLB6_js.i}});Object.defineProperty(exports,"collectFootnoteRefs",{enumerable:true,get:function(){return chunkKGTEBLB6_js.d}});Object.defineProperty(exports,"convertFootnoteToContent",{enumerable:true,get:function(){return chunkKGTEBLB6_js.g}});Object.defineProperty(exports,"footnoteReservedHeightsEqual",{enumerable:true,get:function(){return chunkKGTEBLB6_js.c}});Object.defineProperty(exports,"mapFootnotesToPages",{enumerable:true,get:function(){return chunkKGTEBLB6_js.e}});Object.defineProperty(exports,"stabilizeFootnoteLayout",{enumerable:true,get:function(){return chunkKGTEBLB6_js.j}});Object.defineProperty(exports,"convertBorderSpecToLayout",{enumerable:true,get:function(){return chunkAMB6Y77B_js.a}});Object.defineProperty(exports,"resolveListTemplate",{enumerable:true,get:function(){return chunkAMB6Y77B_js.b}});Object.defineProperty(exports,"toFlowBlocks",{enumerable:true,get:function(){return chunkAMB6Y77B_js.c}});Object.defineProperty(exports,"clickToPositionDom",{enumerable:true,get:function(){return chunk7RDCZLTU_js.e}});Object.defineProperty(exports,"findBodyEmptyRuns",{enumerable:true,get:function(){return chunk7RDCZLTU_js.b}});Object.defineProperty(exports,"findBodyPmAnchor",{enumerable:true,get:function(){return chunk7RDCZLTU_js.d}});Object.defineProperty(exports,"findBodyPmAnchors",{enumerable:true,get:function(){return chunk7RDCZLTU_js.c}});Object.defineProperty(exports,"findBodyPmSpans",{enumerable:true,get:function(){return chunk7RDCZLTU_js.a}});Object.defineProperty(exports,"getCaretPositionFromDom",{enumerable:true,get:function(){return chunk7RDCZLTU_js.g}});Object.defineProperty(exports,"getSelectionRectsFromDom",{enumerable:true,get:function(){return chunk7RDCZLTU_js.f}});Object.defineProperty(exports,"mouseToPosition",{enumerable:true,get:function(){return chunk7RDCZLTU_js.e}});Object.defineProperty(exports,"clearAllCaches",{enumerable:true,get:function(){return chunkSORYYVJ7_js.B}});Object.defineProperty(exports,"clearFontMetricsCache",{enumerable:true,get:function(){return chunkSORYYVJ7_js.s}});Object.defineProperty(exports,"clearParagraphMeasureCache",{enumerable:true,get:function(){return chunkSORYYVJ7_js.y}});Object.defineProperty(exports,"clearTextWidthCache",{enumerable:true,get:function(){return chunkSORYYVJ7_js.n}});Object.defineProperty(exports,"countTableColumns",{enumerable:true,get:function(){return chunkSORYYVJ7_js.b}});Object.defineProperty(exports,"getCachedFontMetrics",{enumerable:true,get:function(){return chunkSORYYVJ7_js.q}});Object.defineProperty(exports,"getCachedParagraphMeasure",{enumerable:true,get:function(){return chunkSORYYVJ7_js.w}});Object.defineProperty(exports,"getCachedTextWidth",{enumerable:true,get:function(){return chunkSORYYVJ7_js.l}});Object.defineProperty(exports,"getFontCacheSize",{enumerable:true,get:function(){return chunkSORYYVJ7_js.u}});Object.defineProperty(exports,"getParagraphCacheSize",{enumerable:true,get:function(){return chunkSORYYVJ7_js.A}});Object.defineProperty(exports,"getTextCacheSize",{enumerable:true,get:function(){return chunkSORYYVJ7_js.p}});Object.defineProperty(exports,"getTotalCacheSize",{enumerable:true,get:function(){return chunkSORYYVJ7_js.C}});Object.defineProperty(exports,"hashParagraphBlock",{enumerable:true,get:function(){return chunkSORYYVJ7_js.v}});Object.defineProperty(exports,"measureBlocksWithFloats",{enumerable:true,get:function(){return chunkSORYYVJ7_js.k}});Object.defineProperty(exports,"measureTableBlock",{enumerable:true,get:function(){return chunkSORYYVJ7_js.j}});Object.defineProperty(exports,"measureTableCellBlockVisualHeight",{enumerable:true,get:function(){return chunkSORYYVJ7_js.i}});Object.defineProperty(exports,"normalizeTableColumnWidths",{enumerable:true,get:function(){return chunkSORYYVJ7_js.c}});Object.defineProperty(exports,"resolveTableWidthPx",{enumerable:true,get:function(){return chunkSORYYVJ7_js.a}});Object.defineProperty(exports,"setCachedFontMetrics",{enumerable:true,get:function(){return chunkSORYYVJ7_js.r}});Object.defineProperty(exports,"setCachedParagraphMeasure",{enumerable:true,get:function(){return chunkSORYYVJ7_js.x}});Object.defineProperty(exports,"setCachedTextWidth",{enumerable:true,get:function(){return chunkSORYYVJ7_js.m}});Object.defineProperty(exports,"setFontCacheSize",{enumerable:true,get:function(){return chunkSORYYVJ7_js.t}});Object.defineProperty(exports,"setParagraphCacheSize",{enumerable:true,get:function(){return chunkSORYYVJ7_js.z}});Object.defineProperty(exports,"setTextCacheSize",{enumerable:true,get:function(){return chunkSORYYVJ7_js.o}});Object.defineProperty(exports,"buildFontString",{enumerable:true,get:function(){return chunkLTHT4A4S_js.c}});Object.defineProperty(exports,"clampFloatingWrapMargins",{enumerable:true,get:function(){return chunkLTHT4A4S_js.u}});Object.defineProperty(exports,"findCharacterAtX",{enumerable:true,get:function(){return chunkLTHT4A4S_js.h}});Object.defineProperty(exports,"getCanvasContext",{enumerable:true,get:function(){return chunkLTHT4A4S_js.a}});Object.defineProperty(exports,"getFloatingMargins",{enumerable:true,get:function(){return chunkLTHT4A4S_js.q}});Object.defineProperty(exports,"getFontMetrics",{enumerable:true,get:function(){return chunkLTHT4A4S_js.d}});Object.defineProperty(exports,"getRunCharWidths",{enumerable:true,get:function(){return chunkLTHT4A4S_js.x}});Object.defineProperty(exports,"getXForCharacter",{enumerable:true,get:function(){return chunkLTHT4A4S_js.i}});Object.defineProperty(exports,"halfPtToPx",{enumerable:true,get:function(){return chunkLTHT4A4S_js.n}});Object.defineProperty(exports,"measureParagraph",{enumerable:true,get:function(){return chunkLTHT4A4S_js.v}});Object.defineProperty(exports,"measureParagraphs",{enumerable:true,get:function(){return chunkLTHT4A4S_js.w}});Object.defineProperty(exports,"measureRun",{enumerable:true,get:function(){return chunkLTHT4A4S_js.g}});Object.defineProperty(exports,"measureText",{enumerable:true,get:function(){return chunkLTHT4A4S_js.f}});Object.defineProperty(exports,"measureTextWidth",{enumerable:true,get:function(){return chunkLTHT4A4S_js.e}});Object.defineProperty(exports,"ptToPx",{enumerable:true,get:function(){return chunkLTHT4A4S_js.l}});Object.defineProperty(exports,"pxToHalfPt",{enumerable:true,get:function(){return chunkLTHT4A4S_js.o}});Object.defineProperty(exports,"pxToPt",{enumerable:true,get:function(){return chunkLTHT4A4S_js.m}});Object.defineProperty(exports,"pxToTwips",{enumerable:true,get:function(){return chunkLTHT4A4S_js.k}});Object.defineProperty(exports,"rectsToFloatingZones",{enumerable:true,get:function(){return chunkLTHT4A4S_js.p}});Object.defineProperty(exports,"resetCanvasContext",{enumerable:true,get:function(){return chunkLTHT4A4S_js.b}});Object.defineProperty(exports,"twipsToPx",{enumerable:true,get:function(){return chunkLTHT4A4S_js.j}});Object.defineProperty(exports,"resetBlockIdCounter",{enumerable:true,get:function(){return chunkIMKU4O3P_js.d}});
|
|
1
|
+
'use strict';var chunkXWC67YLW_js=require('../chunk-XWC67YLW.js'),chunkTJRROR6U_js=require('../chunk-TJRROR6U.js'),chunkWDBZ3QVB_js=require('../chunk-WDBZ3QVB.js'),chunkFQS436KN_js=require('../chunk-FQS436KN.js'),chunk7WGN2OBZ_js=require('../chunk-7WGN2OBZ.js'),chunkTURYWKNS_js=require('../chunk-TURYWKNS.js'),chunkT4RYVPAB_js=require('../chunk-T4RYVPAB.js'),chunkIMKU4O3P_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,"DEFAULT_BODY_MARGIN_PX",{enumerable:true,get:function(){return chunkXWC67YLW_js.D}});Object.defineProperty(exports,"DEFAULT_HF_DISTANCE_PX",{enumerable:true,get:function(){return chunkXWC67YLW_js.E}});Object.defineProperty(exports,"DEFAULT_PAGE_HEIGHT_PX",{enumerable:true,get:function(){return chunkXWC67YLW_js.C}});Object.defineProperty(exports,"DEFAULT_PAGE_WIDTH_PX",{enumerable:true,get:function(){return chunkXWC67YLW_js.B}});Object.defineProperty(exports,"calculateHeaderFooterVisualBounds",{enumerable:true,get:function(){return chunkXWC67YLW_js.v}});Object.defineProperty(exports,"clickToPosition",{enumerable:true,get:function(){return chunkXWC67YLW_js.m}});Object.defineProperty(exports,"clickToPositionInParagraph",{enumerable:true,get:function(){return chunkXWC67YLW_js.k}});Object.defineProperty(exports,"clickToPositionInTableCell",{enumerable:true,get:function(){return chunkXWC67YLW_js.l}});Object.defineProperty(exports,"computeHfCaretRectFromView",{enumerable:true,get:function(){return chunkXWC67YLW_js.z}});Object.defineProperty(exports,"computeHfSelectionRectsFromView",{enumerable:true,get:function(){return chunkXWC67YLW_js.A}});Object.defineProperty(exports,"convertHeaderFooterPmDocToContent",{enumerable:true,get:function(){return chunkXWC67YLW_js.x}});Object.defineProperty(exports,"convertHeaderFooterToContent",{enumerable:true,get:function(){return chunkXWC67YLW_js.w}});Object.defineProperty(exports,"getCaretPosition",{enumerable:true,get:function(){return chunkXWC67YLW_js.q}});Object.defineProperty(exports,"getMargins",{enumerable:true,get:function(){return chunkXWC67YLW_js.G}});Object.defineProperty(exports,"getPageBounds",{enumerable:true,get:function(){return chunkXWC67YLW_js.j}});Object.defineProperty(exports,"getPageIndexAtY",{enumerable:true,get:function(){return chunkXWC67YLW_js.c}});Object.defineProperty(exports,"getPageSize",{enumerable:true,get:function(){return chunkXWC67YLW_js.F}});Object.defineProperty(exports,"getPageTop",{enumerable:true,get:function(){return chunkXWC67YLW_js.b}});Object.defineProperty(exports,"getPositionRect",{enumerable:true,get:function(){return chunkXWC67YLW_js.o}});Object.defineProperty(exports,"getScrollYForPage",{enumerable:true,get:function(){return chunkXWC67YLW_js.i}});Object.defineProperty(exports,"getTotalDocumentHeight",{enumerable:true,get:function(){return chunkXWC67YLW_js.h}});Object.defineProperty(exports,"groupRectsByPage",{enumerable:true,get:function(){return chunkXWC67YLW_js.s}});Object.defineProperty(exports,"hitTest",{enumerable:true,get:function(){return chunkXWC67YLW_js.g}});Object.defineProperty(exports,"hitTestFragment",{enumerable:true,get:function(){return chunkXWC67YLW_js.d}});Object.defineProperty(exports,"hitTestImageFragment",{enumerable:true,get:function(){return chunkXWC67YLW_js.e}});Object.defineProperty(exports,"hitTestPage",{enumerable:true,get:function(){return chunkXWC67YLW_js.a}});Object.defineProperty(exports,"hitTestTableCell",{enumerable:true,get:function(){return chunkXWC67YLW_js.f}});Object.defineProperty(exports,"invalidateHfDomCache",{enumerable:true,get:function(){return chunkXWC67YLW_js.y}});Object.defineProperty(exports,"isMultiPageSelection",{enumerable:true,get:function(){return chunkXWC67YLW_js.r}});Object.defineProperty(exports,"normalizeHeaderFooterMeasureBlocks",{enumerable:true,get:function(){return chunkXWC67YLW_js.t}});Object.defineProperty(exports,"positionToX",{enumerable:true,get:function(){return chunkXWC67YLW_js.n}});Object.defineProperty(exports,"resolveHeaderFooter",{enumerable:true,get:function(){return chunkXWC67YLW_js.H}});Object.defineProperty(exports,"resolveHeaderFooterVisualTop",{enumerable:true,get:function(){return chunkXWC67YLW_js.u}});Object.defineProperty(exports,"selectionToRects",{enumerable:true,get:function(){return chunkXWC67YLW_js.p}});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}});Object.defineProperty(exports,"FOOTNOTE_SEPARATOR_HEIGHT",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.a}});Object.defineProperty(exports,"MAX_FOOTNOTE_LAYOUT_PASSES",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.b}});Object.defineProperty(exports,"applyFootnotePresentation",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.f}});Object.defineProperty(exports,"buildFootnoteContentMap",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.h}});Object.defineProperty(exports,"buildFootnoteRenderItems",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.k}});Object.defineProperty(exports,"calculateFootnoteReservedHeights",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.i}});Object.defineProperty(exports,"collectFootnoteRefs",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.d}});Object.defineProperty(exports,"convertFootnoteToContent",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.g}});Object.defineProperty(exports,"footnoteReservedHeightsEqual",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.c}});Object.defineProperty(exports,"mapFootnotesToPages",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.e}});Object.defineProperty(exports,"stabilizeFootnoteLayout",{enumerable:true,get:function(){return chunkWDBZ3QVB_js.j}});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,"clickToPositionDom",{enumerable:true,get:function(){return chunk7WGN2OBZ_js.e}});Object.defineProperty(exports,"clipRectToTableWindow",{enumerable:true,get:function(){return chunk7WGN2OBZ_js.f}});Object.defineProperty(exports,"findBodyEmptyRuns",{enumerable:true,get:function(){return chunk7WGN2OBZ_js.b}});Object.defineProperty(exports,"findBodyPmAnchor",{enumerable:true,get:function(){return chunk7WGN2OBZ_js.d}});Object.defineProperty(exports,"findBodyPmAnchors",{enumerable:true,get:function(){return chunk7WGN2OBZ_js.c}});Object.defineProperty(exports,"findBodyPmSpans",{enumerable:true,get:function(){return chunk7WGN2OBZ_js.a}});Object.defineProperty(exports,"getCaretPositionFromDom",{enumerable:true,get:function(){return chunk7WGN2OBZ_js.h}});Object.defineProperty(exports,"getSelectionRectsFromDom",{enumerable:true,get:function(){return chunk7WGN2OBZ_js.g}});Object.defineProperty(exports,"mouseToPosition",{enumerable:true,get:function(){return chunk7WGN2OBZ_js.e}});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,"measureTableBlock",{enumerable:true,get:function(){return chunkTURYWKNS_js.j}});Object.defineProperty(exports,"measureTableCellBlockVisualHeight",{enumerable:true,get:function(){return chunkTURYWKNS_js.i}});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,"countTableColumns",{enumerable:true,get:function(){return chunkT4RYVPAB_js.c}});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,"normalizeTableColumnWidths",{enumerable:true,get:function(){return chunkT4RYVPAB_js.d}});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,"resolveCellGrid",{enumerable:true,get:function(){return chunkT4RYVPAB_js.b}});Object.defineProperty(exports,"resolveTableWidthPx",{enumerable:true,get:function(){return chunkT4RYVPAB_js.a}});Object.defineProperty(exports,"twipsToPx",{enumerable:true,get:function(){return chunkT4RYVPAB_js.n}});Object.defineProperty(exports,"resetBlockIdCounter",{enumerable:true,get:function(){return chunkIMKU4O3P_js.d}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{D as DEFAULT_BODY_MARGIN_PX,E as DEFAULT_HF_DISTANCE_PX,C as DEFAULT_PAGE_HEIGHT_PX,B as DEFAULT_PAGE_WIDTH_PX,v as calculateHeaderFooterVisualBounds,m as clickToPosition,k as clickToPositionInParagraph,l as clickToPositionInTableCell,z as computeHfCaretRectFromView,A as computeHfSelectionRectsFromView,x as convertHeaderFooterPmDocToContent,w as convertHeaderFooterToContent,q as getCaretPosition,G as getMargins,j as getPageBounds,c as getPageIndexAtY,F as getPageSize,b as getPageTop,o as getPositionRect,i as getScrollYForPage,h as getTotalDocumentHeight,s as groupRectsByPage,g as hitTest,d as hitTestFragment,e as hitTestImageFragment,a as hitTestPage,f as hitTestTableCell,y as invalidateHfDomCache,r as isMultiPageSelection,t as normalizeHeaderFooterMeasureBlocks,n as positionToX,H as resolveHeaderFooter,u as resolveHeaderFooterVisualTop,p as selectionToRects}from'../chunk-
|
|
1
|
+
export{D as DEFAULT_BODY_MARGIN_PX,E as DEFAULT_HF_DISTANCE_PX,C as DEFAULT_PAGE_HEIGHT_PX,B as DEFAULT_PAGE_WIDTH_PX,v as calculateHeaderFooterVisualBounds,m as clickToPosition,k as clickToPositionInParagraph,l as clickToPositionInTableCell,z as computeHfCaretRectFromView,A as computeHfSelectionRectsFromView,x as convertHeaderFooterPmDocToContent,w as convertHeaderFooterToContent,q as getCaretPosition,G as getMargins,j as getPageBounds,c as getPageIndexAtY,F as getPageSize,b as getPageTop,o as getPositionRect,i as getScrollYForPage,h as getTotalDocumentHeight,s as groupRectsByPage,g as hitTest,d as hitTestFragment,e as hitTestImageFragment,a as hitTestPage,f as hitTestTableCell,y as invalidateHfDomCache,r as isMultiPageSelection,t as normalizeHeaderFooterMeasureBlocks,n as positionToX,H as resolveHeaderFooter,u as resolveHeaderFooterVisualTop,p as selectionToRects}from'../chunk-JUMHC5Z6.mjs';export{a as TABLE_INSERT_EDGE_PROXIMITY,b as TABLE_INSERT_HIDE_DELAY_MS,c as detectTableInsertHover}from'../chunk-L6YTCHOQ.mjs';export{a as FOOTNOTE_SEPARATOR_HEIGHT,b as MAX_FOOTNOTE_LAYOUT_PASSES,f as applyFootnotePresentation,h as buildFootnoteContentMap,k as buildFootnoteRenderItems,i as calculateFootnoteReservedHeights,d as collectFootnoteRefs,g as convertFootnoteToContent,c as footnoteReservedHeightsEqual,e as mapFootnotesToPages,j as stabilizeFootnoteLayout}from'../chunk-7JQVKJRN.mjs';export{a as convertBorderSpecToLayout,b as resolveListTemplate,c as toFlowBlocks}from'../chunk-B46V5G46.mjs';export{e as clickToPositionDom,f as clipRectToTableWindow,b as findBodyEmptyRuns,d as findBodyPmAnchor,c as findBodyPmAnchors,a as findBodyPmSpans,h as getCaretPositionFromDom,g as getSelectionRectsFromDom,e as mouseToPosition}from'../chunk-MEVZCB56.mjs';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,j as measureTableBlock,i as measureTableCellBlockVisualHeight,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,c as countTableColumns,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,d as normalizeTableColumnWidths,p as ptToPx,s as pxToHalfPt,q as pxToPt,o as pxToTwips,t as rectsToFloatingZones,f as resetCanvasContext,b as resolveCellGrid,a as resolveTableWidthPx,n as twipsToPx}from'../chunk-72KLR6TJ.mjs';export{d as resetBlockIdCounter}from'../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';
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
import { WrapTextDirection, TextRun, ParagraphBlock, ParagraphMeasure, FlowBlock, Measure } from '../../layout-engine/types.mjs';
|
|
10
|
-
import '../../
|
|
10
|
+
import { P as PageGeometry } from '../../anchoredObjectPosition-KJEyF-wr.mjs';
|
|
11
|
+
import '../../content-3xF4WDE8.mjs';
|
|
11
12
|
import '../../formatting-BH4hcZiq.mjs';
|
|
12
13
|
import '../../colors-C3vA7HUU.mjs';
|
|
13
14
|
import '../../docx/wrapTypes.mjs';
|
|
15
|
+
import '../../watermark-DAcnAs_J.mjs';
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* Measurement container for text layout
|
|
@@ -177,6 +179,11 @@ interface FloatingImageZone {
|
|
|
177
179
|
topY: number;
|
|
178
180
|
bottomY: number;
|
|
179
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;
|
|
180
187
|
}
|
|
181
188
|
interface FloatingLineSegmentZone {
|
|
182
189
|
leftOffset: number;
|
|
@@ -274,15 +281,30 @@ declare function getRunCharWidths(run: TextRun): number[];
|
|
|
274
281
|
* @public
|
|
275
282
|
*/
|
|
276
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;
|
|
277
293
|
/**
|
|
278
294
|
* Walk `blocks` and produce one `Measure` per block. Before measuring, this
|
|
279
295
|
* extracts floating exclusion zones (images / floating tables / floating
|
|
280
296
|
* textboxes), groups overlapping co-located floats, and threads the active
|
|
281
297
|
* zones plus cumulative Y into each `measureBlock` call.
|
|
282
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
|
+
*
|
|
283
305
|
* @public
|
|
284
306
|
*/
|
|
285
|
-
declare function measureBlocksWithFloats(blocks: FlowBlock[], contentWidth: number | number[], measureBlock: MeasureBlockFn): Measure[];
|
|
307
|
+
declare function measureBlocksWithFloats(blocks: FlowBlock[], contentWidth: number | number[], measureBlock: MeasureBlockFn, pageGeometry?: FloatPageGeometry): Measure[];
|
|
286
308
|
|
|
287
309
|
/**
|
|
288
310
|
* Measurement Cache
|
|
@@ -374,4 +396,4 @@ declare function clearAllCaches(): void;
|
|
|
374
396
|
*/
|
|
375
397
|
declare function getTotalCacheSize(): number;
|
|
376
398
|
|
|
377
|
-
export { 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 };
|
|
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 };
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
import { WrapTextDirection, TextRun, ParagraphBlock, ParagraphMeasure, FlowBlock, Measure } from '../../layout-engine/types.js';
|
|
10
|
-
import '../../
|
|
10
|
+
import { P as PageGeometry } from '../../anchoredObjectPosition-CS-8BfhO.js';
|
|
11
|
+
import '../../content-C8fc_tL6.js';
|
|
11
12
|
import '../../formatting-_OXU8gLB.js';
|
|
12
13
|
import '../../colors-C3vA7HUU.js';
|
|
13
14
|
import '../../docx/wrapTypes.js';
|
|
15
|
+
import '../../watermark-DAcnAs_J.js';
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* Measurement container for text layout
|
|
@@ -177,6 +179,11 @@ interface FloatingImageZone {
|
|
|
177
179
|
topY: number;
|
|
178
180
|
bottomY: number;
|
|
179
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;
|
|
180
187
|
}
|
|
181
188
|
interface FloatingLineSegmentZone {
|
|
182
189
|
leftOffset: number;
|
|
@@ -274,15 +281,30 @@ declare function getRunCharWidths(run: TextRun): number[];
|
|
|
274
281
|
* @public
|
|
275
282
|
*/
|
|
276
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;
|
|
277
293
|
/**
|
|
278
294
|
* Walk `blocks` and produce one `Measure` per block. Before measuring, this
|
|
279
295
|
* extracts floating exclusion zones (images / floating tables / floating
|
|
280
296
|
* textboxes), groups overlapping co-located floats, and threads the active
|
|
281
297
|
* zones plus cumulative Y into each `measureBlock` call.
|
|
282
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
|
+
*
|
|
283
305
|
* @public
|
|
284
306
|
*/
|
|
285
|
-
declare function measureBlocksWithFloats(blocks: FlowBlock[], contentWidth: number | number[], measureBlock: MeasureBlockFn): Measure[];
|
|
307
|
+
declare function measureBlocksWithFloats(blocks: FlowBlock[], contentWidth: number | number[], measureBlock: MeasureBlockFn, pageGeometry?: FloatPageGeometry): Measure[];
|
|
286
308
|
|
|
287
309
|
/**
|
|
288
310
|
* Measurement Cache
|
|
@@ -374,4 +396,4 @@ declare function clearAllCaches(): void;
|
|
|
374
396
|
*/
|
|
375
397
|
declare function getTotalCacheSize(): number;
|
|
376
398
|
|
|
377
|
-
export { 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 };
|
|
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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
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 +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-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 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
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 +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-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';
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { Node } from 'prosemirror-model';
|
|
14
14
|
import { BorderStyle, FlowBlock } from '../layout-engine/types.mjs';
|
|
15
|
-
import { T as Theme } from '../styles-
|
|
16
|
-
import {
|
|
15
|
+
import { T as Theme } from '../styles-BOJ93SAm.mjs';
|
|
16
|
+
import { N as NumberFormat } from '../content-3xF4WDE8.mjs';
|
|
17
17
|
import '../formatting-BH4hcZiq.mjs';
|
|
18
18
|
import '../colors-C3vA7HUU.mjs';
|
|
19
19
|
import '../docx/wrapTypes.mjs';
|
|
20
|
+
import '../watermark-DAcnAs_J.mjs';
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* Shared types and primitive helpers used across toFlowBlocks sub-modules.
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { Node } from 'prosemirror-model';
|
|
14
14
|
import { BorderStyle, FlowBlock } from '../layout-engine/types.js';
|
|
15
|
-
import { T as Theme } from '../styles-
|
|
16
|
-
import {
|
|
15
|
+
import { T as Theme } from '../styles-BWqX2AS-.js';
|
|
16
|
+
import { N as NumberFormat } from '../content-C8fc_tL6.js';
|
|
17
17
|
import '../formatting-_OXU8gLB.js';
|
|
18
18
|
import '../colors-C3vA7HUU.js';
|
|
19
19
|
import '../docx/wrapTypes.js';
|
|
20
|
+
import '../watermark-DAcnAs_J.js';
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* Shared types and primitive helpers used across toFlowBlocks sub-modules.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
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 +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-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';
|
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
import { Page, PageMargins, ColumnLayout, Fragment, FlowBlock, Measure, SectionBreakBlock, Layout, TextBoxBlock, TableMeasure, LayoutOptions } from './types.mjs';
|
|
13
13
|
export { BlockId, BorderStyle, CellBorderSpec, CellBorders, ColumnBreakBlock, ColumnBreakMeasure, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, DocumentPosition, FieldRun, FloatingTablePosition, FootnoteContent, FragmentBase, HeaderFooterContentHeights, HeaderFooterLayout, HitTestResult, HyperlinkInfo, ImageBlock, ImageFragment, ImageMeasure, ImageRun, ImageRunPosition, LineBreakRun, ListNumPr, MeasuredLine, MeasuredLineSegment, PageBreakBlock, PageBreakMeasure, ParagraphAttrs, ParagraphBlock, ParagraphBorders, ParagraphFragment, ParagraphIndent, ParagraphMeasure, ParagraphSpacing, Run, RunFormatting, SdtGroup, SectionBreakMeasure, TabAlignment, TabRun, TabStop, TableBlock, TableCell, TableCellMeasure, TableFragment, TableRow, TableRowMeasure, TextBoxFragment, TextBoxMeasure, TextRun, WrapTextDirection, assertExhaustiveFlowBlock } from './types.mjs';
|
|
14
14
|
export { isFloatingWrapType, isWrapNone, wrapsAroundText } from '../docx/wrapTypes.mjs';
|
|
15
|
-
import '../content-
|
|
15
|
+
import '../content-3xF4WDE8.mjs';
|
|
16
16
|
import '../formatting-BH4hcZiq.mjs';
|
|
17
17
|
import '../colors-C3vA7HUU.mjs';
|
|
18
|
+
import '../watermark-DAcnAs_J.mjs';
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* Paginator - manages page state during layout
|
|
@@ -280,11 +281,23 @@ type TextBoxFlowAttrs = Pick<TextBoxBlock, 'displayMode' | 'wrapType'>;
|
|
|
280
281
|
* True when a text box participates in float layout — either via the
|
|
281
282
|
* `float` display mode (CSS-style) or via an OOXML `wrapType` that
|
|
282
283
|
* positions the box outside paragraph flow (`square`, `tight`, `through`,
|
|
283
|
-
* `behind`, `inFront`).
|
|
284
|
+
* `behind`, `inFront`, `topAndBottom`).
|
|
285
|
+
*
|
|
286
|
+
* `topAndBottom` is positioned (it honours its OOXML anchor, e.g. a banner
|
|
287
|
+
* pinned to the top of the page) even though text never wraps beside it —
|
|
288
|
+
* see {@link floatingTextBoxReservesBand}.
|
|
284
289
|
*
|
|
285
290
|
* @public
|
|
286
291
|
*/
|
|
287
292
|
declare function isFloatingTextBoxBlock(block: TextBoxFlowAttrs): boolean;
|
|
293
|
+
/**
|
|
294
|
+
* True when a floating text box reserves a full-width vertical band rather
|
|
295
|
+
* than a side exclusion. `topAndBottom` boxes break the text above and below
|
|
296
|
+
* the box (no text beside it), so surrounding lines flow past the band.
|
|
297
|
+
*
|
|
298
|
+
* @public
|
|
299
|
+
*/
|
|
300
|
+
declare function floatingTextBoxReservesBand(block: TextBoxFlowAttrs): boolean;
|
|
288
301
|
/**
|
|
289
302
|
* True when a floating text box reserves an exclusion zone that narrows
|
|
290
303
|
* surrounding text lines. `wrapNone` (`behind` / `inFront`) and
|
|
@@ -349,4 +362,4 @@ declare function layoutDocument(blocks: FlowBlock[], measures: Measure[], option
|
|
|
349
362
|
*/
|
|
350
363
|
declare function getHeaderRowsHeight(measure: TableMeasure, headerRowCount: number): number;
|
|
351
364
|
|
|
352
|
-
export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, TextBoxBlock, type TextBoxFlowAttrs, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, floatingTextBoxWrapsText, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, isFloatingTextBoxBlock, layoutDocument, scheduleSectionBreak };
|
|
365
|
+
export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, TextBoxBlock, type TextBoxFlowAttrs, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, floatingTextBoxReservesBand, floatingTextBoxWrapsText, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, isFloatingTextBoxBlock, layoutDocument, scheduleSectionBreak };
|
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
import { Page, PageMargins, ColumnLayout, Fragment, FlowBlock, Measure, SectionBreakBlock, Layout, TextBoxBlock, TableMeasure, LayoutOptions } from './types.js';
|
|
13
13
|
export { BlockId, BorderStyle, CellBorderSpec, CellBorders, ColumnBreakBlock, ColumnBreakMeasure, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, DocumentPosition, FieldRun, FloatingTablePosition, FootnoteContent, FragmentBase, HeaderFooterContentHeights, HeaderFooterLayout, HitTestResult, HyperlinkInfo, ImageBlock, ImageFragment, ImageMeasure, ImageRun, ImageRunPosition, LineBreakRun, ListNumPr, MeasuredLine, MeasuredLineSegment, PageBreakBlock, PageBreakMeasure, ParagraphAttrs, ParagraphBlock, ParagraphBorders, ParagraphFragment, ParagraphIndent, ParagraphMeasure, ParagraphSpacing, Run, RunFormatting, SdtGroup, SectionBreakMeasure, TabAlignment, TabRun, TabStop, TableBlock, TableCell, TableCellMeasure, TableFragment, TableRow, TableRowMeasure, TextBoxFragment, TextBoxMeasure, TextRun, WrapTextDirection, assertExhaustiveFlowBlock } from './types.js';
|
|
14
14
|
export { isFloatingWrapType, isWrapNone, wrapsAroundText } from '../docx/wrapTypes.js';
|
|
15
|
-
import '../content-
|
|
15
|
+
import '../content-C8fc_tL6.js';
|
|
16
16
|
import '../formatting-_OXU8gLB.js';
|
|
17
17
|
import '../colors-C3vA7HUU.js';
|
|
18
|
+
import '../watermark-DAcnAs_J.js';
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* Paginator - manages page state during layout
|
|
@@ -280,11 +281,23 @@ type TextBoxFlowAttrs = Pick<TextBoxBlock, 'displayMode' | 'wrapType'>;
|
|
|
280
281
|
* True when a text box participates in float layout — either via the
|
|
281
282
|
* `float` display mode (CSS-style) or via an OOXML `wrapType` that
|
|
282
283
|
* positions the box outside paragraph flow (`square`, `tight`, `through`,
|
|
283
|
-
* `behind`, `inFront`).
|
|
284
|
+
* `behind`, `inFront`, `topAndBottom`).
|
|
285
|
+
*
|
|
286
|
+
* `topAndBottom` is positioned (it honours its OOXML anchor, e.g. a banner
|
|
287
|
+
* pinned to the top of the page) even though text never wraps beside it —
|
|
288
|
+
* see {@link floatingTextBoxReservesBand}.
|
|
284
289
|
*
|
|
285
290
|
* @public
|
|
286
291
|
*/
|
|
287
292
|
declare function isFloatingTextBoxBlock(block: TextBoxFlowAttrs): boolean;
|
|
293
|
+
/**
|
|
294
|
+
* True when a floating text box reserves a full-width vertical band rather
|
|
295
|
+
* than a side exclusion. `topAndBottom` boxes break the text above and below
|
|
296
|
+
* the box (no text beside it), so surrounding lines flow past the band.
|
|
297
|
+
*
|
|
298
|
+
* @public
|
|
299
|
+
*/
|
|
300
|
+
declare function floatingTextBoxReservesBand(block: TextBoxFlowAttrs): boolean;
|
|
288
301
|
/**
|
|
289
302
|
* True when a floating text box reserves an exclusion zone that narrows
|
|
290
303
|
* surrounding text lines. `wrapNone` (`behind` / `inFront`) and
|
|
@@ -349,4 +362,4 @@ declare function layoutDocument(blocks: FlowBlock[], measures: Measure[], option
|
|
|
349
362
|
*/
|
|
350
363
|
declare function getHeaderRowsHeight(measure: TableMeasure, headerRowCount: number): number;
|
|
351
364
|
|
|
352
|
-
export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, TextBoxBlock, type TextBoxFlowAttrs, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, floatingTextBoxWrapsText, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, isFloatingTextBoxBlock, layoutDocument, scheduleSectionBreak };
|
|
365
|
+
export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, TextBoxBlock, type TextBoxFlowAttrs, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, floatingTextBoxReservesBand, floatingTextBoxWrapsText, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, isFloatingTextBoxBlock, layoutDocument, scheduleSectionBreak };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
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 +1 @@
|
|
|
1
|
-
export{
|
|
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';
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { R as RevisionInfo, C as CellMarker } from '../content-3xF4WDE8.mjs';
|
|
10
10
|
import '../formatting-BH4hcZiq.mjs';
|
|
11
11
|
import '../colors-C3vA7HUU.mjs';
|
|
12
12
|
import '../docx/wrapTypes.mjs';
|
|
13
|
+
import '../watermark-DAcnAs_J.mjs';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* Layout Engine Types
|
|
@@ -419,6 +420,12 @@ type TableRow = {
|
|
|
419
420
|
height?: number;
|
|
420
421
|
heightRule?: 'auto' | 'atLeast' | 'exact';
|
|
421
422
|
isHeader?: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* `w:cantSplit` (§17.4.6): the row may not break across a page boundary.
|
|
425
|
+
* The layout engine keeps such a row whole, moving it wholesale to the next
|
|
426
|
+
* page rather than splitting its content.
|
|
427
|
+
*/
|
|
428
|
+
cantSplit?: boolean;
|
|
422
429
|
/** Tracked row ins / del (`<w:trPr><w:ins/>` / `<w:del/>`). */
|
|
423
430
|
trackedIns?: RevisionInfo;
|
|
424
431
|
/** see trackedIns */ trackedDel?: RevisionInfo;
|
|
@@ -789,6 +796,20 @@ type TableFragment = FragmentBase & {
|
|
|
789
796
|
continuesOnNext?: boolean;
|
|
790
797
|
/** Number of header rows prepended to this continuation fragment (0 or undefined for first fragment). */
|
|
791
798
|
headerRowCount?: number;
|
|
799
|
+
/**
|
|
800
|
+
* Pixels to skip from the top of `fromRow`. Non-zero when this fragment's
|
|
801
|
+
* first row is the continuation of a row that broke across a page boundary
|
|
802
|
+
* (Word's "allow row to break across pages"). The painter renders the row
|
|
803
|
+
* shifted up by this amount so the already-shown top slice is clipped.
|
|
804
|
+
*/
|
|
805
|
+
topClip?: number;
|
|
806
|
+
/**
|
|
807
|
+
* Visible height (px) measured from the top of the LAST row (`toRow - 1`).
|
|
808
|
+
* Set when that row breaks mid-content onto the next page; `undefined`
|
|
809
|
+
* means the last row is fully visible. When `fromRow === toRow - 1`, the
|
|
810
|
+
* visible band of that single row is `[topClip, bottomClip)`.
|
|
811
|
+
*/
|
|
812
|
+
bottomClip?: number;
|
|
792
813
|
};
|
|
793
814
|
/**
|
|
794
815
|
* An image fragment positioned on a page.
|