@docx-editor.dev/core 2.27.0 → 2.29.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/automation.cjs +1 -1
- package/dist/automation.d.ts +76 -16
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +31 -12
- package/dist/binding.js +1 -1
- package/dist/{index-CkQVRJtJ.d.ts → chrome-print-CAs51cpq.d.ts} +248 -115
- package/dist/chunk-236O4YQW.js +2 -0
- package/dist/chunk-4HENIAFG.js +1 -0
- package/dist/chunk-6JPL6ZAS.cjs +5 -0
- package/dist/chunk-6ZQP4HQ7.js +3 -0
- package/dist/{chunk-2GK7YQB2.cjs → chunk-7WQ7AAHW.cjs} +1 -1
- package/dist/chunk-BCXH4BXB.js +5 -0
- package/dist/chunk-BY2ACZZ6.cjs +1 -0
- package/dist/chunk-CAJEXXVG.cjs +4 -0
- package/dist/chunk-CPWLFPWC.js +30 -0
- package/dist/chunk-D7ZMDMPX.cjs +3 -0
- package/dist/chunk-DOHF6FA7.cjs +30 -0
- package/dist/chunk-DVX32P2P.js +27 -0
- package/dist/chunk-E4LOMDNL.js +1 -0
- package/dist/chunk-EKLM7NWB.cjs +7 -0
- package/dist/chunk-G3K63G7P.cjs +27 -0
- package/dist/chunk-G4HOFIKJ.js +1 -0
- package/dist/chunk-JLVBDYVQ.cjs +2 -0
- package/dist/chunk-LQX36Z5P.js +7 -0
- package/dist/chunk-LSZ6KPKK.js +1 -0
- package/dist/chunk-MM5QBMTE.cjs +1 -0
- package/dist/chunk-OMCG63ZF.js +1 -0
- package/dist/chunk-OSFOJTHU.cjs +18 -0
- package/dist/chunk-RCLZXP3B.js +2 -0
- package/dist/chunk-T6K2QYNZ.cjs +2 -0
- package/dist/chunk-TRGAVV2Y.js +4 -0
- package/dist/chunk-U4JZVSOE.js +2 -0
- package/dist/chunk-UHHYFIDT.cjs +1 -0
- package/dist/chunk-V3N4SOAK.cjs +1 -0
- package/dist/chunk-W35WTWAO.cjs +1 -0
- package/dist/chunk-YQ5G6LC7.js +18 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +42 -6
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.cjs +1 -1
- package/dist/collaboration.d.ts +99 -7
- package/dist/collaboration.js +1 -1
- package/dist/contracts/document.d.ts +18 -3
- package/dist/contracts/editor.d.ts +19 -10
- package/dist/contracts/interaction.d.ts +31 -2
- package/dist/contracts/modules.cjs +1 -1
- package/dist/contracts/modules.d.ts +56 -8
- package/dist/contracts/modules.js +1 -1
- package/dist/contracts/types.d.ts +11 -2
- package/dist/{custom-node-writes-Vzpq9I8_.d.ts → custom-node-writes-Bn6uciLb.d.ts} +2 -2
- package/dist/diagnostic-context-B8M79cfK.d.ts +30 -0
- package/dist/diagnostic-hints-BeVjfNOv.d.ts +113 -0
- package/dist/{document-protection-9zpIHWTE.d.ts → document-protection-CUb55pl_.d.ts} +2 -2
- package/dist/{editor-B3OBYNrF.d.ts → editor-CZQZmTIU.d.ts} +770 -141
- package/dist/{editor-scope-OHPwVQ5l.d.ts → editor-scope-7o9xweiJ.d.ts} +1 -1
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +5 -5
- package/dist/editor.d.ts +439 -33
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +23 -14
- package/dist/export.js +2 -2
- package/dist/failure-NS2lsya4.d.ts +115 -0
- package/dist/{font-resolver-DN0xNOf_.d.ts → font-resolver-lSBLirLR.d.ts} +3 -3
- package/dist/{headless-document-view-ICYqNkQ1.d.ts → headless-document-view-pp3q7wIh.d.ts} +2 -2
- package/dist/{image-resources-BDFxcu7W.d.ts → image-resources-tXLQShoC.d.ts} +10 -10
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +92 -20
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-BvZD_VKP.d.ts → layout-shaping-BD-dF_rn.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +168 -79
- package/dist/layout.js +1 -1
- package/dist/{note-properties-CkAk7g-n.d.ts → note-properties-qQUjO1GQ.d.ts} +3 -3
- package/dist/{omml-equation-DuczgG5o.d.ts → omml-equation-BUbU0utM.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +18 -9
- package/dist/output.js +1 -1
- package/dist/{protocol-aKYr8r3u.d.ts → protocol-DYzzz2ej.d.ts} +44 -4
- package/dist/{review-paragraph-order-Ddj5d6rp.d.ts → review-paragraph-order-CN_0l2Cb.d.ts} +5 -2
- package/dist/{semantic-cell-selection-DoqYCz_F.d.ts → semantic-cell-selection-eYag3P47.d.ts} +8 -213
- package/dist/{semantic-interaction-G0bjmmmk.d.ts → semantic-interaction-kR_QB845.d.ts} +25 -34
- package/dist/{semantic-paint-CsMzF8-O.d.ts → semantic-paint-ZayFF3tD.d.ts} +17 -5
- package/dist/{semantic-record-queries-1du6lQqS.d.ts → semantic-record-queries-Bsgth6lv.d.ts} +1 -1
- package/dist/{semantic-records-B9OolWGN.d.ts → semantic-records-DQmumPgL.d.ts} +1367 -884
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +1611 -1586
- package/dist/store.js +1 -1
- package/dist/{tree-package-fragment-DYZIk1rY.d.ts → tree-package-store-CovjNARF.d.ts} +157 -137
- package/dist/{tree-session-contract-DQVJOOkv.d.ts → tree-session-contract-CZVAGl51.d.ts} +8 -6
- package/dist/{types-barrel-BFKR8Pzp.d.ts → types-barrel-DuC5QBNC.d.ts} +352 -231
- package/package.json +3 -3
- package/dist/chunk-4KZ6L5YF.cjs +0 -15
- package/dist/chunk-55AT3MOU.cjs +0 -25
- package/dist/chunk-6ZQMII6V.js +0 -1
- package/dist/chunk-7IGCWG4H.js +0 -2
- package/dist/chunk-7MYITTAH.js +0 -5
- package/dist/chunk-AVKVRU7Z.cjs +0 -5
- package/dist/chunk-CWRBFNK5.cjs +0 -5
- package/dist/chunk-DGPA3TST.cjs +0 -27
- package/dist/chunk-DNXVNQEO.js +0 -1
- package/dist/chunk-FQN4KSFL.cjs +0 -7
- package/dist/chunk-GVUOWHTO.cjs +0 -1
- package/dist/chunk-GWQJ5774.js +0 -5
- package/dist/chunk-HAQ72KD7.js +0 -1
- package/dist/chunk-HO5XFO32.cjs +0 -3
- package/dist/chunk-IGR23DV2.js +0 -1
- package/dist/chunk-JSIX2EOH.js +0 -3
- package/dist/chunk-K246T47S.cjs +0 -1
- package/dist/chunk-KAXOGCGA.js +0 -1
- package/dist/chunk-LZLTN5A3.cjs +0 -1
- package/dist/chunk-NBCVVZOM.cjs +0 -1
- package/dist/chunk-O5INAWZQ.js +0 -1
- package/dist/chunk-OHAXVTWG.cjs +0 -1
- package/dist/chunk-S74GRBNE.js +0 -7
- package/dist/chunk-UBLUVNZR.js +0 -27
- package/dist/chunk-UMRSBLO7.js +0 -15
- package/dist/chunk-VIPMGGUT.js +0 -25
- package/dist/chunk-WG4KMSX2.cjs +0 -2
- package/dist/chunk-WRLKVNNR.cjs +0 -1
- package/dist/chunk-ZU7IVN6G.js +0 -2
- package/dist/failure-BIPVQbRm.d.ts +0 -65
- package/dist/revision-projection-CSNFudZY.d.ts +0 -242
package/dist/layout.d.ts
CHANGED
|
@@ -1,23 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import './
|
|
20
|
-
|
|
1
|
+
/**
|
|
2
|
+
* `@docx-editor.dev/core/layout` — DOM-free pagination, shaping, and hit testing.
|
|
3
|
+
*
|
|
4
|
+
* Text is measured through an injected `TextMeasurer` and shaped through an injected
|
|
5
|
+
* `TextShaper`, so the same code paginates in a browser and on a server. Points everywhere;
|
|
6
|
+
* twips convert at property-read boundaries.
|
|
7
|
+
*
|
|
8
|
+
* Incremental by construction: per-block cache keys and flow checkpoints mean a pass that
|
|
9
|
+
* changes nothing returns the previous pages by identity.
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
import { U as NumberingLevel, W as NumberingIndex, S as SemanticLayout, d as LayoutBox, X as DrawingPoint, Y as DrawingInsets, g as StyleSpanRecord, I as InlineDrawingRecord, Z as ModelRange, _ as RevisionAttribution, $ as TableBorderSide, a0 as TableFloatXSpec, a1 as TableFloatYSpec, P as ParagraphFragmentRecord, B as BlockFragmentRecord, A as AnchoredDrawingRecord, c as PageRecord, a2 as ResolvedListItem, a3 as RefFieldContext, T as TextMeasurer, a4 as InlineDrawingLayoutContext, a5 as CellBorderBox, a6 as TableBorderBox, a7 as TableCellStyleFormatting, a8 as TableFloatPosition, a9 as StyleCascadeTable, b as RevisionDisplayMode, aa as RevisionAuthorFilter, C as ContentControlBoundaryRecord$1, o as FixedPointRoundingMode, ab as FixedPoint, V as VersionedShapingLibrary, k as TextShaper, ac as FontByteValidator, v as ShapedRun, L as LineRecord, ad as SourceRange, ae as HyperlinkProjector, af as FieldLinkProjector, ag as StoryPageFieldNeeds, ah as HyperlinkFieldSpec, ai as SpanLinkRecord, aj as PageGeometry, ak as SectionColumns, al as SectionPageBorders, am as PageBorderFrameRecord, an as ParagraphBorderStrokeRecord, ao as StrikeoutStrokePt } from './semantic-records-DQmumPgL.js';
|
|
15
|
+
export { ap as AUTO_PARAGRAPH_SPACING_PT, aq as AbstractNumDefinition, ar as AnchoredDrawingLayoutFallback, as as BidiEmbeddingLevels, at as BorderGridGeometry, au as CascadedParagraphFormatting, av as CjkTypographySettings, aw as ContentControlGeometryFragment, ax as ContentControlLevel, f as ContentControlLock, ay as ContentControlMappedType, az as DEFAULT_PAGE_GEOMETRY, aA as DEFAULT_REVISION_DISPLAY_MODE, aB as DEFAULT_RUN_STYLE, aC as DEFAULT_SECTION_PROPERTIES, aD as DEFAULT_TAB_INTERVAL_PT, aE as DEFAULT_TAB_INTERVAL_TWIPS, aF as DeclaredFontSubstitution, aG as DocumentSection, aH as DocumentSectionsEnumeration, aI as DrawingClipFallback, aJ as DrawingGeometry, aK as DrawingGroupPictureRecord, aL as EMPTY_NUMBERING_INDEX, aM as EMPTY_TAB_STOPS, aN as EquationFractionGeometry, aO as EquationGeometry, aP as EquationNaryGeometry, aQ as EquationRadicalGeometry, aR as EquationRowGeometry, aS as EquationScriptGeometry, aT as EquationSpanRecord, aU as EquationTextGeometry, aV as FieldAtomMarker, aW as FontFingerprintInputs, p as FontRequest, aX as FontResolutionError, aY as FontResolutionErrorCode, aZ as FontResourceDefinition, a_ as FontResourceInstrumentation, F as FontResourceSnapshot, a$ as FontResourceSnapshotOptions, b0 as FontSlot, u as FontSubstitution, b1 as FontValidationResult, b2 as GlyphOutline, b3 as GroupTextboxStoryRecord, b4 as HARD_MAX_AGGREGATE_FONT_BYTES, b5 as HARD_MAX_FONT_BYTES, b6 as HARD_MAX_FONT_SOURCES, H as HeaderFooterStoryRecord, b7 as LevelOverride, b8 as LineSpacingRule, b9 as ListMarkerAlign, s as ListMarkerPictureRecord, ba as ListMarkerRecord, bb as ListSuffix, bc as MAX_BORDER_SPACE_PT, bd as MAX_BORDER_WIDTH_PT, be as MAX_DOCUMENT_SECTIONS, bf as MAX_LVL_OVERRIDES, bg as MAX_NUMBERING_DEFINITIONS, bh as MAX_PARAGRAPH_SPACING_PT, bi as MAX_SHAPING_CONTEXT, bj as MAX_STYLE_DEFINITIONS, bk as MAX_TABLE_BORDER_STROKES, bl as MAX_TAB_POSITION_TWIPS, bm as MAX_TAB_STOPS, n as NormalizationPolicy, N as NoteAreaRecord, e as NoteStoryRecord, bn as NumDefinition, bo as NumberingLevelIndent, bp as NumberingPictureBullet, bq as PAGE_BORDER_SIDES, br as PARAGRAPH_BORDER_SIDES, bs as PageBorderDisplay, bt as PageBorderOffsetFrom, bu as PageBorderSide, bv as PageBorderStrokeRecord, bw as PageBorderZOrder, bx as PageRefCalibrationCell, by as PageRefFieldProjection, bz as ParagraphAutoSpacingContext, bA as ParagraphBorderEdge, bB as ParagraphBorderSide, bC as ParagraphBorders, bD as ParagraphBottomBorderRecord, bE as ParagraphIndent, bF as ParagraphLayoutInputs, bG as ParagraphLineSpacing, bH as ParagraphSpacing, bI as RefFieldSpec, bJ as RefNoteParts, bK as ResolvedCellBorders, m as ResolvedFont, bL as ResolvedPictureBullet, l as ResolvedRunStyle, bM as ResolvedTabStops, bN as ResolvedTableBorderEdge, bO as ResolvedTableBorderEdgeSegment, bP as ResolvedUnderline, bQ as RevisionFilter, bR as RevisionKind, bS as SINGLE_LINE_SPACING, bT as ScriptItem, bU as SectionBreakMarkRecord, bV as SectionBreakType, bW as SectionColumnDefinition, bX as SectionMargins, bY as SectionPageNumbering, O as SectionProperties, bZ as SemanticArtifactRootStoryKind, b_ as SemanticArtifactStoryKind, b$ as SemanticCommentArtifactRecord, c0 as SemanticReviewArtifactOccurrence, c1 as SemanticReviewArtifactOccurrenceGeometry, c2 as SemanticReviewArtifactPosition, r as SemanticReviewArtifactRecord, c3 as SemanticReviewArtifactSource, c4 as SemanticTrackedChangeArtifactRecord, c5 as ShapeInput, c6 as ShapedCluster, c7 as ShapedFontSpan, c8 as ShapedGlyph, c9 as ShapedRunComparatorInputs, ca as ShapedVerticalMetrics, cb as ShapingContext, cc as ShapingEnvironment, cd as ShapingEnvironmentFingerprintInputs, j as ShapingEnvironmentInput, ce as StyleDefinition, cf as TAB_LEADER_GLYPH, cg as TabAlignment, ch as TabDestination, ci as TabLeader, cj as TabStop, ck as TableBorderSideName, cl as TableBorderStrokeRecord, i as TableCellFragmentRecord, cm as TableFragmentRecord, h as TableRowFragmentRecord, cn as TextDirection, co as TextboxStoryFallbackReason, cp as TextboxStoryLayout, cq as UnsupportedScriptError, cr as VerticalAlign, cs as appliedSpaceBefore, ct as applyLineSpacing, cu as baselineShiftPtOf, cv as borderExtentPt, cw as borderWeight, cx as bottomBorderExtentPt, cy as boundedStructuralFontValidator, cz as buildNumberingIndex, cA as buildStyleCascadeTable, cB as cascadeParagraphFormatting, cC as cascadeRunProperties, cD as cascadedBottomBorder, cE as cascadedParagraphBorders, cF as cascadedTabStops, cG as collapsedSpaceBefore, cH as createFontResourceSnapshot, cI as createShapedRun, cJ as createShapingEnvironment, cK as defaultTabIntervalFromSettings, cL as displayText, cM as enumerateDocumentSections, cN as enumerateDocumentSectionsBounded, cO as fixedPoint, cP as fontRequestKey, cQ as formatRevisionOf, cR as geometryOfSection, cS as glyphSizeFactorOf, cT as isValidStyleId, cU as itemizeScriptFontSlots, cV as layoutEquation, cW as markRevisionRemovesMark, cX as measureDisplayText, cY as mergeListIndent, cZ as nextTabDestination, c_ as pageBordersFingerprint, c$ as paragraphBorderExtentPt, d0 as paragraphBorderStrokeWidthPt, d1 as paragraphBorders, d2 as paragraphBordersFingerprint, d3 as paragraphBreaksBefore, d4 as paragraphContextualSpacing, d5 as paragraphLineSpacing, d6 as paragraphMarkFormatRevisionOf, d7 as paragraphMarkRevisionOf, d8 as paragraphMarkRevisionsOf, d9 as paragraphSectionNode, da as paragraphSpacing, db as paragraphTabStops, dc as parsePageBorders, dd as parsePageNumbering, de as parseRefInstruction, df as parseSectionProperties, dg as projectedSectionSourceIndexes, dh as readBorderSide, di as readCellBorders, dj as readNumPr, dk as readSectionProperties, dl as readTableBorders, dm as resolveBorderConflict, dn as resolveNumberingLevel, dp as resolveParagraphLayoutInputs, dq as resolveRunStyle, dr as resolveStoryListItems, ds as resolveStoryRefFields, dt as resolveTableCellBorderGrid, du as revisionAuthorFilter, dv as revisionsAreDeletion, dw as revisionsVisible, dx as runStylesEqual, dy as shapedRunComparatorInputs, dz as shapingEnvironmentFingerprint, dA as shapingEnvironmentFingerprintInputs, dB as shownMarkRevision, dC as styleForFontSlot, dD as tabAdvanceWidth, dE as tabStopsFingerprint, dF as withDefaultTabInterval, dG as withNumberingStyleLinks, dH as withResolvedListItems } from './semantic-records-DQmumPgL.js';
|
|
16
|
+
export { C as CacheLookup, b as CacheMiss, c as CacheProvenance, e as LayoutEnvironmentShapedMeasurerOptions, f as LayoutFontConfiguration, g as LayoutFontSource, h as LayoutFontSubstitution, i as LayoutShapingConfigurationError, j as LayoutShapingEnvironment, L as LayoutShapingInstrumentation, a as LayoutShapingOptions, O as OperationSnapshot, k as OperationSnapshotField, l as OperationSnapshotGuard, P as PreparedLayoutFontConfiguration, R as ResolvedCache, m as ResourceDependencyProvenance, S as ShapedMeasurerOptions, n as captureOperationSnapshot, o as createLayoutShapedMeasurer, p as createLayoutShaping, q as createShapedMeasurer, d as disposeLayoutShaping, r as guardOperationSnapshot, s as layoutFontConfigurationFingerprint, t as prepareLayoutFontConfiguration } from './layout-shaping-BD-dF_rn.js';
|
|
17
|
+
import { a as SemanticStoryKind, S as SemanticRootStoryKind, b as SemanticStoryVisit, T as TextboxOwnerRecord } from './semantic-record-queries-Bsgth6lv.js';
|
|
18
|
+
export { c as SemanticDrawingLayer, d as SemanticDrawingVisit, e as StoryDrawingContext, f as StoryDrawingHost, g as StoryParagraphFragmentContext, h as contentControlsOfLayout, i as effectiveContentControlLock, j as forEachSemanticDrawing, k as forEachSemanticStory, l as forEachStoryParagraphFragment, m as fragmentsOfParagraph, n as lineAtPosition, o as linesOf, p as paragraphFragmentsOf, q as paragraphFragmentsOfBlocks, u as unionLayoutBoxes } from './semantic-record-queries-Bsgth6lv.js';
|
|
19
|
+
import { aH as ImpactClass, N as OoxmlNode, ah as OoxmlProperty, ak as OoxmlElement, O as OoxmlPart, ag as TreeDocOp, Q as OoxmlPackage, be as ContentControlKind, bf as ContentControlLevel, bh as ContentControlLock, bb as ContentControlDataBinding, a as ReviewItem } from './types-barrel-DuC5QBNC.js';
|
|
20
|
+
export { b6 as CommentAnchor, b7 as CommentPosition, C as CommentRecord, b1 as CommentThreadState, aN as DrawingAccessibility, X as DrawingHorizontalReferenceFrame, aO as DrawingImageEffects, aP as DrawingTransform, $ as DrawingVerticalReferenceFrame, a1 as ImageWrapTarget, c as ReviewCommentItem, d as ReviewCustomItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, aI as SourceCrop, aM as TableBorderStyle, dD as VectorShapeComponent, aQ as VectorShapeProjection, cu as W15_NAMESPACE_URI, dE as activeReviewItem, cY as firstReviewRange, du as reviewItemKey, dF as reviewItemPositionRank, dv as reviewItemRanges, dG as reviewItemsAt, dH as reviewThreadRootOf } from './types-barrel-DuC5QBNC.js';
|
|
21
|
+
import { D as DocumentProperties, H as HeadlessDocumentView, r as relationshipTargetIn } from './headless-document-view-pp3q7wIh.js';
|
|
22
|
+
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties } from './note-properties-qQUjO1GQ.js';
|
|
23
|
+
import { e as TreeModelChange, N as NoteKind, aA as noteTypeOf, F as FieldResultsMode } from './tree-package-store-CovjNARF.js';
|
|
24
|
+
export { M as MAX_SDT_NESTING, c as collectFlowBlocks, a as commentBodyText, b as commentInitials, j as contentControlContentChildren, i as isContentControl, f as isContentControlContent, p as paragraphOrderOfPart } from './review-paragraph-order-CN_0l2Cb.js';
|
|
25
|
+
import { S as SemanticPosition, b as SelectionRect, a as SemanticSelection, C as CaretGeometry } from './semantic-interaction-kR_QB845.js';
|
|
26
|
+
export { c as CaretAtOptions, M as MoveCaretOptions, N as NavigationCommand, d as caretAt, e as caretStops, f as caretStopsForBlocks, g as compositionAnchor, h as contentControlsInLayout, i as deletedTextBoundaries, m as moveCaret, p as paragraphTextFromLayout, s as spansInSelection } from './semantic-interaction-kR_QB845.js';
|
|
27
|
+
export { C as CellSelection, D as DEFAULT_VERTICAL_WEIGHT, a as DrawingOverlayFrame, H as HitPoint, b as HitTestOptions, P as PlacedCell, S as SemanticHit, c as SemanticHitDrawing, T as TableCellAddress, d as TableCellContext, e as caretBoxOnLine, f as cellSelectionBetween, g as cellSelectionRects, h as cellSelectionText, i as contentControlAtPoint, j as findDrawingOverlayFrameInLayout, k as hitTestPage, l as hitTestSheet, m as isFurniturePoint, n as lineEndOffset, p as pageAtY, o as paragraphsInCells, s as spanOffsetX, q as spansInCells, t as tableContextAt } from './semantic-cell-selection-eYag3P47.js';
|
|
28
|
+
import './image-resources-tXLQShoC.js';
|
|
29
|
+
import './omml-equation-BUbU0utM.js';
|
|
30
|
+
import './editor-scope-7o9xweiJ.js';
|
|
21
31
|
|
|
22
32
|
/**
|
|
23
33
|
* The result of counting ONE list paragraph: the level that applied, the counter vector after it,
|
|
@@ -211,6 +221,67 @@ interface FieldPageContext {
|
|
|
211
221
|
*/
|
|
212
222
|
declare function formatPageNumber(value: number, format: string | undefined): string;
|
|
213
223
|
|
|
224
|
+
type WrapTextSide = 'bothSides' | 'left' | 'right' | 'largest';
|
|
225
|
+
interface WrapExclusionInput {
|
|
226
|
+
readonly mode: 'square' | 'tight' | 'through' | 'topAndBottom';
|
|
227
|
+
readonly contentBounds: LayoutBox;
|
|
228
|
+
readonly polygon: readonly DrawingPoint[] | null;
|
|
229
|
+
readonly clipPolygon: readonly DrawingPoint[] | null;
|
|
230
|
+
readonly wrapDistances: DrawingInsets;
|
|
231
|
+
readonly effectInsets: DrawingInsets;
|
|
232
|
+
readonly textSide: WrapTextSide;
|
|
233
|
+
readonly contentLeft: number;
|
|
234
|
+
readonly contentRight: number;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/** Paint layer relative to body text — not the OOXML wrap element. */
|
|
238
|
+
type DrawingPaintLayer = 'behind' | 'inFront';
|
|
239
|
+
/** The header or footer object a furniture exclusion zone comes from. */
|
|
240
|
+
interface FurnitureZoneSource {
|
|
241
|
+
readonly partName: string;
|
|
242
|
+
readonly kind: 'drawing' | 'table';
|
|
243
|
+
readonly nodeId: string;
|
|
244
|
+
}
|
|
245
|
+
interface ExclusionZone {
|
|
246
|
+
/** Objects outside body drawing flow publish their exclusion directly instead of synthesizing it. */
|
|
247
|
+
readonly sourceKind?: 'table' | 'frame' | 'furniture';
|
|
248
|
+
/**
|
|
249
|
+
* Placed by an earlier section on the sheet a `continuous` section continues on. Its anchor
|
|
250
|
+
* is not in the continued section, so the zone reaches every line and column there.
|
|
251
|
+
*/
|
|
252
|
+
readonly earlierSection?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* The header or footer object a `furniture` zone comes from. Node ids are unique only within
|
|
255
|
+
* one part, so a furniture zone is identified by its part, its kind, and its node together
|
|
256
|
+
* (see {@link exclusionZoneIdentity}), never by a composed id string.
|
|
257
|
+
*/
|
|
258
|
+
readonly furnitureSource?: FurnitureZoneSource;
|
|
259
|
+
readonly drawingNodeId: string;
|
|
260
|
+
readonly anchorParagraphId: string;
|
|
261
|
+
/** UTF-16 model offset of the anchor atom — exclusions apply at/after this point in the paragraph. */
|
|
262
|
+
readonly anchorModelStart: number;
|
|
263
|
+
/**
|
|
264
|
+
* The band's vertical position is resolved against the page or a margin, not against the
|
|
265
|
+
* anchor's own flow position, so it cannot move when the text beside it reflows.
|
|
266
|
+
*
|
|
267
|
+
* Such a band excludes every line it crosses on its page, including lines that PRECEDE the
|
|
268
|
+
* anchor — a picture pinned to the top of the margin wraps the paragraphs above its anchor
|
|
269
|
+
* exactly as it wraps the ones below. Flow-relative bands (`paragraph`, `line`) stay
|
|
270
|
+
* forward-only: reaching back would move the anchor that positions them.
|
|
271
|
+
*/
|
|
272
|
+
readonly pageFramedBand?: boolean;
|
|
273
|
+
readonly sourceOrder: number;
|
|
274
|
+
readonly paintLayer: DrawingPaintLayer;
|
|
275
|
+
readonly relativeHeight: number;
|
|
276
|
+
readonly allowOverlap: boolean;
|
|
277
|
+
/** Owning column index in a multi-column section — 0 for single-column and HF stories. */
|
|
278
|
+
readonly columnIndex: number;
|
|
279
|
+
/** Resolved top edge in page-content coordinates after overlap displacement. */
|
|
280
|
+
readonly y: number;
|
|
281
|
+
readonly verticalBand: LayoutBox;
|
|
282
|
+
readonly input: WrapExclusionInput;
|
|
283
|
+
}
|
|
284
|
+
|
|
214
285
|
type AutonumFieldKind = 'AUTONUM' | 'AUTONUMLGL' | 'AUTONUMOUT';
|
|
215
286
|
/** One recognized AUTONUM-family instruction: the kind and its supported switches. */
|
|
216
287
|
interface AutonumFieldSpec {
|
|
@@ -379,12 +450,14 @@ interface ParagraphLayoutCacheOptions {
|
|
|
379
450
|
* Entries retained before the least recently used are dropped.
|
|
380
451
|
*
|
|
381
452
|
* The default has to exceed a realistic document, or a full pass evicts exactly what the
|
|
382
|
-
* next one needs and the cache costs more than it saves.
|
|
453
|
+
* next one needs and the cache costs more than it saves. Unset, an estimated byte budget
|
|
454
|
+
* bounds the cache instead, because one cached break can be a hundred times another.
|
|
383
455
|
*/
|
|
384
456
|
readonly maxEntries?: number;
|
|
385
457
|
/** Keep placed breaks for later revisions. Default true; false bounds one-shot exporters. */
|
|
386
458
|
readonly retainAcrossPasses?: boolean;
|
|
387
459
|
}
|
|
460
|
+
|
|
388
461
|
/**
|
|
389
462
|
* A bounded least-recently-used cache with generation-scoped retention.
|
|
390
463
|
*
|
|
@@ -392,10 +465,10 @@ interface ParagraphLayoutCacheOptions {
|
|
|
392
465
|
* contains — every keystroke mints a new key for the paragraph being typed in — and an
|
|
393
466
|
* unbounded cache would hold every intermediate state of the session.
|
|
394
467
|
*
|
|
395
|
-
* The bound never evicts the CURRENT working set: entries
|
|
396
|
-
* retain or touched since it began are skipped, and the
|
|
397
|
-
* document is larger than
|
|
398
|
-
*
|
|
468
|
+
* The bound never evicts the CURRENT working set: entries named by this generation's
|
|
469
|
+
* retain or touched since it began are skipped, and the cache grows past its soft budget
|
|
470
|
+
* when a document is larger than it — evicting live entries made every full pass on a
|
|
471
|
+
* 500-page document re-measure the whole document.
|
|
399
472
|
*/
|
|
400
473
|
declare function createParagraphLayoutCache<T>(options?: ParagraphLayoutCacheOptions): ParagraphLayoutCache<T>;
|
|
401
474
|
|
|
@@ -414,55 +487,6 @@ interface FieldCodeRange {
|
|
|
414
487
|
}
|
|
415
488
|
type FieldCodeRanges = ReadonlyMap<string, readonly FieldCodeRange[]>;
|
|
416
489
|
|
|
417
|
-
type WrapTextSide = 'bothSides' | 'left' | 'right' | 'largest';
|
|
418
|
-
interface WrapExclusionInput {
|
|
419
|
-
readonly mode: 'square' | 'tight' | 'through' | 'topAndBottom';
|
|
420
|
-
readonly contentBounds: LayoutBox;
|
|
421
|
-
readonly polygon: readonly DrawingPoint[] | null;
|
|
422
|
-
readonly clipPolygon: readonly DrawingPoint[] | null;
|
|
423
|
-
readonly wrapDistances: DrawingInsets;
|
|
424
|
-
readonly effectInsets: DrawingInsets;
|
|
425
|
-
readonly textSide: WrapTextSide;
|
|
426
|
-
readonly contentLeft: number;
|
|
427
|
-
readonly contentRight: number;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
/** Paint layer relative to body text — not the OOXML wrap element. */
|
|
431
|
-
type DrawingPaintLayer = 'behind' | 'inFront';
|
|
432
|
-
interface ExclusionZone {
|
|
433
|
-
/** Objects outside body drawing flow publish their exclusion directly instead of synthesizing it. */
|
|
434
|
-
readonly sourceKind?: 'table' | 'frame' | 'furniture';
|
|
435
|
-
/**
|
|
436
|
-
* Placed by an earlier section on the sheet a `continuous` section continues on. Its anchor
|
|
437
|
-
* is not in the continued section, so the zone reaches every line and column there.
|
|
438
|
-
*/
|
|
439
|
-
readonly earlierSection?: boolean;
|
|
440
|
-
readonly drawingNodeId: string;
|
|
441
|
-
readonly anchorParagraphId: string;
|
|
442
|
-
/** UTF-16 model offset of the anchor atom — exclusions apply at/after this point in the paragraph. */
|
|
443
|
-
readonly anchorModelStart: number;
|
|
444
|
-
/**
|
|
445
|
-
* The band's vertical position is resolved against the page or a margin, not against the
|
|
446
|
-
* anchor's own flow position, so it cannot move when the text beside it reflows.
|
|
447
|
-
*
|
|
448
|
-
* Such a band excludes every line it crosses on its page, including lines that PRECEDE the
|
|
449
|
-
* anchor — a picture pinned to the top of the margin wraps the paragraphs above its anchor
|
|
450
|
-
* exactly as it wraps the ones below. Flow-relative bands (`paragraph`, `line`) stay
|
|
451
|
-
* forward-only: reaching back would move the anchor that positions them.
|
|
452
|
-
*/
|
|
453
|
-
readonly pageFramedBand?: boolean;
|
|
454
|
-
readonly sourceOrder: number;
|
|
455
|
-
readonly paintLayer: DrawingPaintLayer;
|
|
456
|
-
readonly relativeHeight: number;
|
|
457
|
-
readonly allowOverlap: boolean;
|
|
458
|
-
/** Owning column index in a multi-column section — 0 for single-column and HF stories. */
|
|
459
|
-
readonly columnIndex: number;
|
|
460
|
-
/** Resolved top edge in page-content coordinates after overlap displacement. */
|
|
461
|
-
readonly y: number;
|
|
462
|
-
readonly verticalBand: LayoutBox;
|
|
463
|
-
readonly input: WrapExclusionInput;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
490
|
interface PendingLine {
|
|
467
491
|
readonly spans: StyleSpanRecord[];
|
|
468
492
|
readonly drawings: InlineDrawingRecord[];
|
|
@@ -502,6 +526,11 @@ interface PendingLine {
|
|
|
502
526
|
deletedRanges?: readonly ModelRange[];
|
|
503
527
|
/** Vertical gap inserted before this line to clear a drawing exclusion band. */
|
|
504
528
|
exclusionSkipBefore?: number;
|
|
529
|
+
/**
|
|
530
|
+
* The line follows a text wrapping break that clears floating objects (`w:br w:clear`).
|
|
531
|
+
* Placement keeps its skip even on a line before the paragraph's first anchor.
|
|
532
|
+
*/
|
|
533
|
+
breakClearance?: true;
|
|
505
534
|
/** Clearance inherited by an empty anchor paragraph from other drawing bands. */
|
|
506
535
|
anchorClearanceBefore?: number;
|
|
507
536
|
/**
|
|
@@ -700,6 +729,8 @@ interface SectionStackSpan {
|
|
|
700
729
|
/** Orchestrator state for multi-section incremental layout. */
|
|
701
730
|
interface MultiSectionLayoutState {
|
|
702
731
|
structureKey: string;
|
|
732
|
+
/** Each section's part of {@link structureKey}, so an added section keeps the others. */
|
|
733
|
+
sectionKeys: readonly string[];
|
|
703
734
|
sections: LayoutSession[];
|
|
704
735
|
spans: SectionStackSpan[];
|
|
705
736
|
previousRemapped: readonly PageRecord[];
|
|
@@ -809,6 +840,9 @@ interface LayoutSession {
|
|
|
809
840
|
*/
|
|
810
841
|
declare function createLayoutSession(): LayoutSession;
|
|
811
842
|
|
|
843
|
+
/** Collect story paragraphs, preserving table depth limits across immutable row reuse. */
|
|
844
|
+
declare function walkStoryParagraphs(blocks: readonly OoxmlElement[], maxTableDepth?: number): OoxmlElement[];
|
|
845
|
+
|
|
812
846
|
/**
|
|
813
847
|
* Horizontal marker box inside the first-line indent slot.
|
|
814
848
|
*
|
|
@@ -853,7 +887,7 @@ type PreferredWidthType = 'dxa' | 'pct' | 'auto' | 'nil';
|
|
|
853
887
|
*/
|
|
854
888
|
interface PreferredWidth {
|
|
855
889
|
readonly type: PreferredWidthType;
|
|
856
|
-
/** POINTS for `dxa`, PERCENT (0–100
|
|
890
|
+
/** POINTS for `dxa`, PERCENT for `pct` (0–100, or up to 655.34 for a table), 0 otherwise. */
|
|
857
891
|
readonly value: number;
|
|
858
892
|
}
|
|
859
893
|
/** The frozen "no preferred width" value — what a table or cell that declares none resolves to. */
|
|
@@ -944,8 +978,8 @@ interface AutofitFieldContext {
|
|
|
944
978
|
* remaining width and ignore the indent. `outerRuleOffsetPt` then moves the grid inward by
|
|
945
979
|
* half the outer side rule where the table puts that rule's outer edge on the aligned edge.
|
|
946
980
|
* For a supported mode-14 fixed table, that offset instead aligns the first cell's content.
|
|
947
|
-
* A
|
|
948
|
-
*
|
|
981
|
+
* A legacy content-aligned table instead puts the content edge of its leading or trailing
|
|
982
|
+
* cell on the aligned edge of the text column; its indent still applies from the leading edge.
|
|
949
983
|
*/
|
|
950
984
|
declare function tableOriginX(structure: SemanticTableStructure, containerWidthPt: number): number;
|
|
951
985
|
|
|
@@ -1018,6 +1052,8 @@ interface SemanticTableCell {
|
|
|
1018
1052
|
readonly margins: CellMarginsPt;
|
|
1019
1053
|
/** Three-state authored `tcBorders` (omitted / none / edge). */
|
|
1020
1054
|
readonly borders: CellBorderBox;
|
|
1055
|
+
/** The row's `w:tblPrEx` table borders, which replace the table's own for this cell. */
|
|
1056
|
+
readonly rowTableBorders?: TableBorderBox;
|
|
1021
1057
|
/** Resolved incident edges used for content clearance, preserving authored border provenance. */
|
|
1022
1058
|
readonly contentBorders?: CellBorderBox;
|
|
1023
1059
|
/** The resolved cell (including a vertical merge) ends at the authored table bottom. */
|
|
@@ -1091,6 +1127,9 @@ interface SemanticTableStructure {
|
|
|
1091
1127
|
readonly rows: readonly SemanticTableRow[];
|
|
1092
1128
|
/** Verified pre-2013 percentage-width inline table; derived, never serialized. */
|
|
1093
1129
|
readonly legacyContentAlignment?: true;
|
|
1130
|
+
/** A legacy content-aligned table whose outer trailing edge, not its content, meets the
|
|
1131
|
+
* trailing text edge: a top-level table in a text box. Derived, never serialized. */
|
|
1132
|
+
readonly legacyTrailingOuterEdge?: true;
|
|
1094
1133
|
/**
|
|
1095
1134
|
* Derived, never serialized: how far the grid moves from the aligned table edge, in points.
|
|
1096
1135
|
* A supported mode-14 fixed table shifts by its leading cell margin in the other direction.
|
|
@@ -1141,7 +1180,9 @@ declare function readTableStructure(table: OoxmlNode, contentWidthPt: number, de
|
|
|
1141
1180
|
/** Which revisions the view resolves away; only the proposed result performs the join. */
|
|
1142
1181
|
displayMode?: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter, compatibilityMode?: number,
|
|
1143
1182
|
/** Widens autofit columns to their content minimums; layout passes its measurer. */
|
|
1144
|
-
autofit?: TableAutofitContext
|
|
1183
|
+
autofit?: TableAutofitContext,
|
|
1184
|
+
/** The table is a top-level table of a text box story. */
|
|
1185
|
+
textBox?: boolean): SemanticTableStructure | null;
|
|
1145
1186
|
|
|
1146
1187
|
/** Paragraph ids in document order, deduplicated across fragments. */
|
|
1147
1188
|
declare function documentOrder(layout: SemanticLayout): string[];
|
|
@@ -1250,6 +1291,33 @@ declare function wordBoundary(text: string, offset: number, direction: -1 | 1, s
|
|
|
1250
1291
|
*/
|
|
1251
1292
|
declare function positionPastDeletion(layout: SemanticLayout, position: SemanticPosition): SemanticPosition;
|
|
1252
1293
|
|
|
1294
|
+
/**
|
|
1295
|
+
* The caret position nearest a point, in PAGE-CONTENT coordinates.
|
|
1296
|
+
*
|
|
1297
|
+
* Never returns null for a point inside the document: a click in the margin, past the end of
|
|
1298
|
+
* a line, or below the last line still has an obvious intended caret, and refusing to answer
|
|
1299
|
+
* would make those clicks do nothing.
|
|
1300
|
+
*
|
|
1301
|
+
* The rules live in `semantic-hit-test.ts`, which answers with the cell address and the
|
|
1302
|
+
* on-glyphs flag a pointer controller needs too; this keeps the geometry-only shape for
|
|
1303
|
+
* callers that want nothing else.
|
|
1304
|
+
*/
|
|
1305
|
+
declare function hitTestSemantic(layout: SemanticLayout, point: {
|
|
1306
|
+
readonly x: number;
|
|
1307
|
+
readonly y: number;
|
|
1308
|
+
readonly pageIndex?: number;
|
|
1309
|
+
}): CaretGeometry | null;
|
|
1310
|
+
/**
|
|
1311
|
+
* Innermost content-control boundary at a page-content point, or null outside every control.
|
|
1312
|
+
*
|
|
1313
|
+
* Prefers the deepest nesting depth when nested boundaries share geometry.
|
|
1314
|
+
*/
|
|
1315
|
+
declare function contentControlAtSemantic(layout: SemanticLayout, point: {
|
|
1316
|
+
readonly x: number;
|
|
1317
|
+
readonly y: number;
|
|
1318
|
+
readonly pageIndex?: number;
|
|
1319
|
+
}): ContentControlBoundaryRecord$1 | null;
|
|
1320
|
+
|
|
1253
1321
|
/**
|
|
1254
1322
|
* Rewrite private-use symbol-font codepoints to their Unicode equivalents.
|
|
1255
1323
|
*
|
|
@@ -1984,6 +2052,11 @@ interface LayoutNoteStoryOptions {
|
|
|
1984
2052
|
readonly numberingIndex?: NumberingIndex;
|
|
1985
2053
|
readonly defaultTabStopPt?: number;
|
|
1986
2054
|
readonly compatibilityMode?: number;
|
|
2055
|
+
/**
|
|
2056
|
+
* The active line-grid pitch of the section that owns the note, in points. Note lines snap
|
|
2057
|
+
* to it like body lines do; absent means no grid.
|
|
2058
|
+
*/
|
|
2059
|
+
readonly lineGridPitchPt?: number;
|
|
1987
2060
|
readonly displayMode?: RevisionDisplayMode;
|
|
1988
2061
|
readonly revisionAuthorFilter?: RevisionAuthorFilter;
|
|
1989
2062
|
/**
|
|
@@ -2148,6 +2221,8 @@ interface NotesLayoutInput {
|
|
|
2148
2221
|
readonly styleCascade?: StyleCascadeTable;
|
|
2149
2222
|
/** `numbering.xml`, so a `w:numPr` paragraph inside a note resolves a marker. */
|
|
2150
2223
|
readonly numberingIndex?: NumberingIndex;
|
|
2224
|
+
/** Per-section active line-grid pitch in points; note lines snap to their section's grid. */
|
|
2225
|
+
readonly lineGridPitchBySection?: readonly (number | undefined)[];
|
|
2151
2226
|
readonly defaultTabStopPt?: number;
|
|
2152
2227
|
readonly compatibilityMode?: number;
|
|
2153
2228
|
readonly displayMode?: RevisionDisplayMode;
|
|
@@ -2510,6 +2585,14 @@ interface SemanticLayoutOptions {
|
|
|
2510
2585
|
readonly projectFieldLink?: FieldLinkProjector;
|
|
2511
2586
|
/** Field-code inspection projection. @internal */
|
|
2512
2587
|
readonly showFieldCodes?: boolean;
|
|
2588
|
+
/**
|
|
2589
|
+
* How the pass addresses saved field results (DATE, MERGEFIELD, HYPERLINK display text, see
|
|
2590
|
+
* `FieldResultsMode`). `atomic` (the default) lays every field out as one model unit.
|
|
2591
|
+
* `editable` lays a saved result out as ordinary text at the offsets the store's editable
|
|
2592
|
+
* mode addresses, so a caret, a hit, and a selection inside it land on its characters. The
|
|
2593
|
+
* mode is folded into every cache key.
|
|
2594
|
+
*/
|
|
2595
|
+
readonly fieldResults?: FieldResultsMode;
|
|
2513
2596
|
/** @internal */
|
|
2514
2597
|
readonly fieldCodeRanges?: FieldCodeRanges;
|
|
2515
2598
|
/** @internal Word TOC character-style suppression. */
|
|
@@ -2566,6 +2649,12 @@ interface SemanticLayoutOptions {
|
|
|
2566
2649
|
* cached rows do not stack under the empty placeholder.
|
|
2567
2650
|
*/
|
|
2568
2651
|
readonly emptyTocSuppressedResultParagraphIds?: ReadonlySet<string>;
|
|
2652
|
+
/**
|
|
2653
|
+
* Lay out only the first `bodyBlockLimit` body blocks. A large open lays out a growing
|
|
2654
|
+
* prefix in separate tasks, each pass resuming from the last, so the page stays
|
|
2655
|
+
* responsive; the final pass has no limit. @internal
|
|
2656
|
+
*/
|
|
2657
|
+
readonly bodyBlockLimit?: number;
|
|
2569
2658
|
}
|
|
2570
2659
|
|
|
2571
2660
|
/**
|
|
@@ -3055,5 +3144,5 @@ declare function tabLeaderPattern(startPt: number, widthPt: number, advancePt: n
|
|
|
3055
3144
|
*/
|
|
3056
3145
|
declare function noteSeparatorRuleBox(span: StyleSpanRecord, line: LineRecord, stroke?: StrikeoutStrokePt): LayoutBox;
|
|
3057
3146
|
|
|
3058
|
-
export { AUTO_PREFERRED_WIDTH, AnchoredDrawingRecord, BlockFragmentRecord, CELL_PAD, COMPOUND_BORDER_MIN_GAP_PT, COMPOUND_BORDER_MIN_STROKE_PT, CellBorderBox, ContentControlBoundaryRecord$1 as ContentControlBoundaryRecord, DEFAULT_CANVAS_FONT_STACK, DEFAULT_CELL_MARGINS, DrawingInsets, DrawingPoint, FieldLinkProjector, FixedPoint, FixedPointRoundingMode, FontByteValidator, GRAPHEME_SEGMENTER_LOCALE, HARFBUZZ_SHAPING_LIBRARY, HarfBuzzShapingError, HyperlinkFieldSpec, HyperlinkProjector, InlineDrawingRecord, LayoutBox, LineRecord, MAX_EACH_PAGE_MARK_CANDIDATES, MAX_LVL_TEXT_LENGTH, MAX_MARKER_TEXT_LENGTH, MAX_NOTES_LAID_OUT, MAX_NOTE_FRAGMENTS, MAX_NOTE_OVERFLOW_PAGES, MAX_NOTE_REFLOW_ATTEMPTS, MAX_STYLE_BASED_ON_DEPTH, MAX_TABLE_COLUMNS, MAX_TABLE_NESTING, MAX_TABLE_ROW_FRAGMENTS, MAX_TABLE_ROW_HEIGHT_PT, NumberingIndex, NumberingLevel, PageBorderFrameRecord, PageGeometry, PageRecord, ParagraphBorderStrokeRecord, ParagraphFragmentRecord, RefFieldContext, ResolvedListItem, ReviewItem, RevisionAttribution, RevisionAuthorFilter, RevisionDisplayMode, SectionColumns, SectionPageBorders, SelectionRect, SemanticLayout, SemanticPosition, SemanticRootStoryKind, SemanticSelection, SemanticStoryKind, SemanticStoryVisit, ShapedRun, SourceRange, SpanLinkRecord, StrikeoutStrokePt, StyleCascadeTable, StyleSpanRecord, TableBorderBox, TableBorderSide, TableCellStyleFormatting, TablePaginationError, TextMeasurer, TextShaper, TextboxOwnerRecord, VersionedShapingLibrary, WORD_SEGMENTER_LOCALE, anchorLineY, attachNotesToLayout, boundedFallbackWordSegments, buildPageRefIndex, clampListValue, computeDoubleBorderMetricsPt, computeFootnoteReserves, contentControlBoundaries, contentControlHoldingParagraph, contentControlRecordsInPart, createBoundedFallbackWordBoundary, createDefaultWordBoundary, createDocumentFurnitureSource, createDocumentLinkProjectors, createDocumentNotesInput, createDocumentStyleDependencies, createFieldLinkRegistry, createFixedMeasurer, createHarfBuzzTextShaper, createIntlWordBoundary, createLayoutScheduler, createLayoutSession, createListCounterState, createParagraphLayoutCache, defaultNoteSeparatorRuleStyle, deriveNoteDisplayMarks, deriveNoteDisplayMarksResolved, documentOrder, documentRelationshipTargetIn, effectiveBorderSide, emptyTocPlaceholderParagraphIds, emptyTocSuppressedResultParagraphIds, everyStoryOrder, expandLvlText, exportSourceRangeOf, filterRefsOnPage, findSeparatorNote, forEachSemanticSpan, formatDecimal, formatDecimalZero, formatLowerLetter, formatLowerRoman, formatNumFmt, formatPageNumber, formatUpperLetter, formatUpperRoman, fragmentOwnsAtomOffset, graphemeBoundaryEpoch, graphemeCount, graphemeOffsetToUtf16, harfBuzzFontValidator, initializeHarfBuzz, intlGraphemeBoundary, isCanvasMeasurementAvailable, isCumulativeGeometryTrustedFromLineOrigin, isGeometryTrustedCaretOffset, isHarfBuzzInitialized, isIntlSegmenterAvailable, isIntlWordSegmenterAvailable, isMarkerOnlySeparatorNote, isWholeGraphemeHorizontalBoundary, keyedRangeRects, layoutHeaderFooterStory, layoutNoteById, layoutNoteSeparator, layoutNoteStory, layoutSemanticDocument, lineSegments, listMarkerBox, mapSymbolPuaText, normalNotesOf, noteDisplayMarkMap, noteLineIdPrefix, noteMarkKey, noteSeparatorAreaBox, noteSeparatorRuleBox, noteStoryBlocks, pageBorderFrame, pageRefPageNumbersFromLayout, pagesToMaterialize, paragraphLayoutKey, paragraphMarkDeleted, paragraphShading, paragraphShadingBox, parseAutonumInstruction, planRefFieldResultRefresh, positionPastDeletion, projectedNoteMarkText, provisionalNoteMarks, readTableStructure, resetGraphemeBoundary, resolveDefaultSurfaceMeasurer, resolveDefaultWordBoundary, resolveOoxmlShadingFill, resolveStrictHexFill, reviewAnchorIndex, reviewItemGeometry, revisionRemovesParagraph, roundFontUnitToFixedPoint, runBorderStrokesForLine, segmentGraphemes, segmentWords, selectionRects, semanticHorizontalBoundaries, setGraphemeBoundary, setHarfBuzzWasmUrl, sha256FontBytes, shadingFillFromElement, shapedHorizontalBoundaries, storyBlocks, syntheticSeparatorBox, tabLeaderPattern, tableOriginX, tocFieldChromeParagraphIds, tryCreateCanvasMeasurer, utf16OffsetToGrapheme, vectorShapeInkClip, wordBoundary, wordSegmentsToGraphemeRecords };
|
|
3147
|
+
export { AUTO_PREFERRED_WIDTH, AnchoredDrawingRecord, BlockFragmentRecord, CELL_PAD, COMPOUND_BORDER_MIN_GAP_PT, COMPOUND_BORDER_MIN_STROKE_PT, CaretGeometry, CellBorderBox, ContentControlBoundaryRecord$1 as ContentControlBoundaryRecord, DEFAULT_CANVAS_FONT_STACK, DEFAULT_CELL_MARGINS, DrawingInsets, DrawingPoint, FieldLinkProjector, FixedPoint, FixedPointRoundingMode, FontByteValidator, GRAPHEME_SEGMENTER_LOCALE, HARFBUZZ_SHAPING_LIBRARY, HarfBuzzShapingError, HyperlinkFieldSpec, HyperlinkProjector, InlineDrawingRecord, LayoutBox, LineRecord, MAX_EACH_PAGE_MARK_CANDIDATES, MAX_LVL_TEXT_LENGTH, MAX_MARKER_TEXT_LENGTH, MAX_NOTES_LAID_OUT, MAX_NOTE_FRAGMENTS, MAX_NOTE_OVERFLOW_PAGES, MAX_NOTE_REFLOW_ATTEMPTS, MAX_STYLE_BASED_ON_DEPTH, MAX_TABLE_COLUMNS, MAX_TABLE_NESTING, MAX_TABLE_ROW_FRAGMENTS, MAX_TABLE_ROW_HEIGHT_PT, NumberingIndex, NumberingLevel, PageBorderFrameRecord, PageGeometry, PageRecord, ParagraphBorderStrokeRecord, ParagraphFragmentRecord, RefFieldContext, ResolvedListItem, ReviewItem, RevisionAttribution, RevisionAuthorFilter, RevisionDisplayMode, SectionColumns, SectionPageBorders, SelectionRect, SemanticLayout, SemanticPosition, SemanticRootStoryKind, SemanticSelection, SemanticStoryKind, SemanticStoryVisit, ShapedRun, SourceRange, SpanLinkRecord, StrikeoutStrokePt, StyleCascadeTable, StyleSpanRecord, TableBorderBox, TableBorderSide, TableCellStyleFormatting, TablePaginationError, TextMeasurer, TextShaper, TextboxOwnerRecord, VersionedShapingLibrary, WORD_SEGMENTER_LOCALE, anchorLineY, attachNotesToLayout, boundedFallbackWordSegments, buildPageRefIndex, clampListValue, computeDoubleBorderMetricsPt, computeFootnoteReserves, contentControlAtSemantic, contentControlBoundaries, contentControlHoldingParagraph, contentControlRecordsInPart, createBoundedFallbackWordBoundary, createDefaultWordBoundary, createDocumentFurnitureSource, createDocumentLinkProjectors, createDocumentNotesInput, createDocumentStyleDependencies, createFieldLinkRegistry, createFixedMeasurer, createHarfBuzzTextShaper, createIntlWordBoundary, createLayoutScheduler, createLayoutSession, createListCounterState, createParagraphLayoutCache, defaultNoteSeparatorRuleStyle, deriveNoteDisplayMarks, deriveNoteDisplayMarksResolved, documentOrder, documentRelationshipTargetIn, effectiveBorderSide, emptyTocPlaceholderParagraphIds, emptyTocSuppressedResultParagraphIds, everyStoryOrder, expandLvlText, exportSourceRangeOf, filterRefsOnPage, findSeparatorNote, forEachSemanticSpan, formatDecimal, formatDecimalZero, formatLowerLetter, formatLowerRoman, formatNumFmt, formatPageNumber, formatUpperLetter, formatUpperRoman, fragmentOwnsAtomOffset, graphemeBoundaryEpoch, graphemeCount, graphemeOffsetToUtf16, harfBuzzFontValidator, hitTestSemantic, initializeHarfBuzz, intlGraphemeBoundary, isCanvasMeasurementAvailable, isCumulativeGeometryTrustedFromLineOrigin, isGeometryTrustedCaretOffset, isHarfBuzzInitialized, isIntlSegmenterAvailable, isIntlWordSegmenterAvailable, isMarkerOnlySeparatorNote, isWholeGraphemeHorizontalBoundary, keyedRangeRects, layoutHeaderFooterStory, layoutNoteById, layoutNoteSeparator, layoutNoteStory, layoutSemanticDocument, lineSegments, listMarkerBox, mapSymbolPuaText, normalNotesOf, noteDisplayMarkMap, noteLineIdPrefix, noteMarkKey, noteSeparatorAreaBox, noteSeparatorRuleBox, noteStoryBlocks, pageBorderFrame, pageRefPageNumbersFromLayout, pagesToMaterialize, paragraphLayoutKey, paragraphMarkDeleted, paragraphShading, paragraphShadingBox, parseAutonumInstruction, planRefFieldResultRefresh, positionPastDeletion, projectedNoteMarkText, provisionalNoteMarks, readTableStructure, resetGraphemeBoundary, resolveDefaultSurfaceMeasurer, resolveDefaultWordBoundary, resolveOoxmlShadingFill, resolveStrictHexFill, reviewAnchorIndex, reviewItemGeometry, revisionRemovesParagraph, roundFontUnitToFixedPoint, runBorderStrokesForLine, segmentGraphemes, segmentWords, selectionRects, semanticHorizontalBoundaries, setGraphemeBoundary, setHarfBuzzWasmUrl, sha256FontBytes, shadingFillFromElement, shapedHorizontalBoundaries, storyBlocks, syntheticSeparatorBox, tabLeaderPattern, tableOriginX, tocFieldChromeParagraphIds, tryCreateCanvasMeasurer, utf16OffsetToGrapheme, vectorShapeInkClip, walkStoryParagraphs, wordBoundary, wordSegmentsToGraphemeRecords };
|
|
3059
3148
|
export type { AutofitFieldContext, AutonumFieldKind, AutonumFieldSpec, CanvasMeasurerOptions, CanvasTextContext, CanvasTextMetrics, CellMarginsPt, CellVerticalAlign, CompoundBorderMetrics, ContentControlFragmentRecord, CreateDocumentFurnitureSourceOptions, CreateDocumentNotesInputOptions, DocumentFurnitureSource, DocumentLinkProjectors, DocumentStyleDependencies, FieldLinkRegistry, GraphemeBoundary, GraphemeSegment, GraphemeWordSegmentRecord, HarfBuzzFaceCacheEvent, HarfBuzzOutlineCacheEvent, HarfBuzzShapeCacheEvent, HarfBuzzShapingErrorCode, HarfBuzzTextShaper, HarfBuzzTextShaperInstrumentation, HarfBuzzTextShaperOptions, HeaderFooterVariantName, KeyedRange, LayoutCacheStats, LayoutScheduler, LayoutSchedulerOptions, LayoutScope, LayoutSession, LayoutSessionStats, LineSegment, ListCounterAdvance, ListCounterState, MaterializationInput, NoteDisplayMark, NoteLayoutFallbackReason, NoteMarkContext, NotePaginationFallbackReason, NoteReferenceSite, NoteSeparatorLayout, NoteSeparatorRuleStyle, NoteStoryDrawings, NoteStoryLayout, NotesAttachResult, NotesLayoutInput, PageFurniture, PageRefIndex, ParagraphKeyInputs, ParagraphLayoutCache, ParagraphLayoutCacheOptions, PreferredWidth, PreferredWidthType, RefFieldRefreshOptions, RegisteredFieldLink, ResolvedSurfaceMeasurer, ReviewParagraphAnchor, SemanticLayoutOptions, SemanticSpanVisit, SemanticTableCell, SemanticTableRow, SemanticTableStructure, StoryProjectionDependencies, TableAlignment, TableAutofitContext, TablePaginationErrorCode, TableRowHeight, TableRowHeightRule, ViewportWindow, WordBoundary, WordBoundaryResolverDeps, WordSegment };
|
package/dist/layout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{N as DEFAULT_CANVAS_FONT_STACK,b as HARFBUZZ_SHAPING_LIBRARY,e as HarfBuzzShapingError,i as LayoutShapingConfigurationError,I as ResolvedCache,x as WORD_SEGMENTER_LOCALE,W as anchorLineY,A as boundedFallbackWordSegments,G as captureOperationSnapshot,da as cellSelectionBetween,ha as cellSelectionRects,ia as cellSelectionText,V as contentControlBoundaries,B as createBoundedFallbackWordBoundary,C as createDefaultWordBoundary,g as createHarfBuzzTextShaper,z as createIntlWordBoundary,ca as createLayoutScheduler,aa as createLayoutShapedMeasurer,p as createLayoutShaping,$ as createShapedMeasurer,r as disposeLayoutShaping,J as exportSourceRangeOf,K as forEachSemanticSpan,H as guardOperationSnapshot,f as harfBuzzFontValidator,c as initializeHarfBuzz,P as isCanvasMeasurementAvailable,v as isCumulativeGeometryTrustedFromLineOrigin,u as isGeometryTrustedCaretOffset,d as isHarfBuzzInitialized,y as isIntlWordSegmenterAvailable,t as isWholeGraphemeHorizontalBoundary,o as layoutFontConfigurationFingerprint,S as pageRefPageNumbersFromLayout,ba as pagesToMaterialize,fa as paragraphsInCells,T as planRefFieldResultRefresh,m as prepareLayoutFontConfiguration,R as resolveDefaultSurfaceMeasurer,D as resolveDefaultWordBoundary,X as reviewAnchorIndex,Y as reviewItemGeometry,a as roundFontUnitToFixedPoint,E as segmentWords,w as semanticHorizontalBoundaries,s as shapedHorizontalBoundaries,ga as spansInCells,ma as tabLeaderPattern,ja as tableContextAt,Q as tryCreateCanvasMeasurer,L as vectorShapeInkClip,F as wordSegmentsToGraphemeRecords}from'./chunk-
|
|
1
|
+
export{N as DEFAULT_CANVAS_FONT_STACK,b as HARFBUZZ_SHAPING_LIBRARY,e as HarfBuzzShapingError,i as LayoutShapingConfigurationError,I as ResolvedCache,x as WORD_SEGMENTER_LOCALE,W as anchorLineY,A as boundedFallbackWordSegments,G as captureOperationSnapshot,da as cellSelectionBetween,ha as cellSelectionRects,ia as cellSelectionText,V as contentControlBoundaries,B as createBoundedFallbackWordBoundary,C as createDefaultWordBoundary,g as createHarfBuzzTextShaper,z as createIntlWordBoundary,ca as createLayoutScheduler,aa as createLayoutShapedMeasurer,p as createLayoutShaping,$ as createShapedMeasurer,r as disposeLayoutShaping,J as exportSourceRangeOf,K as forEachSemanticSpan,H as guardOperationSnapshot,f as harfBuzzFontValidator,c as initializeHarfBuzz,P as isCanvasMeasurementAvailable,v as isCumulativeGeometryTrustedFromLineOrigin,u as isGeometryTrustedCaretOffset,d as isHarfBuzzInitialized,y as isIntlWordSegmenterAvailable,t as isWholeGraphemeHorizontalBoundary,o as layoutFontConfigurationFingerprint,S as pageRefPageNumbersFromLayout,ba as pagesToMaterialize,fa as paragraphsInCells,T as planRefFieldResultRefresh,m as prepareLayoutFontConfiguration,R as resolveDefaultSurfaceMeasurer,D as resolveDefaultWordBoundary,X as reviewAnchorIndex,Y as reviewItemGeometry,a as roundFontUnitToFixedPoint,E as segmentWords,w as semanticHorizontalBoundaries,s as shapedHorizontalBoundaries,ga as spansInCells,ma as tabLeaderPattern,ja as tableContextAt,Q as tryCreateCanvasMeasurer,L as vectorShapeInkClip,F as wordSegmentsToGraphemeRecords}from'./chunk-6ZQP4HQ7.js';export{a as setHarfBuzzWasmUrl}from'./chunk-RIYSCEFQ.js';export{L as AUTO_PARAGRAPH_SPACING_PT,Od as AUTO_PREFERRED_WIDTH,Pd as CELL_PAD,F as COMPOUND_BORDER_MIN_GAP_PT,E as COMPOUND_BORDER_MIN_STROKE_PT,Qd as DEFAULT_CELL_MARGINS,va as DEFAULT_PAGE_GEOMETRY,Za as DEFAULT_REVISION_DISPLAY_MODE,$ as DEFAULT_RUN_STYLE,Ic as DEFAULT_SECTION_PROPERTIES,tb as DEFAULT_TAB_INTERVAL_PT,sb as DEFAULT_TAB_INTERVAL_TWIPS,Wd as DEFAULT_VERTICAL_WEIGHT,nc as EMPTY_NUMBERING_INDEX,vb as EMPTY_TAB_STOPS,d as FontResolutionError,ia as GRAPHEME_SEGMENTER_LOCALE,c as HARD_MAX_AGGREGATE_FONT_BYTES,a as HARD_MAX_FONT_BYTES,b as HARD_MAX_FONT_SOURCES,K as MAX_BORDER_SPACE_PT,J as MAX_BORDER_WIDTH_PT,Hc as MAX_DOCUMENT_SECTIONS,yf as MAX_EACH_PAGE_MARK_CANDIDATES,kc as MAX_LVL_OVERRIDES,Lb as MAX_LVL_TEXT_LENGTH,Kb as MAX_MARKER_TEXT_LENGTH,kf as MAX_NOTES_LAID_OUT,lf as MAX_NOTE_FRAGMENTS,xf as MAX_NOTE_OVERFLOW_PAGES,wf as MAX_NOTE_REFLOW_ATTEMPTS,jc as MAX_NUMBERING_DEFINITIONS,I as MAX_PARAGRAPH_SPACING_PT,o as MAX_SHAPING_CONTEXT,Ib as MAX_STYLE_BASED_ON_DEPTH,gd as MAX_STYLE_DEFINITIONS,Gd as MAX_TABLE_BORDER_STROKES,Sd as MAX_TABLE_NESTING,Te as MAX_TABLE_ROW_FRAGMENTS,Td as MAX_TABLE_ROW_HEIGHT_PT,rb as MAX_TAB_POSITION_TWIPS,qb as MAX_TAB_STOPS,Dc as PAGE_BORDER_SIDES,N as PARAGRAPH_BORDER_SIDES,M as SINGLE_LINE_SPACING,ub as TAB_LEADER_GLYPH,Ue as TablePaginationError,sa as UnsupportedScriptError,_ as appliedSpaceBefore,R as applyLineSpacing,Df as attachNotesToLayout,ea as baselineShiftPtOf,Nd as borderExtentPt,Kd as borderWeight,X as bottomBorderExtentPt,l as boundedStructuralFontValidator,lc as buildNumberingIndex,Af as buildPageRefIndex,hd as buildStyleCascadeTable,ne as caretAt,ee as caretBoxOnLine,le as caretStops,me as caretStopsForBlocks,id as cascadeParagraphFormatting,ld as cascadeRunProperties,kd as cascadedBottomBorder,U as cascadedParagraphBorders,wb as cascadedTabStops,Mb as clampListValue,Z as collapsedSpaceBefore,se as compositionAnchor,G as computeDoubleBorderMetricsPt,Cf as computeFootnoteReserves,be as contentControlAtPoint,ke as contentControlAtSemantic,df as contentControlHoldingParagraph,cf as contentControlRecordsInPart,oe as contentControlsInLayout,Ia as contentControlsOfLayout,Ye as createDocumentFurnitureSource,$e as createDocumentLinkProjectors,Ze as createDocumentNotesInput,Ke as createDocumentStyleDependencies,af as createFieldLinkRegistry,ha as createFixedMeasurer,m as createFontResourceSnapshot,Gf as createLayoutSession,oc as createListCounterState,Ge as createParagraphLayoutCache,s as createShapedRun,p as createShapingEnvironment,rf as defaultNoteSeparatorRuleStyle,zb as defaultTabIntervalFromSettings,qe as deletedTextBoundaries,Ac as deriveNoteDisplayMarks,Bc as deriveNoteDisplayMarksResolved,ba as displayText,Ra as documentOrder,_e as documentRelationshipTargetIn,Fd as effectiveBorderSide,Ka as effectiveContentControlLock,mb as emptyTocPlaceholderParagraphIds,nb as emptyTocSuppressedResultParagraphIds,Oc as enumerateDocumentSections,Qc as enumerateDocumentSectionsBounded,Sa as everyStoryOrder,Ub as expandLvlText,Bf as filterRefsOnPage,fe as findDrawingOverlayFrameInLayout,of as findSeparatorNote,n as fixedPoint,h as fontRequestKey,Ea as forEachSemanticDrawing,Ca as forEachSemanticStory,Fa as forEachStoryParagraphFragment,Nb as formatDecimal,Ob as formatDecimalZero,Sb as formatLowerLetter,Qb as formatLowerRoman,Tb as formatNumFmt,ec as formatPageNumber,hb as formatRevisionOf,Rb as formatUpperLetter,Pb as formatUpperRoman,zf as fragmentOwnsAtomOffset,Ga as fragmentsOfParagraph,Rc as geometryOfSection,fa as glyphSizeFactorOf,la as graphemeBoundaryEpoch,pa as graphemeCount,ra as graphemeOffsetToUtf16,_d as hitTestPage,je as hitTestSemantic,ae as hitTestSheet,ka as intlGraphemeBoundary,Yd as isFurniturePoint,ja as isIntlSegmenterAvailable,sf as isMarkerOnlySeparatorNote,Gb as isValidStyleId,ta as itemizeScriptFontSlots,we as keyedRangeRects,ad as layoutEquation,Xe as layoutHeaderFooterStory,qf as layoutNoteById,tf as layoutNoteSeparator,pf as layoutNoteStory,Hf as layoutSemanticDocument,Ha as lineAtPosition,ce as lineEndOffset,La as lineSegments,za as linesOf,tc as listMarkerBox,fb as markRevisionRemovesMark,ca as measureDisplayText,xc as mergeListIndent,re as moveCaret,Ab as nextTabDestination,nf as normalNotesOf,Cc as noteDisplayMarkMap,mf as noteLineIdPrefix,Zc as noteMarkKey,vf as noteSeparatorAreaBox,jf as noteSeparatorRuleBox,rd as noteStoryBlocks,Xd as pageAtY,if as pageBorderFrame,Fc as pageBordersFingerprint,W as paragraphBorderExtentPt,V as paragraphBorderStrokeWidthPt,T as paragraphBorders,Y as paragraphBordersFingerprint,H as paragraphBreaksBefore,S as paragraphContextualSpacing,xa as paragraphFragmentsOf,ya as paragraphFragmentsOfBlocks,Fe as paragraphLayoutKey,Q as paragraphLineSpacing,pc as paragraphMarkDeleted,db as paragraphMarkFormatRevisionOf,gb as paragraphMarkRevisionOf,cb as paragraphMarkRevisionsOf,Mc as paragraphSectionNode,A as paragraphShading,B as paragraphShadingBox,P as paragraphSpacing,xb as paragraphTabStops,pe as paragraphTextFromLayout,cc as parseAutonumInstruction,Ec as parsePageBorders,Jc as parsePageNumbering,bc as parseRefInstruction,Kc as parseSectionProperties,wd as positionPastDeletion,_c as projectedNoteMarkText,Pc as projectedSectionSourceIndexes,Ef as provisionalNoteMarks,Hd as readBorderSide,Jd as readCellBorders,vc as readNumPr,Nc as readSectionProperties,Id as readTableBorders,Ud as readTableStructure,oa as resetGraphemeBoundary,Ld as resolveBorderConflict,mc as resolveNumberingLevel,y as resolveOoxmlShadingFill,md as resolveParagraphLayoutInputs,aa as resolveRunStyle,yc as resolveStoryListItems,Uc as resolveStoryRefFields,x as resolveStrictHexFill,Md as resolveTableCellBorderGrid,ab as revisionAuthorFilter,rc as revisionRemovesParagraph,ib as revisionsAreDeletion,bb as revisionsVisible,Fb as runBorderStrokesForLine,da as runStylesEqual,ma as segmentGraphemes,ue as selectionRects,na as setGraphemeBoundary,z as shadingFillFromElement,t as shapedRunComparatorInputs,r as shapingEnvironmentFingerprint,q as shapingEnvironmentFingerprintInputs,eb as shownMarkRevision,de as spanOffsetX,te as spansInSelection,qd as storyBlocks,ua as styleForFontSlot,uf as syntheticSeparatorBox,Bb as tabAdvanceWidth,Cb as tabStopsFingerprint,Rd as tableOriginX,lb as tocFieldChromeParagraphIds,Ja as unionLayoutBoxes,qa as utf16OffsetToGrapheme,dc as walkStoryParagraphs,yb as withDefaultTabInterval,wc as withNumberingStyleLinks,zc as withResolvedListItems,he as wordBoundary}from'./chunk-CPWLFPWC.js';import'./chunk-LSZ6KPKK.js';import'./chunk-U4JZVSOE.js';export{Tc as MAX_SDT_NESTING,$i as MAX_TABLE_COLUMNS,Yh as W15_NAMESPACE_URI,Dj as activeReviewItem,Yc as collectFlowBlocks,Mj as commentBodyText,Oj as commentInitials,Xc as contentControlContentChildren,zj as firstReviewRange,Uc as isContentControl,Vc as isContentControlContent,d as mapSymbolPuaText,kj as paragraphOrderOfPart,xj as reviewItemKey,Aj as reviewItemPositionRank,yj as reviewItemRanges,Bj as reviewItemsAt,Ej as reviewThreadRootOf,f as sha256FontBytes}from'./chunk-YQ5G6LC7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OoxmlPart, N as OoxmlNode, Q as OoxmlPackage } from './types-barrel-
|
|
1
|
+
import { O as OoxmlPart, N as OoxmlNode, Q as OoxmlPackage } from './types-barrel-DuC5QBNC.js';
|
|
2
2
|
|
|
3
3
|
/** `w:pos` — where a section's footnotes are laid out. */
|
|
4
4
|
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
|
@@ -64,5 +64,5 @@ declare function isLegalFootnotePosition(pos: string): pos is FootnotePosition;
|
|
|
64
64
|
/** Whether a file-supplied string is a legal `w:numRestart` value. Narrows the type. */
|
|
65
65
|
declare function isLegalNumRestart(value: string): value is NoteNumRestart;
|
|
66
66
|
|
|
67
|
-
export { DEFAULT_ENDNOTE_PROPERTIES as D, DEFAULT_FOOTNOTE_PROPERTIES as
|
|
68
|
-
export type { AuthoredNoteProperties as A, EndnotePosition as E, FootnotePosition as F, NoteNumRestart as N,
|
|
67
|
+
export { DEFAULT_ENDNOTE_PROPERTIES as D, DEFAULT_FOOTNOTE_PROPERTIES as b, authoredDocumentEndnoteProperties as c, authoredDocumentFootnoteProperties as d, authoredEndnotePropertiesFromSectPr as e, authoredFootnotePropertiesFromSectPr as f, isLegalFootnotePosition as g, isLegalNumRestart as h, isLegalEndnotePosition as i, resolveFootnoteProperties as j, parseAuthoredNoteProperties as p, resolveEndnoteProperties as r, settingsPartOf as s };
|
|
68
|
+
export type { AuthoredNoteProperties as A, EndnotePosition as E, FootnotePosition as F, NoteNumRestart as N, ResolvedFootnoteProperties as R, ResolvedEndnoteProperties as a };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as OoxmlNodeId, V as OoxmlGenericElementNode, N as OoxmlNode } from './types-barrel-
|
|
1
|
+
import { U as OoxmlNodeId, V as OoxmlGenericElementNode, N as OoxmlNode } from './types-barrel-DuC5QBNC.js';
|
|
2
2
|
|
|
3
3
|
/** Office Math Markup Language namespace. */
|
|
4
4
|
declare const OFFICE_MATH_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/math";
|
package/dist/output.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkCAJEXXVG_cjs=require('./chunk-CAJEXXVG.cjs');require('./chunk-D7ZMDMPX.cjs'),require('./chunk-DOHF6FA7.cjs'),require('./chunk-MM5QBMTE.cjs'),require('./chunk-T6K2QYNZ.cjs'),require('./chunk-OSFOJTHU.cjs');Object.defineProperty(exports,"DEFAULT_FIELD_SHADING",{enumerable:true,get:function(){return chunkCAJEXXVG_cjs.m}});Object.defineProperty(exports,"collectPageChangeBars",{enumerable:true,get:function(){return chunkCAJEXXVG_cjs.h}});Object.defineProperty(exports,"paintSelectionOverlay",{enumerable:true,get:function(){return chunkCAJEXXVG_cjs.r}});Object.defineProperty(exports,"paintSemanticLayout",{enumerable:true,get:function(){return chunkCAJEXXVG_cjs.p}});
|
package/dist/output.d.ts
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
/**
|
|
2
|
+
* `@docx-editor.dev/core/output` — painting a layout into DOM.
|
|
3
|
+
*
|
|
4
|
+
* The painted pages ARE the editable surface, but the DOM is a picture: browser mutations are
|
|
5
|
+
* prevented and re-expressed as tree ops, and selection maps only through `data-paragraph-id`
|
|
6
|
+
* and `data-start`.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
import { R as ReviewAuthorInfo } from './semantic-paint-ZayFF3tD.js';
|
|
12
|
+
export { B as BreakMarkStrings, C as ChangeBarsMode, D as DEFAULT_FIELD_SHADING, F as FieldShadingMode, P as PageChangeBars, a as PaintOptions, b as RevisionAuthorAssignments, c as RevisionAuthorStyle, d as RevisionStyles, e as collectPageChangeBars, p as paintSemanticLayout } from './semantic-paint-ZayFF3tD.js';
|
|
13
|
+
import { S as SemanticLayout } from './semantic-records-DQmumPgL.js';
|
|
14
|
+
import './semantic-record-queries-Bsgth6lv.js';
|
|
15
|
+
import './image-resources-tXLQShoC.js';
|
|
16
|
+
import './types-barrel-DuC5QBNC.js';
|
|
17
|
+
import './editor-scope-7o9xweiJ.js';
|
|
18
|
+
import './omml-equation-BUbU0utM.js';
|
|
10
19
|
|
|
11
20
|
/** A rectangle in page-content coordinates, on a named page. */
|
|
12
21
|
interface OverlayRect {
|
package/dist/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{m as DEFAULT_FIELD_SHADING,h as collectPageChangeBars,r as paintSelectionOverlay,p as paintSemanticLayout}from'./chunk-TRGAVV2Y.js';import'./chunk-6ZQP4HQ7.js';import'./chunk-RIYSCEFQ.js';import'./chunk-CPWLFPWC.js';import'./chunk-LSZ6KPKK.js';import'./chunk-U4JZVSOE.js';import'./chunk-YQ5G6LC7.js';
|