@docx-editor.dev/core 2.32.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 +1 -1
- package/THIRD_PARTY_NOTICES.md +1 -0
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +13 -51
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +14 -14
- package/dist/binding.js +1 -1
- package/dist/{chrome-print-CznJ0ucN.d.ts → chrome-print-CrPI9ZQc.d.ts} +85 -30
- package/dist/chunk-23MKR33J.js +4 -0
- package/dist/chunk-2DEY5NUC.cjs +32 -0
- package/dist/chunk-2DR4TH6B.js +1 -0
- package/dist/{chunk-ETDZFNMI.js → chunk-2F2UEAE2.js} +1 -1
- 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-TJHE5EET.cjs → chunk-DYUVJNDD.cjs} +1 -1
- 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-L5TYBFDB.js → chunk-L3YXJDPX.js} +1 -1
- package/dist/chunk-LI42N7OW.cjs +4 -0
- package/dist/{chunk-ACLR4DMK.js → chunk-PLKDS4JT.js} +1 -1
- package/dist/{chunk-6UDJUI3W.cjs → chunk-PXMTQ73F.cjs} +1 -1
- package/dist/chunk-R4R3AAE4.js +1 -0
- package/dist/{chunk-OKMEMSKB.cjs → chunk-RFUNFTGV.cjs} +1 -1
- package/dist/chunk-SVM6PGMS.js +3 -0
- package/dist/chunk-SZURLHR3.cjs +3 -0
- package/dist/chunk-UYCGCVZ2.cjs +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 +13 -4
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +3 -3
- package/dist/contracts/document.d.ts +3 -3
- package/dist/contracts/editor.d.ts +10 -10
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/contracts/modules.d.ts +12 -12
- package/dist/contracts/types.d.ts +4 -4
- package/dist/{custom-node-writes-CLJKGD9t.d.ts → custom-node-writes-AqY5KpVx.d.ts} +2 -2
- package/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
- package/dist/{diagnostic-hints-DK8-V0fk.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +2 -2
- package/dist/{document-protection-NaniLHWF.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
- package/dist/{headless-document-view-Bcz9_Qva.d.ts → drawing-graphic-kind-CXYGYbB3.d.ts} +74 -4
- package/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
- package/dist/{editor-DZwOTmlR.d.ts → editor-B7OOAAie.d.ts} +85 -13
- package/dist/{editor-scope-B3L-1ALc.d.ts → editor-scope-CA6egMaK.d.ts} +5 -1
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +4 -4
- package/dist/editor.d.ts +215 -31
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +47 -12
- package/dist/export.js +2 -2
- package/dist/{font-resolver-BlQNGdvR.d.ts → font-resolver-Bm9XqTNO.d.ts} +14 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +38 -23
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-E5J4Z1Gf.d.ts → layout-shaping-Ci_BTnSU.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +174 -99
- package/dist/layout.js +1 -1
- package/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
- package/dist/{note-properties-Ds5R2_3F.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +11 -11
- package/dist/output.js +1 -1
- package/dist/{protocol-DKa4qt7F.d.ts → protocol-Cp_QzVxS.d.ts} +2 -2
- package/dist/{review-paragraph-order-Dc17w_6v.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
- package/dist/{revision-projection-Cn6rZJ7H.d.ts → revision-projection-OVusTS77.d.ts} +1 -1
- package/dist/{semantic-cell-selection-BaUR0iJ4.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
- package/dist/{semantic-interaction-CJoHLoOl.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
- package/dist/{semantic-paint-BPw_n0li.d.ts → semantic-paint-B5JcIv9c.d.ts} +16 -9
- package/dist/{semantic-record-queries-C0rJ3sB4.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
- package/dist/{semantic-records-BvN-WWst.d.ts → semantic-records-DoK0lNjS.d.ts} +254 -43
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +510 -18
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-C_S2niXW.d.ts → tree-op-types-Df4oY2u4.d.ts} +718 -252
- package/dist/{tree-package-store-CRHvMyNj.d.ts → tree-package-store-DXhX1PE-.d.ts} +8 -3
- package/dist/{tree-session-contract-D1awo_dA.d.ts → tree-session-contract-CF2625mv.d.ts} +5 -5
- package/dist/{unsupported-elements-CVos5cqe.d.ts → unsupported-elements-CUojsaCr.d.ts} +1 -1
- package/licenses/ECMA-376.md +29 -0
- package/package.json +2 -2
- package/dist/bookmark-names-DDuAra_V.d.ts +0 -37
- package/dist/chunk-25EXMBV2.cjs +0 -5
- package/dist/chunk-3IEXDEFH.cjs +0 -7
- package/dist/chunk-65XBN67F.cjs +0 -2
- package/dist/chunk-6NVZNB7O.cjs +0 -3
- package/dist/chunk-B2BEELUE.js +0 -1
- package/dist/chunk-DDFHKQFU.js +0 -30
- package/dist/chunk-E4IAO4CY.cjs +0 -2
- package/dist/chunk-FDSL5OJU.cjs +0 -30
- package/dist/chunk-FS7CMYLT.js +0 -4
- package/dist/chunk-GDS24SZN.js +0 -30
- package/dist/chunk-GIY6NT2X.js +0 -5
- package/dist/chunk-GWM3AKUD.js +0 -18
- package/dist/chunk-HDOXACHP.js +0 -2
- package/dist/chunk-IILEENID.js +0 -1
- package/dist/chunk-MNF2K7NN.cjs +0 -30
- package/dist/chunk-O324RB6R.cjs +0 -1
- package/dist/chunk-QXJKYNYZ.js +0 -1
- package/dist/chunk-RALTVLB6.js +0 -2
- package/dist/chunk-SRVKFUFI.js +0 -3
- package/dist/chunk-TELQ52LG.cjs +0 -1
- package/dist/chunk-UMMRURPE.js +0 -7
- package/dist/chunk-XJYZVGQR.cjs +0 -1
- package/dist/chunk-ZGTIE3QJ.cjs +0 -4
- package/dist/chunk-ZOZI27AW.cjs +0 -18
- package/dist/diagnostic-context-BtDUY3v2.d.ts +0 -31
package/dist/layout.d.ts
CHANGED
|
@@ -11,24 +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, a4 as OoxmlNode,
|
|
21
|
-
export {
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export {
|
|
31
|
-
|
|
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';
|
|
32
33
|
|
|
33
34
|
/**
|
|
34
35
|
* The result of counting ONE list paragraph: the level that applied, the counter vector after it,
|
|
@@ -166,19 +167,6 @@ interface LayoutScheduler {
|
|
|
166
167
|
*/
|
|
167
168
|
declare function createLayoutScheduler(options: LayoutSchedulerOptions): LayoutScheduler;
|
|
168
169
|
|
|
169
|
-
interface PositionedTableAnchorSignal {
|
|
170
|
-
readonly anchorId: string;
|
|
171
|
-
readonly column: number;
|
|
172
|
-
readonly fragmentIndex: number;
|
|
173
|
-
readonly anchorY: number;
|
|
174
|
-
}
|
|
175
|
-
interface PendingPositionedTableTokens {
|
|
176
|
-
readonly token: string;
|
|
177
|
-
readonly previous: PendingPositionedTableTokens | undefined;
|
|
178
|
-
readonly length: number;
|
|
179
|
-
readonly signature: string;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
170
|
/**
|
|
183
171
|
* What the BODY flow knows about page numbering while it MEASURES a page-field placeholder.
|
|
184
172
|
*
|
|
@@ -222,67 +210,6 @@ interface FieldPageContext {
|
|
|
222
210
|
*/
|
|
223
211
|
declare function formatPageNumber(value: number, format: string | undefined): string;
|
|
224
212
|
|
|
225
|
-
type WrapTextSide = 'bothSides' | 'left' | 'right' | 'largest';
|
|
226
|
-
interface WrapExclusionInput {
|
|
227
|
-
readonly mode: 'square' | 'tight' | 'through' | 'topAndBottom';
|
|
228
|
-
readonly contentBounds: LayoutBox;
|
|
229
|
-
readonly polygon: readonly DrawingPoint[] | null;
|
|
230
|
-
readonly clipPolygon: readonly DrawingPoint[] | null;
|
|
231
|
-
readonly wrapDistances: DrawingInsets;
|
|
232
|
-
readonly effectInsets: DrawingInsets;
|
|
233
|
-
readonly textSide: WrapTextSide;
|
|
234
|
-
readonly contentLeft: number;
|
|
235
|
-
readonly contentRight: number;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/** Paint layer relative to body text — not the OOXML wrap element. */
|
|
239
|
-
type DrawingPaintLayer = 'behind' | 'inFront';
|
|
240
|
-
/** The header or footer object a furniture exclusion zone comes from. */
|
|
241
|
-
interface FurnitureZoneSource {
|
|
242
|
-
readonly partName: string;
|
|
243
|
-
readonly kind: 'drawing' | 'table';
|
|
244
|
-
readonly nodeId: string;
|
|
245
|
-
}
|
|
246
|
-
interface ExclusionZone {
|
|
247
|
-
/** Objects outside body drawing flow publish their exclusion directly instead of synthesizing it. */
|
|
248
|
-
readonly sourceKind?: 'table' | 'frame' | 'furniture';
|
|
249
|
-
/**
|
|
250
|
-
* Placed by an earlier section on the sheet a `continuous` section continues on. Its anchor
|
|
251
|
-
* is not in the continued section, so the zone reaches every line and column there.
|
|
252
|
-
*/
|
|
253
|
-
readonly earlierSection?: boolean;
|
|
254
|
-
/**
|
|
255
|
-
* The header or footer object a `furniture` zone comes from. Node ids are unique only within
|
|
256
|
-
* one part, so a furniture zone is identified by its part, its kind, and its node together
|
|
257
|
-
* (see {@link exclusionZoneIdentity}), never by a composed id string.
|
|
258
|
-
*/
|
|
259
|
-
readonly furnitureSource?: FurnitureZoneSource;
|
|
260
|
-
readonly drawingNodeId: string;
|
|
261
|
-
readonly anchorParagraphId: string;
|
|
262
|
-
/** UTF-16 model offset of the anchor atom — exclusions apply at/after this point in the paragraph. */
|
|
263
|
-
readonly anchorModelStart: number;
|
|
264
|
-
/**
|
|
265
|
-
* The band's vertical position is resolved against the page or a margin, not against the
|
|
266
|
-
* anchor's own flow position, so it cannot move when the text beside it reflows.
|
|
267
|
-
*
|
|
268
|
-
* Such a band excludes every line it crosses on its page, including lines that PRECEDE the
|
|
269
|
-
* anchor — a picture pinned to the top of the margin wraps the paragraphs above its anchor
|
|
270
|
-
* exactly as it wraps the ones below. Flow-relative bands (`paragraph`, `line`) stay
|
|
271
|
-
* forward-only: reaching back would move the anchor that positions them.
|
|
272
|
-
*/
|
|
273
|
-
readonly pageFramedBand?: boolean;
|
|
274
|
-
readonly sourceOrder: number;
|
|
275
|
-
readonly paintLayer: DrawingPaintLayer;
|
|
276
|
-
readonly relativeHeight: number;
|
|
277
|
-
readonly allowOverlap: boolean;
|
|
278
|
-
/** Owning column index in a multi-column section — 0 for single-column and HF stories. */
|
|
279
|
-
readonly columnIndex: number;
|
|
280
|
-
/** Resolved top edge in page-content coordinates after overlap displacement. */
|
|
281
|
-
readonly y: number;
|
|
282
|
-
readonly verticalBand: LayoutBox;
|
|
283
|
-
readonly input: WrapExclusionInput;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
213
|
type AutonumFieldKind = 'AUTONUM' | 'AUTONUMLGL' | 'AUTONUMOUT';
|
|
287
214
|
/** One recognized AUTONUM-family instruction: the kind and its supported switches. */
|
|
288
215
|
interface AutonumFieldSpec {
|
|
@@ -546,6 +473,11 @@ interface PendingLine {
|
|
|
546
473
|
* Placement keeps its skip even on a line before the paragraph's first anchor.
|
|
547
474
|
*/
|
|
548
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;
|
|
549
481
|
/** Clearance inherited by an empty anchor paragraph from other drawing bands. */
|
|
550
482
|
anchorClearanceBefore?: number;
|
|
551
483
|
/**
|
|
@@ -621,6 +553,20 @@ interface CompoundBorderMetrics {
|
|
|
621
553
|
* belongs to rendering; these layout metrics remain in continuous points.
|
|
622
554
|
*/
|
|
623
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;
|
|
624
570
|
|
|
625
571
|
/** Soft ceiling on fragments emitted for one authored row (hostile / runaway splits). */
|
|
626
572
|
declare const MAX_TABLE_ROW_FRAGMENTS = 4096;
|
|
@@ -640,6 +586,86 @@ declare class TablePaginationError extends Error {
|
|
|
640
586
|
constructor(code: TablePaginationErrorCode, message: string);
|
|
641
587
|
}
|
|
642
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
|
+
|
|
643
669
|
type ParagraphFrameHeightRule = 'auto' | 'atLeast' | 'exact';
|
|
644
670
|
type ParagraphFrameWrap = 'auto' | 'around' | 'tight' | 'through' | 'none' | 'notBeside';
|
|
645
671
|
/** Bounded text-frame properties resolved for semantic layout. */
|
|
@@ -886,8 +912,15 @@ declare function createLayoutSession(): LayoutSession;
|
|
|
886
912
|
*/
|
|
887
913
|
declare function mergeListIndent(levelIndent: NumberingLevelIndent, inherited: readonly OoxmlProperty[], direct?: readonly OoxmlProperty[]): NumberingLevelIndent;
|
|
888
914
|
|
|
889
|
-
/**
|
|
890
|
-
|
|
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[];
|
|
891
924
|
|
|
892
925
|
/**
|
|
893
926
|
* Horizontal marker box inside the first-line indent slot.
|
|
@@ -979,6 +1012,12 @@ interface TableAutofitContext {
|
|
|
979
1012
|
readonly fields?: AutofitFieldContext;
|
|
980
1013
|
/** The document's default tab interval, where an unwrapped line's tabs advance to. */
|
|
981
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;
|
|
982
1021
|
/**
|
|
983
1022
|
* A token that changes whenever a paragraph's projected text can change: the same tokens
|
|
984
1023
|
* the paragraph break cache keys on. Minimums are cached only when this and
|
|
@@ -1092,6 +1131,8 @@ interface SemanticTableCell {
|
|
|
1092
1131
|
readonly headsVerticalMerge?: true;
|
|
1093
1132
|
/** `w:hideMark` excludes the end-of-cell glyph from row sizing. */
|
|
1094
1133
|
readonly hideEndMark?: boolean;
|
|
1134
|
+
/** `w:noWrap`: autofit never narrows the cell's column below its preferred width. */
|
|
1135
|
+
readonly noWrap?: true;
|
|
1095
1136
|
/** `w:vAlign` — defaults to top when omitted/unrecognised. */
|
|
1096
1137
|
readonly vAlign: CellVerticalAlign;
|
|
1097
1138
|
/** `w:textDirection`; unsupported values keep horizontal layout. */
|
|
@@ -1108,8 +1149,6 @@ interface SemanticTableCell {
|
|
|
1108
1149
|
readonly contentBottomIsOuter?: boolean;
|
|
1109
1150
|
/** Clearance this AUTHORED ROW reserves above its content for its own top rule, in points. */
|
|
1110
1151
|
readonly topBandClearancePt?: number;
|
|
1111
|
-
/** The CELL declares `w:tcBorders/w:top` as `nil`, rather than a table style doing so. */
|
|
1112
|
-
readonly suppressesTopBand?: true;
|
|
1113
1152
|
/** Row-local clearance in points for authored minima, before vMerge combines content boxes. */
|
|
1114
1153
|
readonly minimumContentInsets?: {
|
|
1115
1154
|
readonly top: number;
|
|
@@ -1190,6 +1229,11 @@ interface SemanticTableStructure {
|
|
|
1190
1229
|
* keeps inside its container, so its grid settles that much narrower than the room.
|
|
1191
1230
|
*/
|
|
1192
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;
|
|
1193
1237
|
/** `w:tblPr/w:tblW` — the width the table asked for. */
|
|
1194
1238
|
readonly tableWidth: PreferredWidth;
|
|
1195
1239
|
/**
|
|
@@ -1720,9 +1764,14 @@ interface SemanticSpanVisit {
|
|
|
1720
1764
|
declare function exportSourceRangeOf(span: StyleSpanRecord): SourceRange | null;
|
|
1721
1765
|
/**
|
|
1722
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.
|
|
1723
1770
|
* @public
|
|
1724
1771
|
*/
|
|
1725
|
-
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;
|
|
1726
1775
|
|
|
1727
1776
|
/**
|
|
1728
1777
|
* The part of a line that belongs to ONE paragraph.
|
|
@@ -1745,7 +1794,7 @@ declare function lineSegments(line: LineRecord): readonly LineSegment[];
|
|
|
1745
1794
|
|
|
1746
1795
|
/**
|
|
1747
1796
|
* The box a painter clips a vector shape to: `bounds` grown on each side where a stroked
|
|
1748
|
-
* outline reaches past the drawing extent.
|
|
1797
|
+
* outline or an outer shadow reaches past the drawing extent.
|
|
1749
1798
|
*
|
|
1750
1799
|
* An outline is centred on its geometry and is not cut at the extent, a text column, or a cell
|
|
1751
1800
|
* edge that meets the extent: a rule at x=0 of a group with `wp:effectExtent l="0"` keeps
|
|
@@ -2503,6 +2552,14 @@ declare function paragraphShading(props: readonly OoxmlProperty[]): string | und
|
|
|
2503
2552
|
declare function paragraphShadingBox(lines: readonly {
|
|
2504
2553
|
readonly box: LayoutBox;
|
|
2505
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;
|
|
2506
2563
|
|
|
2507
2564
|
/**
|
|
2508
2565
|
* Everything a layout pass needs beyond the document itself.
|
|
@@ -3178,6 +3235,17 @@ interface MaterializationInput {
|
|
|
3178
3235
|
*/
|
|
3179
3236
|
declare function pagesToMaterialize(input: MaterializationInput): Set<number>;
|
|
3180
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
|
+
|
|
3181
3249
|
/** Character border geometry from placed spans, shared by screen and export painters. */
|
|
3182
3250
|
declare function runBorderStrokesForLine(line: LineRecord): readonly ParagraphBorderStrokeRecord[];
|
|
3183
3251
|
|
|
@@ -3219,5 +3287,12 @@ declare function tabLeaderPattern(startPt: number, widthPt: number, advancePt: n
|
|
|
3219
3287
|
*/
|
|
3220
3288
|
declare function noteSeparatorRuleBox(span: StyleSpanRecord, line: LineRecord, stroke?: StrikeoutStrokePt): LayoutBox;
|
|
3221
3289
|
|
|
3222
|
-
|
|
3223
|
-
|
|
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';
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/** A 2D affine matrix `[a, b, c, d, e, f]`: x' = a·x + c·y + e, y' = b·x + d·y + f. @internal */
|
|
2
|
+
type MetafileMatrix = readonly [number, number, number, number, number, number];
|
|
3
|
+
/** One path command in canvas pixels, y down. @internal */
|
|
4
|
+
type MetafilePathCommand = {
|
|
5
|
+
readonly op: 'M' | 'L';
|
|
6
|
+
readonly x: number;
|
|
7
|
+
readonly y: number;
|
|
8
|
+
} | {
|
|
9
|
+
readonly op: 'C';
|
|
10
|
+
readonly x1: number;
|
|
11
|
+
readonly y1: number;
|
|
12
|
+
readonly x2: number;
|
|
13
|
+
readonly y2: number;
|
|
14
|
+
readonly x: number;
|
|
15
|
+
readonly y: number;
|
|
16
|
+
} | {
|
|
17
|
+
readonly op: 'Z';
|
|
18
|
+
};
|
|
19
|
+
/** A solid paint: 0–255 channels and 0–1 alpha. @internal */
|
|
20
|
+
interface MetafilePaint {
|
|
21
|
+
readonly r: number;
|
|
22
|
+
readonly g: number;
|
|
23
|
+
readonly b: number;
|
|
24
|
+
readonly alpha: number;
|
|
25
|
+
}
|
|
26
|
+
/** The face a text command names. @internal */
|
|
27
|
+
interface MetafileFont {
|
|
28
|
+
readonly family: string;
|
|
29
|
+
readonly sizePx: number;
|
|
30
|
+
readonly bold: boolean;
|
|
31
|
+
readonly italic: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** Raster content a metafile draws. @internal */
|
|
34
|
+
type MetafileRaster = {
|
|
35
|
+
readonly kind: 'rgba';
|
|
36
|
+
readonly width: number;
|
|
37
|
+
readonly height: number;
|
|
38
|
+
readonly data: Uint8Array;
|
|
39
|
+
} | {
|
|
40
|
+
readonly kind: 'encoded';
|
|
41
|
+
readonly mime: 'image/png' | 'image/jpeg';
|
|
42
|
+
readonly width: number;
|
|
43
|
+
readonly height: number;
|
|
44
|
+
readonly bytes: Uint8Array;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* One recorded drawing command. Paths are in canvas pixels with the transform already
|
|
48
|
+
* applied. `matrix` on an image maps its unit square (y down) into canvas pixels; on text and
|
|
49
|
+
* a nested drawing it is the transform in force when it was drawn.
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
type MetafileCommand = {
|
|
53
|
+
readonly kind: 'save';
|
|
54
|
+
} | {
|
|
55
|
+
readonly kind: 'restore';
|
|
56
|
+
} | {
|
|
57
|
+
readonly kind: 'fill';
|
|
58
|
+
readonly path: readonly MetafilePathCommand[];
|
|
59
|
+
readonly evenOdd: boolean;
|
|
60
|
+
readonly paint: MetafilePaint;
|
|
61
|
+
} | {
|
|
62
|
+
readonly kind: 'stroke';
|
|
63
|
+
readonly path: readonly MetafilePathCommand[];
|
|
64
|
+
readonly width: number;
|
|
65
|
+
readonly dash: readonly number[];
|
|
66
|
+
readonly paint: MetafilePaint;
|
|
67
|
+
} | {
|
|
68
|
+
readonly kind: 'clip';
|
|
69
|
+
readonly path: readonly MetafilePathCommand[];
|
|
70
|
+
readonly evenOdd: boolean;
|
|
71
|
+
} | {
|
|
72
|
+
readonly kind: 'image';
|
|
73
|
+
readonly raster: MetafileRaster;
|
|
74
|
+
readonly matrix: MetafileMatrix;
|
|
75
|
+
} | {
|
|
76
|
+
readonly kind: 'text';
|
|
77
|
+
readonly text: string;
|
|
78
|
+
readonly font: MetafileFont;
|
|
79
|
+
readonly x: number;
|
|
80
|
+
readonly y: number;
|
|
81
|
+
readonly align: 'left' | 'center' | 'right';
|
|
82
|
+
readonly baseline: 'alphabetic' | 'top' | 'bottom' | 'middle';
|
|
83
|
+
readonly matrix: MetafileMatrix;
|
|
84
|
+
readonly paint: MetafilePaint;
|
|
85
|
+
} | {
|
|
86
|
+
readonly kind: 'drawing';
|
|
87
|
+
readonly drawing: MetafileDrawing;
|
|
88
|
+
readonly matrix: MetafileMatrix;
|
|
89
|
+
};
|
|
90
|
+
/** A replayed metafile: its canvas size in pixels and its commands in order. @internal */
|
|
91
|
+
interface MetafileDrawing {
|
|
92
|
+
readonly width: number;
|
|
93
|
+
readonly height: number;
|
|
94
|
+
readonly commands: readonly MetafileCommand[];
|
|
95
|
+
}
|
|
96
|
+
/** What a metafile renderer reads beside the bytes. @internal */
|
|
97
|
+
interface MetafileRenderOptions {
|
|
98
|
+
/** Advance width of `text` in `font`, in pixels at `font.sizePx`. */
|
|
99
|
+
readonly textAdvance: (text: string, font: MetafileFont) => number;
|
|
100
|
+
}
|
|
101
|
+
/** A replayed metafile. `complete` is false when a bound stopped recording early. @internal */
|
|
102
|
+
interface MetafileReplay {
|
|
103
|
+
readonly drawing: MetafileDrawing;
|
|
104
|
+
readonly complete: boolean;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type { MetafileFont as M, MetafileReplay as a, MetafileCommand as b, MetafileDrawing as c, MetafileMatrix as d, MetafilePaint as e, MetafilePathCommand as f, MetafileRaster as g, MetafileRenderOptions as h };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OoxmlPart, a4 as OoxmlNode, a5 as OoxmlPackage } from './tree-op-types-
|
|
1
|
+
import { O as OoxmlPart, a4 as OoxmlNode, a5 as OoxmlPackage } from './tree-op-types-Df4oY2u4.js';
|
|
2
2
|
|
|
3
3
|
/** `w:pos` — where a section's footnotes are laid out. */
|
|
4
4
|
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|