@docx-editor.dev/core 2.31.0 → 2.33.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/README.md +25 -1
- package/THIRD_PARTY_NOTICES.md +1 -0
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +16 -54
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +17 -15
- package/dist/binding.js +1 -1
- package/dist/{chrome-print-BWvaVEhD.d.ts → chrome-print-CrPI9ZQc.d.ts} +128 -38
- package/dist/chunk-23MKR33J.js +4 -0
- package/dist/chunk-2CWQY27B.cjs +1 -0
- package/dist/chunk-2DEY5NUC.cjs +32 -0
- package/dist/chunk-2DR4TH6B.js +1 -0
- package/dist/chunk-2F2UEAE2.js +2 -0
- package/dist/chunk-2GPGAFOJ.cjs +5 -0
- package/dist/chunk-ALD626VU.cjs +2 -0
- package/dist/chunk-AU33YWEJ.js +236 -0
- package/dist/chunk-AXU63LYW.cjs +1 -0
- package/dist/chunk-CM5VZRBV.js +32 -0
- package/dist/chunk-D7FAFFTN.js +1 -0
- package/dist/chunk-DYUVJNDD.cjs +1 -0
- package/dist/chunk-ESYUKD5D.js +2 -0
- package/dist/chunk-F7TGQMVR.js +5 -0
- package/dist/chunk-FLW7KIQX.js +30 -0
- package/dist/chunk-JG4A6W6I.js +7 -0
- package/dist/chunk-JNGLSBPH.js +2 -0
- package/dist/chunk-KE6ZWRIY.cjs +236 -0
- package/dist/chunk-L3YXJDPX.js +1 -0
- package/dist/chunk-LI42N7OW.cjs +4 -0
- package/dist/chunk-PLKDS4JT.js +1 -0
- package/dist/chunk-PXMTQ73F.cjs +2 -0
- package/dist/chunk-R4R3AAE4.js +1 -0
- package/dist/chunk-RFUNFTGV.cjs +1 -0
- package/dist/chunk-SVM6PGMS.js +3 -0
- package/dist/chunk-SZURLHR3.cjs +3 -0
- package/dist/chunk-UYCGCVZ2.cjs +1 -0
- package/dist/chunk-WN7ICTA5.js +1 -0
- package/dist/chunk-X34QRAUU.cjs +1 -0
- package/dist/chunk-XNBYG4XJ.cjs +30 -0
- package/dist/chunk-ZDFJW5XS.cjs +2 -0
- package/dist/chunk-ZWO4JHNN.cjs +7 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +29 -4
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.cjs +1 -1
- package/dist/collaboration.d.ts +5 -5
- package/dist/collaboration.js +1 -1
- package/dist/contracts/document.d.ts +3 -3
- package/dist/contracts/editor.d.ts +13 -9
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/contracts/modules.d.ts +15 -12
- package/dist/contracts/types.d.ts +135 -2
- package/dist/{custom-node-writes-TeUvMP13.d.ts → custom-node-writes-AqY5KpVx.d.ts} +7 -2
- package/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
- package/dist/{diagnostic-hints-C9JlLz1L.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +4 -4
- package/dist/{document-protection-C8x3P2J6.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
- package/dist/drawing-graphic-kind-CXYGYbB3.d.ts +324 -0
- package/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
- package/dist/{editor-B2ShlO23.d.ts → editor-B7OOAAie.d.ts} +181 -244
- package/dist/editor-fonts-D_-vjuJi.d.ts +53 -0
- package/dist/{editor-scope-C7ke1KJG.d.ts → editor-scope-CA6egMaK.d.ts} +6 -2
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +4 -4
- package/dist/editor.d.ts +259 -31
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +48 -19
- package/dist/export.js +2 -2
- package/dist/{failure-NS2lsya4.d.ts → failure-6KGFrDO9.d.ts} +1 -1
- package/dist/{font-resolver-CWh40DYp.d.ts → font-resolver-Bm9XqTNO.d.ts} +15 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +43 -26
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-CWS3j0Xr.d.ts → layout-shaping-Ci_BTnSU.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +181 -99
- package/dist/layout.js +1 -1
- package/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
- package/dist/{note-properties-QsKh24sM.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +11 -7
- package/dist/output.js +1 -1
- package/dist/{protocol-COZJUKUY.d.ts → protocol-Cp_QzVxS.d.ts} +75 -5
- package/dist/{review-paragraph-order-C_QbCKcH.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
- package/dist/revision-projection-OVusTS77.d.ts +258 -0
- package/dist/{semantic-cell-selection-Cub9FDa8.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
- package/dist/{semantic-interaction-dApRIYpt.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
- package/dist/{semantic-paint-DLzA8sjP.d.ts → semantic-paint-B5JcIv9c.d.ts} +19 -9
- package/dist/{semantic-record-queries-3yp9o11g.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
- package/dist/{semantic-records-B-akgRch.d.ts → semantic-records-DoK0lNjS.d.ts} +439 -418
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +511 -20
- package/dist/store.js +1 -1
- package/dist/{types-barrel-CkF2JbU4.d.ts → tree-op-types-Df4oY2u4.d.ts} +1081 -524
- package/dist/{tree-package-store-B8l8DX3Z.d.ts → tree-package-store-DXhX1PE-.d.ts} +8 -3
- package/dist/{tree-session-contract-DeLRqohz.d.ts → tree-session-contract-CF2625mv.d.ts} +5 -5
- package/dist/unsupported-elements-CUojsaCr.d.ts +23 -0
- package/docs/accept-reject-without-scrolling.md +95 -0
- package/docs/comment-on-found-text.md +72 -0
- package/docs/custom-review-cards.md +178 -0
- package/docs/highlight-ranges.md +48 -0
- package/docs/index.md +36 -0
- package/docs/propose-rewrite.md +247 -0
- package/docs/tracked-replacement.md +68 -0
- package/licenses/ECMA-376.md +29 -0
- package/package.json +3 -2
- package/dist/bookmark-names-DDuAra_V.d.ts +0 -37
- package/dist/chunk-243W4WW2.cjs +0 -2
- package/dist/chunk-2E2RPEKX.js +0 -1
- package/dist/chunk-4S24UOPG.js +0 -30
- package/dist/chunk-5JPIEN54.cjs +0 -3
- package/dist/chunk-5SO5QDMV.cjs +0 -2
- package/dist/chunk-6IDOVU6L.cjs +0 -1
- package/dist/chunk-6JIJOZDW.js +0 -1
- package/dist/chunk-BTQKU64Q.cjs +0 -1
- package/dist/chunk-DBOOTED4.cjs +0 -30
- package/dist/chunk-EOTAXOJY.cjs +0 -5
- package/dist/chunk-FDAKJ2SJ.cjs +0 -30
- package/dist/chunk-FNNOJNGY.js +0 -3
- package/dist/chunk-FT33HRZP.js +0 -5
- package/dist/chunk-HC6YNKUI.cjs +0 -1
- package/dist/chunk-HZ66UCIS.js +0 -2
- package/dist/chunk-IBRBNT37.cjs +0 -1
- package/dist/chunk-IVIN7X43.js +0 -30
- package/dist/chunk-LZY6B6IV.js +0 -4
- package/dist/chunk-MOYYRVFV.cjs +0 -2
- package/dist/chunk-N6B3BXCL.js +0 -1
- package/dist/chunk-Q5K2GGNG.js +0 -2
- package/dist/chunk-R2XINWVE.js +0 -7
- package/dist/chunk-SUEXVBPR.js +0 -1
- package/dist/chunk-T2QQHG5C.js +0 -18
- package/dist/chunk-VWIJKH4A.js +0 -1
- package/dist/chunk-WO4V6PNS.cjs +0 -18
- package/dist/chunk-XMJKFURD.cjs +0 -4
- package/dist/chunk-XSTGE3NI.cjs +0 -1
- package/dist/chunk-YQWMI6J5.cjs +0 -7
- package/dist/chunk-ZCJS7D7S.js +0 -2
- package/dist/diagnostic-context-DJ0P1uZE.d.ts +0 -31
- package/dist/headless-document-view-qOpaCF82.d.ts +0 -143
- package/dist/omml-equation-BsLAa2lX.d.ts +0 -115
package/dist/layout.d.ts
CHANGED
|
@@ -11,23 +11,25 @@
|
|
|
11
11
|
* @packageDocumentation
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
15
|
-
export {
|
|
14
|
+
import { v as NumberingLevel, w as NumberingIndex, S as SemanticLayout, g as StyleSpanRecord, I as InlineDrawingRecord, M as ModelRange, x as TableBorderSide, b as LayoutBox, D as DrawingPoint, y as DrawingInsets, z as TableFloatXSpec, E as TableFloatYSpec, P as ParagraphFragmentRecord, B as BlockFragmentRecord, A as AnchoredDrawingRecord, a as PageRecord, G as NumberingLevelIndent, J as ResolvedListItem, K as RefFieldContext, T as TextMeasurer, O as InlineDrawingLayoutContext, Q as CellBorderBox, W as TableBorderBox, X as TableCellStyleFormatting, Y as TableFloatPosition, Z as StyleCascadeTable, C as ContentControlBoundaryRecord$1, n as FixedPointRoundingMode, _ as FixedPoint, V as VersionedShapingLibrary, k as TextShaper, $ as FontByteValidator, s as ShapedRun, L as LineRecord, a0 as SourceRange, a1 as HyperlinkProjector, a2 as FieldLinkProjector, a3 as StoryPageFieldNeeds, a4 as HyperlinkFieldSpec, a5 as SpanLinkRecord, a6 as PageGeometry, a7 as SectionColumns, a8 as SectionPageBorders, a9 as PageBorderFrameRecord, aa as ParagraphBorderStrokeRecord, ab as StrikeoutStrokePt, ac as TextOutline } from './semantic-records-DoK0lNjS.js';
|
|
15
|
+
export { ad as AUTO_PARAGRAPH_SPACING_PT, ae as AbstractNumDefinition, af as AnchoredDrawingLayoutFallback, ag as BidiEmbeddingLevels, ah as BorderGridGeometry, ai as CascadedParagraphFormatting, aj as CjkTypographySettings, ak as ContentControlGeometryFragment, al as ContentControlLevel, d as ContentControlLock, am as ContentControlMappedType, an as ContentControlModelRange, ao as DEFAULT_PAGE_GEOMETRY, ap as DEFAULT_RUN_STYLE, aq as DEFAULT_SECTION_PROPERTIES, ar as DEFAULT_TAB_INTERVAL_PT, as as DEFAULT_TAB_INTERVAL_TWIPS, at as DeclaredFontSubstitution, au as DocumentSection, av as DocumentSectionsEnumeration, aw as DrawingClipFallback, ax as DrawingGeometry, ay as DrawingGroupPictureLayerRecord, az as DrawingGroupPictureRecord, aA as DrawingPlaceholderKind, aB as DrawingTextArtRecord, aC as EMPTY_NUMBERING_INDEX, aD as EMPTY_TAB_STOPS, aE as EquationBarGeometry, aF as EquationFractionGeometry, aG as EquationGeometry, aH as EquationNaryGeometry, aI as EquationRadicalGeometry, aJ as EquationRowGeometry, aK as EquationScriptGeometry, aL as EquationSpanRecord, aM as EquationTextGeometry, aN as FieldAtomMarker, aO as FontFingerprintInputs, o as FontRequest, aP as FontResolutionError, aQ as FontResolutionErrorCode, aR as FontResourceDefinition, aS as FontResourceInstrumentation, F as FontResourceSnapshot, aT as FontResourceSnapshotOptions, aU as FontSlot, r as FontSubstitution, aV as FontValidationResult, aW as GlyphOutline, aX as GroupTextboxStoryRecord, aY as HARD_MAX_AGGREGATE_FONT_BYTES, aZ as HARD_MAX_FONT_BYTES, a_ as HARD_MAX_FONT_SOURCES, H as HeaderFooterStoryRecord, a$ as LevelOverride, b0 as LineSpacingRule, b1 as ListMarkerAlign, q as ListMarkerPictureRecord, b2 as ListMarkerRecord, b3 as ListSuffix, b4 as MAX_BORDER_SPACE_PT, b5 as MAX_BORDER_WIDTH_PT, b6 as MAX_DOCUMENT_SECTIONS, b7 as MAX_LVL_OVERRIDES, b8 as MAX_NUMBERING_DEFINITIONS, b9 as MAX_PARAGRAPH_SPACING_PT, ba as MAX_SHAPING_CONTEXT, bb as MAX_STYLE_DEFINITIONS, bc as MAX_TABLE_BORDER_STROKES, bd as MAX_TAB_POSITION_TWIPS, be as MAX_TAB_STOPS, m as NormalizationPolicy, N as NoteAreaRecord, c as NoteStoryRecord, bf as NumDefinition, bg as NumberingPictureBullet, bh as PAGE_BORDER_SIDES, bi as PARAGRAPH_BORDER_SIDES, bj as PageBorderDisplay, bk as PageBorderOffsetFrom, bl as PageBorderSide, bm as PageBorderStrokeRecord, bn as PageBorderZOrder, bo as PageRefCalibrationCell, bp as PageRefFieldProjection, bq as ParagraphAutoSpacingContext, br as ParagraphBorderEdge, bs as ParagraphBorderSide, bt as ParagraphBorders, bu as ParagraphBottomBorderRecord, bv as ParagraphIndent, bw as ParagraphLayoutInputs, bx as ParagraphLineSpacing, by as ParagraphSpacing, bz as RefFieldSpec, bA as RefNoteParts, bB as ResolvedCellBorders, l as ResolvedFont, bC as ResolvedPictureBullet, R as ResolvedRunStyle, bD as ResolvedTabStops, bE as ResolvedTableBorderEdge, bF as ResolvedTableBorderEdgeSegment, bG as ResolvedUnderline, bH as SINGLE_LINE_SPACING, bI as ScriptItem, bJ as SectionBreakMarkRecord, bK as SectionBreakType, bL as SectionColumnDefinition, bM as SectionMargins, bN as SectionPageNumbering, t as SectionProperties, bO as SemanticArtifactRootStoryKind, bP as SemanticArtifactStoryKind, bQ as SemanticCommentArtifactRecord, bR as SemanticReviewArtifactOccurrence, bS as SemanticReviewArtifactOccurrenceGeometry, bT as SemanticReviewArtifactPosition, p as SemanticReviewArtifactRecord, bU as SemanticReviewArtifactSource, bV as SemanticTrackedChangeArtifactRecord, bW as ShapeInput, bX as ShapedCluster, bY as ShapedFontSpan, bZ as ShapedGlyph, b_ as ShapedRunComparatorInputs, b$ as ShapedVerticalMetrics, c0 as ShapingContext, c1 as ShapingEnvironment, c2 as ShapingEnvironmentFingerprintInputs, j as ShapingEnvironmentInput, c3 as StyleDefinition, c4 as TAB_LEADER_GLYPH, c5 as TabAlignment, c6 as TabDestination, c7 as TabLeader, c8 as TabStop, c9 as TableBorderSideName, ca as TableBorderStrokeRecord, cb as TableCellDiagonalRecord, i as TableCellFragmentRecord, cc as TableFragmentRecord, h as TableRowFragmentRecord, cd as TextArtFit, ce as TextDirection, cf as TextboxStoryFallbackReason, cg as TextboxStoryLayout, U as UnsupportedElement, e as UnsupportedElementLayout, f as UnsupportedElementRule, ch as UnsupportedScriptError, ci as VerticalAlign, cj as appliedSpaceBefore, ck as applyLineSpacing, cl as baselineShiftPtOf, cm as borderExtentPt, cn as borderWeight, co as bottomBorderExtentPt, cp as boundedStructuralFontValidator, cq as buildNumberingIndex, cr as buildStyleCascadeTable, cs as cascadeParagraphFormatting, ct as cascadeRunProperties, cu as cascadedBottomBorder, cv as cascadedParagraphBorders, cw as cascadedTabStops, cx as collapsedSpaceBefore, cy as createFontResourceSnapshot, cz as createShapedRun, cA as createShapingEnvironment, cB as createUnsupportedContentProjector, cC as defaultTabIntervalFromSettings, cD as displayText, cE as enumerateDocumentSections, cF as enumerateDocumentSectionsBounded, cG as fixedPoint, cH as fontRequestKey, cI as geometryOfSection, cJ as glyphSizeFactorOf, cK as groupPictureLayerDrawing, cL as isValidStyleId, cM as itemizeScriptFontSlots, cN as layoutEquation, cO as measureDisplayText, cP as nextTabDestination, cQ as pageBordersFingerprint, cR as paragraphBorderExtentPt, cS as paragraphBorderStrokeWidthPt, cT as paragraphBorders, cU as paragraphBordersFingerprint, cV as paragraphBreaksBefore, cW as paragraphContextualSpacing, cX as paragraphLineSpacing, cY as paragraphSectionNode, cZ as paragraphSpacing, c_ as paragraphTabStops, c$ as parsePageBorders, d0 as parsePageNumbering, d1 as parseRefInstruction, d2 as parseSectionProperties, d3 as projectedSectionSourceIndexes, d4 as readBorderSide, d5 as readCellBorders, d6 as readNumPr, d7 as readSectionProperties, d8 as readTableBorders, d9 as resolveBorderConflict, da as resolveNumberingLevel, db as resolveParagraphLayoutInputs, dc as resolveRunStyle, dd as resolveStoryListItems, de as resolveStoryRefFields, df as resolveTableCellBorderGrid, dg as runStylesEqual, dh as shapedRunComparatorInputs, di as shapingEnvironmentFingerprint, dj as shapingEnvironmentFingerprintInputs, dk as styleForFontSlot, dl as tabAdvanceWidth, dm as tabStopsFingerprint, dn as withDefaultTabInterval, dp as withNumberingStyleLinks, dq as withResolvedListItems } from './semantic-records-DoK0lNjS.js';
|
|
16
16
|
export { F as FontShapingOptions } from './font-shaping-policy-BvpkrfxM.js';
|
|
17
|
-
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-
|
|
18
|
-
import { a as SemanticStoryKind, S as SemanticRootStoryKind, b as SemanticStoryVisit, T as TextboxOwnerRecord } from './semantic-record-queries-
|
|
19
|
-
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-
|
|
20
|
-
import { aK as ImpactClass,
|
|
21
|
-
export {
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
import {
|
|
25
|
-
export {
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
export {
|
|
29
|
-
import './
|
|
30
|
-
|
|
17
|
+
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-Ci_BTnSU.js';
|
|
18
|
+
import { a as SemanticStoryKind, S as SemanticRootStoryKind, b as SemanticStoryVisit, T as TextboxOwnerRecord } from './semantic-record-queries-DnO8J5_j.js';
|
|
19
|
+
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-DnO8J5_j.js';
|
|
20
|
+
import { aK as ImpactClass, a4 as OoxmlNode, aC as OoxmlProperty, av as OoxmlElement, O as OoxmlPart, au as TreeDocOp, a5 as OoxmlPackage, bQ as ContentControlKind, bR as ContentControlLevel, bT as ContentControlLock, bN as ContentControlDataBinding, a as ReviewItem } from './tree-op-types-Df4oY2u4.js';
|
|
21
|
+
export { eM as AffineMatrix, bI as CommentAnchor, bJ as CommentPosition, C as CommentRecord, bu as CommentThreadState, a_ as DrawingAccessibility, eN as DrawingChartPlotType, eO as DrawingChartShownAs, b0 as DrawingChartSummary, a7 as DrawingHorizontalReferenceFrame, a$ as DrawingImageEffects, aW as DrawingTransform, ab as DrawingVerticalReferenceFrame, eP as GradientStop, ag as ImageWrapTarget, b2 as PictureFrameEffects, c as ReviewCommentItem, d as ReviewCustomItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, bs as ShapeColor, de as ShapeReflection, df as ShapeShadow, aT as SourceCrop, aX as TableBorderStyle, aY as TextboxOutlineProjection, dp as VectorGradient, dq as VectorPattern, aZ as VectorShapeComponent, b1 as VectorShapeProjection, dr as W15_NAMESPACE_URI, eQ as activeReviewItem, dY as firstReviewRange, ez as reviewItemKey, eR as reviewItemPositionRank, eA as reviewItemRanges, eS as reviewItemsAt, eT as reviewThreadRootOf } from './tree-op-types-Df4oY2u4.js';
|
|
22
|
+
import { c as DocumentProperties, H as HeadlessDocumentView, v as relationshipTargetIn } from './drawing-graphic-kind-CXYGYbB3.js';
|
|
23
|
+
export { D as DrawingGraphicKind, a as DrawingSupport, b as DrawingSupportIssue } from './drawing-graphic-kind-CXYGYbB3.js';
|
|
24
|
+
import { q as RevisionAttribution, b as RevisionDisplayMode, p as RevisionAuthorFilter } from './revision-projection-OVusTS77.js';
|
|
25
|
+
export { s as DEFAULT_REVISION_DISPLAY_MODE, t as RevisionFilter, u as RevisionKind, v as formatRevisionOf, w as markRevisionRemovesMark, x as paragraphMarkFormatRevisionOf, y as paragraphMarkRevisionOf, z as paragraphMarkRevisionsOf, A as revisionAuthorFilter, B as revisionsAreDeletion, C as revisionsVisible, E as shownMarkRevision } from './revision-projection-OVusTS77.js';
|
|
26
|
+
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties } from './note-properties-DCIJUKIy.js';
|
|
27
|
+
import { c as TreeModelChange, N as NoteKind, aK as noteTypeOf, F as FieldResultsMode } from './tree-package-store-DXhX1PE-.js';
|
|
28
|
+
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-BJQ43_r0.js';
|
|
29
|
+
import { S as SemanticPosition, b as SelectionRect, a as SemanticSelection, C as CaretGeometry } from './semantic-interaction-BbA4dgEo.js';
|
|
30
|
+
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-BbA4dgEo.js';
|
|
31
|
+
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-CoI5hHBm.js';
|
|
32
|
+
import './editor-scope-CA6egMaK.js';
|
|
31
33
|
|
|
32
34
|
/**
|
|
33
35
|
* The result of counting ONE list paragraph: the level that applied, the counter vector after it,
|
|
@@ -165,19 +167,6 @@ interface LayoutScheduler {
|
|
|
165
167
|
*/
|
|
166
168
|
declare function createLayoutScheduler(options: LayoutSchedulerOptions): LayoutScheduler;
|
|
167
169
|
|
|
168
|
-
interface PositionedTableAnchorSignal {
|
|
169
|
-
readonly anchorId: string;
|
|
170
|
-
readonly column: number;
|
|
171
|
-
readonly fragmentIndex: number;
|
|
172
|
-
readonly anchorY: number;
|
|
173
|
-
}
|
|
174
|
-
interface PendingPositionedTableTokens {
|
|
175
|
-
readonly token: string;
|
|
176
|
-
readonly previous: PendingPositionedTableTokens | undefined;
|
|
177
|
-
readonly length: number;
|
|
178
|
-
readonly signature: string;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
170
|
/**
|
|
182
171
|
* What the BODY flow knows about page numbering while it MEASURES a page-field placeholder.
|
|
183
172
|
*
|
|
@@ -221,67 +210,6 @@ interface FieldPageContext {
|
|
|
221
210
|
*/
|
|
222
211
|
declare function formatPageNumber(value: number, format: string | undefined): string;
|
|
223
212
|
|
|
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
|
-
|
|
285
213
|
type AutonumFieldKind = 'AUTONUM' | 'AUTONUMLGL' | 'AUTONUMOUT';
|
|
286
214
|
/** One recognized AUTONUM-family instruction: the kind and its supported switches. */
|
|
287
215
|
interface AutonumFieldSpec {
|
|
@@ -545,6 +473,11 @@ interface PendingLine {
|
|
|
545
473
|
* Placement keeps its skip even on a line before the paragraph's first anchor.
|
|
546
474
|
*/
|
|
547
475
|
breakClearance?: true;
|
|
476
|
+
/**
|
|
477
|
+
* The skip clears a paragraph-framed band of an anchor on a later line of the same paragraph
|
|
478
|
+
* (`top-and-bottom-earlier-lines.ts`). Placement keeps it, as it keeps {@link breakClearance}.
|
|
479
|
+
*/
|
|
480
|
+
ownBandClearance?: true;
|
|
548
481
|
/** Clearance inherited by an empty anchor paragraph from other drawing bands. */
|
|
549
482
|
anchorClearanceBefore?: number;
|
|
550
483
|
/**
|
|
@@ -620,6 +553,20 @@ interface CompoundBorderMetrics {
|
|
|
620
553
|
* belongs to rendering; these layout metrics remain in continuous points.
|
|
621
554
|
*/
|
|
622
555
|
declare function computeDoubleBorderMetricsPt(widthPt: number): CompoundBorderMetrics;
|
|
556
|
+
/** One stroke of a compound border: offset from the band's top or left edge, and width. @internal */
|
|
557
|
+
interface CompoundBorderStroke {
|
|
558
|
+
/** Distance from the band's top (or left) edge to this stroke, in points. */
|
|
559
|
+
readonly offsetPt: number;
|
|
560
|
+
/** Thickness of this stroke, in points. */
|
|
561
|
+
readonly widthPt: number;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* The strokes of a triple or thin-thick border whose painted band is `extentPt` thick, for a
|
|
565
|
+
* painter that holds the band and not the authored width. Null for any other style.
|
|
566
|
+
*
|
|
567
|
+
* @internal
|
|
568
|
+
*/
|
|
569
|
+
declare function compoundBorderStrokesForExtentPt(val: string, extentPt: number): readonly CompoundBorderStroke[] | null;
|
|
623
570
|
|
|
624
571
|
/** Soft ceiling on fragments emitted for one authored row (hostile / runaway splits). */
|
|
625
572
|
declare const MAX_TABLE_ROW_FRAGMENTS = 4096;
|
|
@@ -639,6 +586,86 @@ declare class TablePaginationError extends Error {
|
|
|
639
586
|
constructor(code: TablePaginationErrorCode, message: string);
|
|
640
587
|
}
|
|
641
588
|
|
|
589
|
+
type WrapTextSide = 'bothSides' | 'left' | 'right' | 'largest';
|
|
590
|
+
interface WrapExclusionInput {
|
|
591
|
+
readonly mode: 'square' | 'tight' | 'through' | 'topAndBottom';
|
|
592
|
+
readonly contentBounds: LayoutBox;
|
|
593
|
+
readonly polygon: readonly DrawingPoint[] | null;
|
|
594
|
+
readonly clipPolygon: readonly DrawingPoint[] | null;
|
|
595
|
+
readonly wrapDistances: DrawingInsets;
|
|
596
|
+
readonly effectInsets: DrawingInsets;
|
|
597
|
+
readonly textSide: WrapTextSide;
|
|
598
|
+
readonly contentLeft: number;
|
|
599
|
+
readonly contentRight: number;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/** Paint layer relative to body text — not the OOXML wrap element. */
|
|
603
|
+
type DrawingPaintLayer = 'behind' | 'inFront';
|
|
604
|
+
/** The header or footer object a furniture exclusion zone comes from. */
|
|
605
|
+
interface FurnitureZoneSource {
|
|
606
|
+
readonly partName: string;
|
|
607
|
+
readonly kind: 'drawing' | 'table';
|
|
608
|
+
readonly nodeId: string;
|
|
609
|
+
}
|
|
610
|
+
interface ExclusionZone {
|
|
611
|
+
/** Objects outside body drawing flow publish their exclusion directly instead of synthesizing it. */
|
|
612
|
+
readonly sourceKind?: 'table' | 'frame' | 'furniture';
|
|
613
|
+
/**
|
|
614
|
+
* Placed by an earlier section on the sheet a `continuous` section continues on. Its anchor
|
|
615
|
+
* is not in the continued section, so the zone reaches every line and column there.
|
|
616
|
+
*/
|
|
617
|
+
readonly earlierSection?: boolean;
|
|
618
|
+
/**
|
|
619
|
+
* The header or footer object a `furniture` zone comes from. Node ids are unique only within
|
|
620
|
+
* one part, so a furniture zone is identified by its part, its kind, and its node together
|
|
621
|
+
* (see {@link exclusionZoneIdentity}), never by a composed id string.
|
|
622
|
+
*/
|
|
623
|
+
readonly furnitureSource?: FurnitureZoneSource;
|
|
624
|
+
readonly drawingNodeId: string;
|
|
625
|
+
readonly anchorParagraphId: string;
|
|
626
|
+
/** UTF-16 model offset of the anchor atom — exclusions apply at/after this point in the paragraph. */
|
|
627
|
+
readonly anchorModelStart: number;
|
|
628
|
+
/**
|
|
629
|
+
* The band's vertical position is resolved against the page or a margin, not against the
|
|
630
|
+
* anchor's own flow position, so it cannot move when the text beside it reflows.
|
|
631
|
+
*
|
|
632
|
+
* Such a band excludes every line it crosses on its page, including lines that PRECEDE the
|
|
633
|
+
* anchor — a picture pinned to the top of the margin wraps the paragraphs above its anchor
|
|
634
|
+
* exactly as it wraps the ones below. Flow-relative bands (`paragraph`, `line`) stay
|
|
635
|
+
* forward-only: reaching back would move the anchor that positions them.
|
|
636
|
+
*/
|
|
637
|
+
readonly pageFramedBand?: boolean;
|
|
638
|
+
/**
|
|
639
|
+
* A text-anchored table raised above its anchor that leaves no text passage beside it. Like a
|
|
640
|
+
* page-framed band it moves the earlier lines it covers on its page below it. Its own position
|
|
641
|
+
* leaves out that move, so it does not chase its anchor.
|
|
642
|
+
*/
|
|
643
|
+
readonly reachesEarlierLines?: boolean;
|
|
644
|
+
readonly sourceOrder: number;
|
|
645
|
+
readonly paintLayer: DrawingPaintLayer;
|
|
646
|
+
readonly relativeHeight: number;
|
|
647
|
+
readonly allowOverlap: boolean;
|
|
648
|
+
/** Owning column index in a multi-column section — 0 for single-column and HF stories. */
|
|
649
|
+
readonly columnIndex: number;
|
|
650
|
+
/** Resolved top edge in page-content coordinates after overlap displacement. */
|
|
651
|
+
readonly y: number;
|
|
652
|
+
readonly verticalBand: LayoutBox;
|
|
653
|
+
readonly input: WrapExclusionInput;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
interface PositionedTableAnchorSignal {
|
|
657
|
+
readonly anchorId: string;
|
|
658
|
+
readonly column: number;
|
|
659
|
+
readonly fragmentIndex: number;
|
|
660
|
+
readonly anchorY: number;
|
|
661
|
+
}
|
|
662
|
+
interface PendingPositionedTableTokens {
|
|
663
|
+
readonly token: string;
|
|
664
|
+
readonly previous: PendingPositionedTableTokens | undefined;
|
|
665
|
+
readonly length: number;
|
|
666
|
+
readonly signature: string;
|
|
667
|
+
}
|
|
668
|
+
|
|
642
669
|
type ParagraphFrameHeightRule = 'auto' | 'atLeast' | 'exact';
|
|
643
670
|
type ParagraphFrameWrap = 'auto' | 'around' | 'tight' | 'through' | 'none' | 'notBeside';
|
|
644
671
|
/** Bounded text-frame properties resolved for semantic layout. */
|
|
@@ -885,8 +912,15 @@ declare function createLayoutSession(): LayoutSession;
|
|
|
885
912
|
*/
|
|
886
913
|
declare function mergeListIndent(levelIndent: NumberingLevelIndent, inherited: readonly OoxmlProperty[], direct?: readonly OoxmlProperty[]): NumberingLevelIndent;
|
|
887
914
|
|
|
888
|
-
/**
|
|
889
|
-
|
|
915
|
+
/**
|
|
916
|
+
* Collect story paragraphs, preserving table depth limits across immutable row reuse.
|
|
917
|
+
*
|
|
918
|
+
* `skipMergedCells` leaves out the paragraphs of a cell that continues a vertical merge from
|
|
919
|
+
* the cell above it in the same grid column (`w:vMerge` without `restart`). Such a cell shows
|
|
920
|
+
* nothing, so list numbering skips it; a continuation with no merged cell above it starts its
|
|
921
|
+
* own merge and keeps its paragraphs.
|
|
922
|
+
*/
|
|
923
|
+
declare function walkStoryParagraphs(blocks: readonly OoxmlElement[], maxTableDepth?: number, skipMergedCells?: boolean): OoxmlElement[];
|
|
890
924
|
|
|
891
925
|
/**
|
|
892
926
|
* Horizontal marker box inside the first-line indent slot.
|
|
@@ -978,6 +1012,12 @@ interface TableAutofitContext {
|
|
|
978
1012
|
readonly fields?: AutofitFieldContext;
|
|
979
1013
|
/** The document's default tab interval, where an unwrapped line's tabs advance to. */
|
|
980
1014
|
readonly defaultTabStopPt?: number;
|
|
1015
|
+
/**
|
|
1016
|
+
* The document's compatibility mode, as `w:compatSetting` states it. Absent means no
|
|
1017
|
+
* declaration, which lays out as a legacy mode: a positive first-line indent is left out of a
|
|
1018
|
+
* column's minimum. Callers that set it must also fold it into {@link passToken}.
|
|
1019
|
+
*/
|
|
1020
|
+
readonly compatibilityMode?: number;
|
|
981
1021
|
/**
|
|
982
1022
|
* A token that changes whenever a paragraph's projected text can change: the same tokens
|
|
983
1023
|
* the paragraph break cache keys on. Minimums are cached only when this and
|
|
@@ -1091,6 +1131,8 @@ interface SemanticTableCell {
|
|
|
1091
1131
|
readonly headsVerticalMerge?: true;
|
|
1092
1132
|
/** `w:hideMark` excludes the end-of-cell glyph from row sizing. */
|
|
1093
1133
|
readonly hideEndMark?: boolean;
|
|
1134
|
+
/** `w:noWrap`: autofit never narrows the cell's column below its preferred width. */
|
|
1135
|
+
readonly noWrap?: true;
|
|
1094
1136
|
/** `w:vAlign` — defaults to top when omitted/unrecognised. */
|
|
1095
1137
|
readonly vAlign: CellVerticalAlign;
|
|
1096
1138
|
/** `w:textDirection`; unsupported values keep horizontal layout. */
|
|
@@ -1107,8 +1149,6 @@ interface SemanticTableCell {
|
|
|
1107
1149
|
readonly contentBottomIsOuter?: boolean;
|
|
1108
1150
|
/** Clearance this AUTHORED ROW reserves above its content for its own top rule, in points. */
|
|
1109
1151
|
readonly topBandClearancePt?: number;
|
|
1110
|
-
/** The CELL declares `w:tcBorders/w:top` as `nil`, rather than a table style doing so. */
|
|
1111
|
-
readonly suppressesTopBand?: true;
|
|
1112
1152
|
/** Row-local clearance in points for authored minima, before vMerge combines content boxes. */
|
|
1113
1153
|
readonly minimumContentInsets?: {
|
|
1114
1154
|
readonly top: number;
|
|
@@ -1189,6 +1229,11 @@ interface SemanticTableStructure {
|
|
|
1189
1229
|
* keeps inside its container, so its grid settles that much narrower than the room.
|
|
1190
1230
|
*/
|
|
1191
1231
|
readonly autoOuterRulePt?: number;
|
|
1232
|
+
/**
|
|
1233
|
+
* Derived, never serialized: a top-level autofit table whose absolute `w:tblW` is wider than
|
|
1234
|
+
* its text column. See `tableWidthPastTextColumn`.
|
|
1235
|
+
*/
|
|
1236
|
+
readonly pastTextColumn?: true;
|
|
1192
1237
|
/** `w:tblPr/w:tblW` — the width the table asked for. */
|
|
1193
1238
|
readonly tableWidth: PreferredWidth;
|
|
1194
1239
|
/**
|
|
@@ -1719,9 +1764,14 @@ interface SemanticSpanVisit {
|
|
|
1719
1764
|
declare function exportSourceRangeOf(span: StyleSpanRecord): SourceRange | null;
|
|
1720
1765
|
/**
|
|
1721
1766
|
* Visit every published span in page/story order without consulting the source package.
|
|
1767
|
+
* With `spanlessMarkers`, a paragraph fragment that publishes a list marker but no span, such
|
|
1768
|
+
* as an empty numbered paragraph, is visited once, in order, with an empty span on its first
|
|
1769
|
+
* line, so an exporter that paints markers beside spans paints its marker too.
|
|
1722
1770
|
* @public
|
|
1723
1771
|
*/
|
|
1724
|
-
declare function forEachSemanticSpan(layout: SemanticLayout, visitor: (visit: SemanticSpanVisit) => void
|
|
1772
|
+
declare function forEachSemanticSpan(layout: SemanticLayout, visitor: (visit: SemanticSpanVisit) => void, options?: {
|
|
1773
|
+
readonly spanlessMarkers?: boolean;
|
|
1774
|
+
}): void;
|
|
1725
1775
|
|
|
1726
1776
|
/**
|
|
1727
1777
|
* The part of a line that belongs to ONE paragraph.
|
|
@@ -1744,7 +1794,7 @@ declare function lineSegments(line: LineRecord): readonly LineSegment[];
|
|
|
1744
1794
|
|
|
1745
1795
|
/**
|
|
1746
1796
|
* The box a painter clips a vector shape to: `bounds` grown on each side where a stroked
|
|
1747
|
-
* outline reaches past the drawing extent.
|
|
1797
|
+
* outline or an outer shadow reaches past the drawing extent.
|
|
1748
1798
|
*
|
|
1749
1799
|
* An outline is centred on its geometry and is not cut at the extent, a text column, or a cell
|
|
1750
1800
|
* edge that meets the extent: a rule at x=0 of a group with `wp:effectExtent l="0"` keeps
|
|
@@ -2502,6 +2552,14 @@ declare function paragraphShading(props: readonly OoxmlProperty[]): string | und
|
|
|
2502
2552
|
declare function paragraphShadingBox(lines: readonly {
|
|
2503
2553
|
readonly box: LayoutBox;
|
|
2504
2554
|
}[], x: number, width: number): LayoutBox | undefined;
|
|
2555
|
+
/**
|
|
2556
|
+
* The colour of automatic text on a `background` fill: white on a dark fill, null for the
|
|
2557
|
+
* default black. A fill is dark when its luma (0.299 R + 0.587 G + 0.114 B, out of 255) is
|
|
2558
|
+
* under 59.5: grey `3B3B3B` takes white text and `3C3C3C` black, as measured.
|
|
2559
|
+
*
|
|
2560
|
+
* @internal
|
|
2561
|
+
*/
|
|
2562
|
+
declare function automaticTextColor(background: string | null | undefined): 'FFFFFF' | null;
|
|
2505
2563
|
|
|
2506
2564
|
/**
|
|
2507
2565
|
* Everything a layout pass needs beyond the document itself.
|
|
@@ -2579,7 +2637,7 @@ interface SemanticLayoutOptions {
|
|
|
2579
2637
|
readonly sectionFurniture?: readonly (PageFurniture | undefined)[];
|
|
2580
2638
|
/**
|
|
2581
2639
|
* `w:evenAndOddHeaders` from settings.xml. A section that restarts its page numbering then
|
|
2582
|
-
*
|
|
2640
|
+
* aligns its continued numbering with the required break or restart parity. When absent,
|
|
2583
2641
|
* layout reads the flag from the section furniture.
|
|
2584
2642
|
*/
|
|
2585
2643
|
readonly evenAndOddHeaders?: boolean;
|
|
@@ -2678,6 +2736,12 @@ interface SemanticLayoutOptions {
|
|
|
2678
2736
|
* @internal
|
|
2679
2737
|
*/
|
|
2680
2738
|
readonly pageBottomReservesFromPreviousPass?: boolean;
|
|
2739
|
+
/**
|
|
2740
|
+
* With a seed: each page reads its reserve where its content stood in the previous pass, and
|
|
2741
|
+
* the pass reports what it read (`takeReadReserves`); see `note-first-round.ts`.
|
|
2742
|
+
* @internal
|
|
2743
|
+
*/
|
|
2744
|
+
readonly pageBottomReservesFollowFlow?: boolean;
|
|
2681
2745
|
/** Derived note marks for body/note projection (provisional or final). */
|
|
2682
2746
|
readonly noteMarks?: NoteMarkContext;
|
|
2683
2747
|
/** Inline drawing projection for typed `w:drawing` / `wp:inline` nodes. */
|
|
@@ -3171,6 +3235,17 @@ interface MaterializationInput {
|
|
|
3171
3235
|
*/
|
|
3172
3236
|
declare function pagesToMaterialize(input: MaterializationInput): Set<number>;
|
|
3173
3237
|
|
|
3238
|
+
/**
|
|
3239
|
+
* Extra advance of each inked glyph when bold is synthesized, as a fraction of the font size.
|
|
3240
|
+
*
|
|
3241
|
+
* A face without a bold style draws bold by thickening its outlines, and each glyph that has
|
|
3242
|
+
* ink then advances 1/50 em further. Blank glyphs such as spaces keep their advance. Measured
|
|
3243
|
+
* on Arabic text at 10, 20, 30, and 36 pt: the extra width matched this rule to the pixel.
|
|
3244
|
+
*
|
|
3245
|
+
* @public
|
|
3246
|
+
*/
|
|
3247
|
+
declare const SYNTHETIC_BOLD_ADVANCE_EM: number;
|
|
3248
|
+
|
|
3174
3249
|
/** Character border geometry from placed spans, shared by screen and export painters. */
|
|
3175
3250
|
declare function runBorderStrokesForLine(line: LineRecord): readonly ParagraphBorderStrokeRecord[];
|
|
3176
3251
|
|
|
@@ -3212,5 +3287,12 @@ declare function tabLeaderPattern(startPt: number, widthPt: number, advancePt: n
|
|
|
3212
3287
|
*/
|
|
3213
3288
|
declare function noteSeparatorRuleBox(span: StyleSpanRecord, line: LineRecord, stroke?: StrikeoutStrokePt): LayoutBox;
|
|
3214
3289
|
|
|
3215
|
-
|
|
3216
|
-
|
|
3290
|
+
/**
|
|
3291
|
+
* The run's ink as one path, or undefined when a glyph has no outline the path grammar can
|
|
3292
|
+
* read, a glyph is missing from the face (`.notdef`), or the path would exceed its budget.
|
|
3293
|
+
* @internal
|
|
3294
|
+
*/
|
|
3295
|
+
declare function shapedRunOutline(run: ShapedRun, pointSize: number, fixedPointScale: number): TextOutline | undefined;
|
|
3296
|
+
|
|
3297
|
+
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, NumberingLevelIndent, PageBorderFrameRecord, PageGeometry, PageRecord, ParagraphBorderStrokeRecord, ParagraphFragmentRecord, RefFieldContext, ResolvedListItem, ReviewItem, RevisionAttribution, RevisionAuthorFilter, RevisionDisplayMode, SYNTHETIC_BOLD_ADVANCE_EM, SectionColumns, SectionPageBorders, SelectionRect, SemanticLayout, SemanticPosition, SemanticRootStoryKind, SemanticSelection, SemanticStoryKind, SemanticStoryVisit, ShapedRun, SourceRange, SpanLinkRecord, StrikeoutStrokePt, StyleCascadeTable, StyleSpanRecord, TableBorderBox, TableBorderSide, TableCellStyleFormatting, TablePaginationError, TextMeasurer, TextOutline, TextShaper, TextboxOwnerRecord, VersionedShapingLibrary, WORD_SEGMENTER_LOCALE, anchorLineY, attachNotesToLayout, automaticTextColor, boundedFallbackWordSegments, buildPageRefIndex, clampListValue, compoundBorderStrokesForExtentPt, 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, mergeListIndent, 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, shapedRunOutline, storyBlocks, syntheticSeparatorBox, tabLeaderPattern, tableOriginX, tocFieldChromeParagraphIds, tryCreateCanvasMeasurer, utf16OffsetToGrapheme, vectorShapeInkClip, walkStoryParagraphs, wordBoundary, wordSegmentsToGraphemeRecords };
|
|
3298
|
+
export type { AutofitFieldContext, AutonumFieldKind, AutonumFieldSpec, CanvasMeasurerOptions, CanvasTextContext, CanvasTextMetrics, CellMarginsPt, CellVerticalAlign, CompoundBorderMetrics, CompoundBorderStroke, 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{R as DEFAULT_CANVAS_FONT_STACK,b as HARFBUZZ_SHAPING_LIBRARY,e as HarfBuzzShapingError,k as LayoutShapingConfigurationError,K as ResolvedCache,z as WORD_SEGMENTER_LOCALE,$ as anchorLineY,C as boundedFallbackWordSegments,I as captureOperationSnapshot,
|
|
1
|
+
export{R as DEFAULT_CANVAS_FONT_STACK,b as HARFBUZZ_SHAPING_LIBRARY,e as HarfBuzzShapingError,k as LayoutShapingConfigurationError,K as ResolvedCache,fa as SYNTHETIC_BOLD_ADVANCE_EM,z as WORD_SEGMENTER_LOCALE,$ as anchorLineY,C as boundedFallbackWordSegments,I as captureOperationSnapshot,ka as cellSelectionBetween,oa as cellSelectionRects,pa as cellSelectionText,_ as contentControlBoundaries,D as createBoundedFallbackWordBoundary,E as createDefaultWordBoundary,g as createHarfBuzzTextShaper,B as createIntlWordBoundary,ja as createLayoutScheduler,ha as createLayoutShapedMeasurer,r as createLayoutShaping,ga as createShapedMeasurer,t as disposeLayoutShaping,L as exportSourceRangeOf,M as forEachSemanticSpan,J as guardOperationSnapshot,f as harfBuzzFontValidator,c as initializeHarfBuzz,U as isCanvasMeasurementAvailable,x as isCumulativeGeometryTrustedFromLineOrigin,w as isGeometryTrustedCaretOffset,d as isHarfBuzzInitialized,A as isIntlWordSegmenterAvailable,v as isWholeGraphemeHorizontalBoundary,q as layoutFontConfigurationFingerprint,X as pageRefPageNumbersFromLayout,ia as pagesToMaterialize,ma as paragraphsInCells,Y as planRefFieldResultRefresh,o as prepareLayoutFontConfiguration,W as resolveDefaultSurfaceMeasurer,F as resolveDefaultWordBoundary,aa as reviewAnchorIndex,ba as reviewItemGeometry,a as roundFontUnitToFixedPoint,G as segmentWords,y as semanticHorizontalBoundaries,u as shapedHorizontalBoundaries,ea as shapedRunOutline,na as spansInCells,ua as tabLeaderPattern,qa as tableContextAt,V as tryCreateCanvasMeasurer,N as vectorShapeInkClip,H as wordSegmentsToGraphemeRecords}from'./chunk-SVM6PGMS.js';export{a as setHarfBuzzWasmUrl}from'./chunk-RIYSCEFQ.js';export{Q as AUTO_PARAGRAPH_SPACING_PT,oc as AUTO_PREFERRED_WIDTH,pc as CELL_PAD,J as COMPOUND_BORDER_MIN_GAP_PT,I as COMPOUND_BORDER_MIN_STROKE_PT,qc as DEFAULT_CELL_MARGINS,Aa as DEFAULT_PAGE_GEOMETRY,db as DEFAULT_REVISION_DISPLAY_MODE,ea as DEFAULT_RUN_STYLE,Dd as DEFAULT_SECTION_PROPERTIES,Bb as DEFAULT_TAB_INTERVAL_PT,Ab as DEFAULT_TAB_INTERVAL_TWIPS,ae as DEFAULT_VERTICAL_WEIGHT,cd as EMPTY_NUMBERING_INDEX,Db as EMPTY_TAB_STOPS,d as FontResolutionError,na as GRAPHEME_SEGMENTER_LOCALE,c as HARD_MAX_AGGREGATE_FONT_BYTES,a as HARD_MAX_FONT_BYTES,b as HARD_MAX_FONT_SOURCES,P as MAX_BORDER_SPACE_PT,O as MAX_BORDER_WIDTH_PT,Cd as MAX_DOCUMENT_SECTIONS,Zf as MAX_EACH_PAGE_MARK_CANDIDATES,$c as MAX_LVL_OVERRIDES,wc as MAX_LVL_TEXT_LENGTH,vc as MAX_MARKER_TEXT_LENGTH,Gf as MAX_NOTES_LAID_OUT,Hf as MAX_NOTE_FRAGMENTS,Yf as MAX_NOTE_OVERFLOW_PAGES,Xf as MAX_NOTE_REFLOW_ATTEMPTS,_c as MAX_NUMBERING_DEFINITIONS,N as MAX_PARAGRAPH_SPACING_PT,o as MAX_SHAPING_CONTEXT,id as MAX_STYLE_BASED_ON_DEPTH,Qe as MAX_STYLE_DEFINITIONS,cc as MAX_TABLE_BORDER_STROKES,Yd as MAX_TABLE_NESTING,nf as MAX_TABLE_ROW_FRAGMENTS,Zd as MAX_TABLE_ROW_HEIGHT_PT,zb as MAX_TAB_POSITION_TWIPS,yb as MAX_TAB_STOPS,yd as PAGE_BORDER_SIDES,S as PARAGRAPH_BORDER_SIDES,R as SINGLE_LINE_SPACING,Cb as TAB_LEADER_GLYPH,of as TablePaginationError,xa as UnsupportedScriptError,da as appliedSpaceBefore,W as applyLineSpacing,cg as attachNotesToLayout,E as automaticTextColor,ja as baselineShiftPtOf,jc as borderExtentPt,gc as borderWeight,aa as bottomBorderExtentPt,l as boundedStructuralFontValidator,ad as buildNumberingIndex,$f as buildPageRefIndex,Re as buildStyleCascadeTable,te as caretAt,ke as caretBoxOnLine,re as caretStops,se as caretStopsForBlocks,Se as cascadeParagraphFormatting,Ve as cascadeRunProperties,Ue as cascadedBottomBorder,Z as cascadedParagraphBorders,Eb as cascadedTabStops,xc as clampListValue,ca as collapsedSpaceBefore,ze as compositionAnchor,L as compoundBorderStrokesForExtentPt,K as computeDoubleBorderMetricsPt,bg as computeFootnoteReserves,he as contentControlAtPoint,qe as contentControlAtSemantic,zf as contentControlHoldingParagraph,yf as contentControlRecordsInPart,ue as contentControlsInLayout,Na as contentControlsOfLayout,sf as createDocumentFurnitureSource,vf as createDocumentLinkProjectors,tf as createDocumentNotesInput,ef as createDocumentStyleDependencies,wf as createFieldLinkRegistry,ma as createFixedMeasurer,m as createFontResourceSnapshot,hg as createLayoutSession,pd as createListCounterState,Oe as createParagraphLayoutCache,u as createShapedRun,r as createShapingEnvironment,tb as createUnsupportedContentProjector,Nf as defaultNoteSeparatorRuleStyle,Hb as defaultTabIntervalFromSettings,xe as deletedTextBoundaries,vd as deriveNoteDisplayMarks,wd as deriveNoteDisplayMarksResolved,ga as displayText,Xa as documentOrder,uf as documentRelationshipTargetIn,bc as effectiveBorderSide,Pa as effectiveContentControlLock,vb as emptyTocPlaceholderParagraphIds,wb as emptyTocSuppressedResultParagraphIds,Jd as enumerateDocumentSections,Ld as enumerateDocumentSectionsBounded,Ya as everyStoryOrder,Fc as expandLvlText,ag as filterRefsOnPage,le as findDrawingOverlayFrameInLayout,Kf as findSeparatorNote,n as fixedPoint,h as fontRequestKey,Ja as forEachSemanticDrawing,Ha as forEachSemanticStory,Ka as forEachStoryParagraphFragment,yc as formatDecimal,zc as formatDecimalZero,Dc as formatLowerLetter,Bc as formatLowerRoman,Ec as formatNumFmt,Vc as formatPageNumber,nb as formatRevisionOf,Cc as formatUpperLetter,Ac as formatUpperRoman,_f as fragmentOwnsAtomOffset,La as fragmentsOfParagraph,Md as geometryOfSection,ka as glyphSizeFactorOf,qa as graphemeBoundaryEpoch,ua as graphemeCount,wa as graphemeOffsetToUtf16,sb as groupPictureLayerDrawing,ee as hitTestPage,pe as hitTestSemantic,ge as hitTestSheet,pa as intlGraphemeBoundary,ce as isFurniturePoint,oa as isIntlSegmenterAvailable,Of as isMarkerOnlySeparatorNote,ed as isValidStyleId,ya as itemizeScriptFontSlots,Ee as keyedRangeRects,tc as layoutEquation,rf as layoutHeaderFooterStory,Mf as layoutNoteById,Pf as layoutNoteSeparator,Lf as layoutNoteStory,ig as layoutSemanticDocument,Ma as lineAtPosition,ie as lineEndOffset,Qa as lineSegments,Ea as linesOf,Lb as listMarkerBox,lb as markRevisionRemovesMark,ha as measureDisplayText,od as mergeListIndent,ye as moveCaret,Ib as nextTabDestination,Jf as normalNotesOf,xd as noteDisplayMarkMap,If as noteLineIdPrefix,Ud as noteMarkKey,Rf as noteSeparatorAreaBox,Ff as noteSeparatorRuleBox,$e as noteStoryBlocks,be as pageAtY,Ef as pageBorderFrame,Ad as pageBordersFingerprint,$ as paragraphBorderExtentPt,_ as paragraphBorderStrokeWidthPt,Y as paragraphBorders,ba as paragraphBordersFingerprint,M as paragraphBreaksBefore,X as paragraphContextualSpacing,Ca as paragraphFragmentsOf,Da as paragraphFragmentsOfBlocks,Ne as paragraphLayoutKey,V as paragraphLineSpacing,kc as paragraphMarkDeleted,jb as paragraphMarkFormatRevisionOf,mb as paragraphMarkRevisionOf,ib as paragraphMarkRevisionsOf,Hd as paragraphSectionNode,C as paragraphShading,D as paragraphShadingBox,U as paragraphSpacing,Fb as paragraphTabStops,we as paragraphTextFromLayout,Pc as parseAutonumInstruction,zd as parsePageBorders,Ed as parsePageNumbering,Oc as parseRefInstruction,Fd as parseSectionProperties,Qb as positionPastDeletion,Vd as projectedNoteMarkText,Kd as projectedSectionSourceIndexes,dg as provisionalNoteMarks,dc as readBorderSide,fc as readCellBorders,rd as readNumPr,Id as readSectionProperties,ec as readTableBorders,_d as readTableStructure,ta as resetGraphemeBoundary,hc as resolveBorderConflict,bd as resolveNumberingLevel,A as resolveOoxmlShadingFill,We as resolveParagraphLayoutInputs,fa as resolveRunStyle,td as resolveStoryListItems,Pd as resolveStoryRefFields,z as resolveStrictHexFill,ic as resolveTableCellBorderGrid,gb as revisionAuthorFilter,mc as revisionRemovesParagraph,ob as revisionsAreDeletion,hb as revisionsVisible,dd as runBorderStrokesForLine,ia as runStylesEqual,ra as segmentGraphemes,Be as selectionRects,sa as setGraphemeBoundary,B as shadingFillFromElement,v as shapedRunComparatorInputs,t as shapingEnvironmentFingerprint,s as shapingEnvironmentFingerprintInputs,kb as shownMarkRevision,je as spanOffsetX,Ae as spansInSelection,_e as storyBlocks,za as styleForFontSlot,Qf as syntheticSeparatorBox,Jb as tabAdvanceWidth,Kb as tabStopsFingerprint,Xd as tableOriginX,ub as tocFieldChromeParagraphIds,Oa as unionLayoutBoxes,va as utf16OffsetToGrapheme,Qc as walkStoryParagraphs,Gb as withDefaultTabInterval,sd as withNumberingStyleLinks,ud as withResolvedListItems,ne as wordBoundary}from'./chunk-CM5VZRBV.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';export{bd as MAX_SDT_NESTING,qm as MAX_TABLE_COLUMNS,wj as W15_NAMESPACE_URI,_k as activeReviewItem,gd as collectFlowBlocks,El as commentBodyText,Gl as commentInitials,fd as contentControlContentChildren,Wk as firstReviewRange,cd as isContentControl,dd as isContentControlContent,d as mapSymbolPuaText,zk as paragraphOrderOfPart,Qk as reviewItemKey,Xk as reviewItemPositionRank,Vk as reviewItemRanges,Yk as reviewItemsAt,$k as reviewThreadRootOf,f as sha256FontBytes}from'./chunk-AU33YWEJ.js';
|