@docx-editor.dev/core 2.32.0 → 2.34.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 +14 -52
- 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-DY0xsXm_.d.ts} +231 -125
- package/dist/chunk-37IYWENL.cjs +1 -0
- package/dist/chunk-37RNWL45.js +4 -0
- package/dist/chunk-5HUVQXET.cjs +4 -0
- package/dist/chunk-5JP3QQF7.js +7 -0
- package/dist/chunk-5KOLFKOB.cjs +5 -0
- package/dist/chunk-6MF5PN2E.js +236 -0
- package/dist/chunk-77JT2AU7.js +2 -0
- package/dist/{chunk-ETDZFNMI.js → chunk-7FUORGCW.js} +1 -1
- package/dist/chunk-A5BTVPET.cjs +236 -0
- package/dist/chunk-AFXFH2T2.js +3 -0
- package/dist/chunk-AVCYP7OY.js +5 -0
- package/dist/chunk-BL2E4QRA.js +1 -0
- package/dist/chunk-DB7X4Y6O.js +4 -0
- package/dist/chunk-DR6W23TB.cjs +2 -0
- package/dist/chunk-DYLB5U42.js +1 -0
- package/dist/chunk-E5BKDHIP.cjs +1 -0
- package/dist/chunk-IWXBRUPG.cjs +4 -0
- package/dist/{chunk-L5TYBFDB.js → chunk-KCUXXO3Q.js} +1 -1
- package/dist/chunk-KYA4Y2YB.js +1 -0
- package/dist/{chunk-6UDJUI3W.cjs → chunk-L74TCGVH.cjs} +1 -1
- package/dist/chunk-NBSSQSKY.js +30 -0
- package/dist/{chunk-OKMEMSKB.cjs → chunk-NEM774E3.cjs} +1 -1
- package/dist/chunk-NKZVMMHU.cjs +1 -0
- package/dist/chunk-TXIO5WYQ.cjs +32 -0
- package/dist/chunk-UKG2TXWH.cjs +7 -0
- package/dist/chunk-V7CO55DO.cjs +3 -0
- package/dist/chunk-VLQDQNSS.js +1 -0
- package/dist/chunk-VQOAC3VI.cjs +30 -0
- package/dist/chunk-YWJSQA2O.js +32 -0
- package/dist/chunk-ZJ74LCFI.cjs +1 -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-DparEcZK.d.ts} +45 -7
- package/dist/diagnostic-context-CkZKkKvB.d.ts +98 -0
- package/dist/{diagnostic-hints-DK8-V0fk.d.ts → diagnostic-hints-BTyb8yzX.d.ts} +3 -3
- package/dist/{document-protection-NaniLHWF.d.ts → document-protection-DdWxihIN.d.ts} +1 -1
- package/dist/{headless-document-view-Bcz9_Qva.d.ts → drawing-graphic-kind-CK0cMc7H.d.ts} +161 -18
- package/dist/drawing-preview-package-fFjXpOMS.d.ts +115 -0
- package/dist/{editor-DZwOTmlR.d.ts → editor-DDCkWqfD.d.ts} +125 -21
- 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 +387 -78
- 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-Byj-TwsI.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +434 -199
- package/dist/layout.js +1 -1
- package/dist/metafile-drawing-Ce6TuWLm.d.ts +115 -0
- package/dist/{note-properties-Ds5R2_3F.d.ts → note-properties-BiunaIQa.d.ts} +31 -7
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +77 -13
- package/dist/output.js +1 -1
- package/dist/{protocol-DKa4qt7F.d.ts → protocol-Dn44dL4M.d.ts} +184 -120
- package/dist/{review-paragraph-order-Dc17w_6v.d.ts → review-paragraph-order-BWMXAKuA.d.ts} +1 -1
- package/dist/{revision-projection-Cn6rZJ7H.d.ts → revision-projection-DwFhgIR0.d.ts} +1 -1
- package/dist/{semantic-cell-selection-BaUR0iJ4.d.ts → semantic-cell-selection-DhalxEBH.d.ts} +2 -2
- package/dist/{semantic-interaction-CJoHLoOl.d.ts → semantic-interaction-QeuzEtAk.d.ts} +2 -4
- package/dist/{semantic-paint-BPw_n0li.d.ts → semantic-paint-BYDZbTiY.d.ts} +16 -9
- package/dist/{semantic-record-queries-C0rJ3sB4.d.ts → semantic-record-queries-Bf5bgQL3.d.ts} +1 -1
- package/dist/{semantic-records-BvN-WWst.d.ts → semantic-records-CzZiWMY8.d.ts} +348 -132
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +526 -19
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-C_S2niXW.d.ts → tree-op-types-DKvJSH8T.d.ts} +1024 -501
- package/dist/{tree-package-store-CRHvMyNj.d.ts → tree-package-store-Cl3BkWXF.d.ts} +8 -3
- package/dist/{tree-session-contract-D1awo_dA.d.ts → tree-session-contract-BL50pqs8.d.ts} +15 -8
- package/dist/{unsupported-elements-CVos5cqe.d.ts → unsupported-elements-Bra4QTOM.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-ACLR4DMK.js +0 -1
- 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-TJHE5EET.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.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{U as DEFAULT_CANVAS_FONT_STACK,b as HARFBUZZ_SHAPING_LIBRARY,e as HarfBuzzShapingError,k as LayoutShapingConfigurationError,K as ResolvedCache,da as SYNTHETIC_BOLD_ADVANCE_EM,z as WORD_SEGMENTER_LOCALE,C as boundedFallbackWordSegments,I as captureOperationSnapshot,ia as cellSelectionBetween,oa as cellSelectionRects,pa as cellSelectionText,ba as contentControlBoundaries,D as createBoundedFallbackWordBoundary,E as createDefaultWordBoundary,g as createHarfBuzzTextShaper,B as createIntlWordBoundary,ha as createLayoutScheduler,fa as createLayoutShapedMeasurer,r as createLayoutShaping,ea as createShapedMeasurer,t as disposeLayoutShaping,L as exportSourceRangeOf,M as forEachSemanticSpan,J as guardOperationSnapshot,f as harfBuzzFontValidator,c as initializeHarfBuzz,X as isCanvasMeasurementAvailable,x as isCumulativeGeometryTrustedFromLineOrigin,w as isGeometryTrustedCaretOffset,d as isHarfBuzzInitialized,A as isIntlWordSegmenterAvailable,v as isWholeGraphemeHorizontalBoundary,q as layoutFontConfigurationFingerprint,_ as pageRefPageNumbersFromLayout,ga as pagesToMaterialize,ma as paragraphsInCells,$ as planRefFieldResultRefresh,o as prepareLayoutFontConfiguration,Z as resolveDefaultSurfaceMeasurer,F as resolveDefaultWordBoundary,a as roundFontUnitToFixedPoint,G as segmentWords,y as semanticHorizontalBoundaries,u as shapedHorizontalBoundaries,ca as shapedRunOutline,na as spansInCells,ua as tabLeaderPattern,qa as tableContextAt,Y as tryCreateCanvasMeasurer,N as vectorShapeInkClip,H as wordSegmentsToGraphemeRecords}from'./chunk-AFXFH2T2.js';export{a as setHarfBuzzWasmUrl}from'./chunk-RIYSCEFQ.js';export{X as AUTO_PARAGRAPH_SPACING_PT,wc as AUTO_PREFERRED_WIDTH,xc as CELL_PAD,Q as COMPOUND_BORDER_MIN_GAP_PT,P as COMPOUND_BORDER_MIN_STROKE_PT,yc as DEFAULT_CELL_MARGINS,Ha as DEFAULT_PAGE_GEOMETRY,lb as DEFAULT_REVISION_DISPLAY_MODE,la as DEFAULT_RUN_STYLE,Wd as DEFAULT_SECTION_PROPERTIES,Jb as DEFAULT_TAB_INTERVAL_PT,Ib as DEFAULT_TAB_INTERVAL_TWIPS,te as DEFAULT_VERTICAL_WEIGHT,pd as EMPTY_NUMBERING_INDEX,Lb as EMPTY_TAB_STOPS,d as FontResolutionError,ua as GRAPHEME_SEGMENTER_LOCALE,c as HARD_MAX_AGGREGATE_FONT_BYTES,a as HARD_MAX_FONT_BYTES,b as HARD_MAX_FONT_SOURCES,W as MAX_BORDER_SPACE_PT,V as MAX_BORDER_WIDTH_PT,Vd as MAX_DOCUMENT_SECTIONS,sg as MAX_EACH_PAGE_MARK_CANDIDATES,md as MAX_LVL_OVERRIDES,Dc as MAX_LVL_TEXT_LENGTH,Cc as MAX_MARKER_TEXT_LENGTH,$f as MAX_NOTES_LAID_OUT,ag as MAX_NOTE_FRAGMENTS,rg as MAX_NOTE_OVERFLOW_PAGES,qg as MAX_NOTE_REFLOW_ATTEMPTS,ld as MAX_NUMBERING_DEFINITIONS,U as MAX_PARAGRAPH_SPACING_PT,o as MAX_SHAPING_CONTEXT,zd as MAX_STYLE_BASED_ON_DEPTH,jf as MAX_STYLE_DEFINITIONS,kc as MAX_TABLE_BORDER_STROKES,pe as MAX_TABLE_NESTING,If as MAX_TABLE_ROW_FRAGMENTS,qe as MAX_TABLE_ROW_HEIGHT_PT,Hb as MAX_TAB_POSITION_TWIPS,Gb as MAX_TAB_STOPS,Rd as PAGE_BORDER_SIDES,Z as PARAGRAPH_BORDER_SIDES,Y as SINGLE_LINE_SPACING,Kb as TAB_LEADER_GLYPH,Jf as TablePaginationError,Ea as UnsupportedScriptError,_c as anchorLineY,ka as appliedSpaceBefore,ba as applyLineSpacing,xg as attachNotesToLayout,L as automaticTextColor,qa as baselineShiftPtOf,rc as borderExtentPt,oc as borderWeight,ha as bottomBorderExtentPt,l as boundedStructuralFontValidator,nd as buildNumberingIndex,ug as buildPageRefIndex,kf as buildStyleCascadeTable,Qe as caretAt,De as caretBoxOnLine,Oe as caretStops,Pe as caretStopsForBlocks,lf as cascadeParagraphFormatting,of as cascadeRunProperties,nf as cascadedBottomBorder,ea as cascadedParagraphBorders,Mb as cascadedTabStops,Ec as clampListValue,ja as collapsedSpaceBefore,Ve as compositionAnchor,S as compoundBorderStrokesForExtentPt,R as computeDoubleBorderMetricsPt,wg as computeFootnoteReserves,Ae as contentControlAtPoint,Ne as contentControlAtSemantic,Uf as contentControlHoldingParagraph,Tf as contentControlRecordsInPart,Re as contentControlsInLayout,Ua as contentControlsOfLayout,Nf as createDocumentFurnitureSource,Qf as createDocumentLinkProjectors,Of as createDocumentNotesInput,zf as createDocumentStyleDependencies,Rf as createFieldLinkRegistry,ta as createFixedMeasurer,m as createFontResourceSnapshot,Cg as createLayoutSession,Hd as createListCounterState,hf as createParagraphLayoutCache,u as createShapedRun,r as createShapingEnvironment,Bb as createUnsupportedContentProjector,gg as defaultNoteSeparatorRuleStyle,Pb as defaultTabIntervalFromSettings,Ie as deletedTextBoundaries,Od as deriveNoteDisplayMarks,Pd as deriveNoteDisplayMarksResolved,na as displayText,db as documentOrder,Pf as documentRelationshipTargetIn,jc as effectiveBorderSide,Wa as effectiveContentControlLock,Db as emptyTocPlaceholderParagraphIds,Eb as emptyTocSuppressedResultParagraphIds,ae as enumerateDocumentSections,ce as enumerateDocumentSectionsBounded,eb as everyStoryOrder,Mc as expandLvlText,vg as filterRefsOnPage,Ee as findDrawingOverlayFrameInLayout,dg as findSeparatorNote,n as fixedPoint,h as fontRequestKey,Qa as forEachSemanticDrawing,Oa as forEachSemanticStory,Ra as forEachStoryParagraphFragment,Fc as formatDecimal,Gc as formatDecimalZero,Kc as formatLowerLetter,Ic as formatLowerRoman,Lc as formatNumFmt,gd as formatPageNumber,vb as formatRevisionOf,Jc as formatUpperLetter,Hc as formatUpperRoman,tg as fragmentOwnsAtomOffset,Sa as fragmentsOfParagraph,de as geometryOfSection,ra as glyphSizeFactorOf,xa as graphemeBoundaryEpoch,Ba as graphemeCount,Da as graphemeOffsetToUtf16,Ab as groupPictureLayerDrawing,xe as hitTestPage,Me as hitTestSemantic,ze as hitTestSheet,wa as intlGraphemeBoundary,ve as isFurniturePoint,va as isIntlSegmenterAvailable,hg as isMarkerOnlySeparatorNote,ud as isValidStyleId,Fa as itemizeScriptFontSlots,_e as keyedRangeRects,Ac as layoutEquation,Mf as layoutHeaderFooterStory,fg as layoutNoteById,ig as layoutNoteSeparator,eg as layoutNoteStory,Dg as layoutSemanticDocument,Ta as lineAtPosition,Be as lineEndOffset,Ya as lineSegments,La as linesOf,Tb as listMarkerBox,tb as markRevisionRemovesMark,oa as measureDisplayText,Gd as mergeListIndent,Ue as moveCaret,Qb as nextTabDestination,cg as normalNotesOf,Qd as noteDisplayMarkMap,bg as noteLineIdPrefix,le as noteMarkKey,kg as noteSeparatorAreaBox,_f as noteSeparatorRuleBox,uf as noteStoryBlocks,ue as pageAtY,Zf as pageBorderFrame,Td as pageBordersFingerprint,ga as paragraphBorderExtentPt,fa as paragraphBorderStrokeWidthPt,da as paragraphBorders,ia as paragraphBordersFingerprint,T as paragraphBreaksBefore,ca as paragraphContextualSpacing,Ja as paragraphFragmentsOf,Ka as paragraphFragmentsOfBlocks,gf as paragraphLayoutKey,aa as paragraphLineSpacing,sc as paragraphMarkDeleted,rb as paragraphMarkFormatRevisionOf,ub as paragraphMarkRevisionOf,qb as paragraphMarkRevisionsOf,_d as paragraphSectionNode,J as paragraphShading,K as paragraphShadingBox,$ as paragraphSpacing,Nb as paragraphTabStops,Te as paragraphTextFromLayout,Xc as parseAutonumInstruction,Sd as parsePageBorders,Xd as parsePageNumbering,Vc as parseRefInstruction,Yd as parseSectionProperties,Yb as positionPastDeletion,me as projectedNoteMarkText,be as projectedSectionSourceIndexes,yg as provisionalNoteMarks,lc as readBorderSide,nc as readCellBorders,Jd as readNumPr,$d as readSectionProperties,mc as readTableBorders,re as readTableStructure,Aa as resetGraphemeBoundary,pc as resolveBorderConflict,od as resolveNumberingLevel,H as resolveOoxmlShadingFill,pf as resolveParagraphLayoutInputs,ma as resolveRunStyle,Md as resolveStoryListItems,ge as resolveStoryRefFields,G as resolveStrictHexFill,qc as resolveTableCellBorderGrid,$c as reviewAnchorIndex,ad as reviewItemGeometry,ob as revisionAuthorFilter,uc as revisionRemovesParagraph,wb as revisionsAreDeletion,pb as revisionsVisible,qd as runBorderStrokesForLine,pa as runStylesEqual,ya as segmentGraphemes,Xe as selectionRects,za as setGraphemeBoundary,I as shadingFillFromElement,v as shapedRunComparatorInputs,t as shapingEnvironmentFingerprint,s as shapingEnvironmentFingerprintInputs,sb as shownMarkRevision,Ce as spanOffsetX,We as spansInSelection,tf as storyBlocks,Ga as styleForFontSlot,jg as syntheticSeparatorBox,Rb as tabAdvanceWidth,Sb as tabStopsFingerprint,oe as tableOriginX,Cb as tocFieldChromeParagraphIds,Va as unionLayoutBoxes,Ca as utf16OffsetToGrapheme,Yc as walkStoryParagraphs,Ob as withDefaultTabInterval,Ld as withNumberingStyleLinks,Nd as withResolvedListItems,Ge as wordBoundary}from'./chunk-YWJSQA2O.js';import'./chunk-VLQDQNSS.js';import'./chunk-DB7X4Y6O.js';export{bd as MAX_SDT_NESTING,Hm as MAX_TABLE_COLUMNS,Ij as W15_NAMESPACE_URI,ql as activeReviewItem,gd as collectFlowBlocks,Tl as commentBodyText,Vl as commentInitials,fd as contentControlContentChildren,ml as firstReviewRange,cd as isContentControl,dd as isContentControlContent,d as mapSymbolPuaText,Lk as paragraphOrderOfPart,gl as reviewItemKey,nl as reviewItemPositionRank,ll as reviewItemRanges,ol as reviewItemsAt,rl as reviewThreadRootOf,f as sha256FontBytes}from'./chunk-6MF5PN2E.js';
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
/**
|
|
102
|
+
* A replayed metafile. `complete` is false when a bound or a malformed record stopped recording
|
|
103
|
+
* early, and `stop` then says which. @internal
|
|
104
|
+
*/
|
|
105
|
+
interface MetafileReplay {
|
|
106
|
+
readonly drawing: MetafileDrawing;
|
|
107
|
+
readonly complete: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Why recording stopped early: a resource bound, or a record that does not fit. Absent when
|
|
110
|
+
* the replay is complete; a renderer that does not tell the two apart also leaves it out.
|
|
111
|
+
*/
|
|
112
|
+
readonly stop?: 'resource-bound' | 'malformed-record';
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
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-DKvJSH8T.js';
|
|
2
2
|
|
|
3
3
|
/** `w:pos` — where a section's footnotes are laid out. */
|
|
4
4
|
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
|
@@ -27,7 +27,7 @@ interface ResolvedEndnoteProperties {
|
|
|
27
27
|
readonly numStart: number;
|
|
28
28
|
readonly numRestart: NoteNumRestart;
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
30
|
+
/** Footnote defaults, applied to every field a section's `w:footnotePr` does not author. */
|
|
31
31
|
declare const DEFAULT_FOOTNOTE_PROPERTIES: ResolvedFootnoteProperties;
|
|
32
32
|
/**
|
|
33
33
|
* Word-compatible defaults. ECMA-376 says omitted endnote `numFmt` is decimal;
|
|
@@ -48,13 +48,37 @@ declare function authoredDocumentFootnoteProperties(settings: OoxmlPart | null |
|
|
|
48
48
|
/** Authored document-level endnotePr from settings. */
|
|
49
49
|
declare function authoredDocumentEndnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
50
50
|
/**
|
|
51
|
-
* Resolve footnote properties
|
|
52
|
-
*
|
|
51
|
+
* Resolve footnote properties from the section's own `w:footnotePr` and the defaults.
|
|
52
|
+
*
|
|
53
|
+
* The document-wide `w:footnotePr` in settings.xml does not take part: a section with no
|
|
54
|
+
* footnote properties of its own numbers `decimal` from 1, continuously, at the page bottom,
|
|
55
|
+
* whatever settings.xml says. A section that authors only some fields takes the defaults for
|
|
56
|
+
* the rest, so `<w:footnotePr><w:numRestart w:val="eachSect"/></w:footnotePr>` numbers its
|
|
57
|
+
* notes 1, 2, 3 in decimal even when settings.xml names `chicago`.
|
|
58
|
+
* Illegal position or restart strings fall back to the default.
|
|
59
|
+
*
|
|
60
|
+
* @param section - The section's authored `w:footnotePr`, if any.
|
|
53
61
|
*/
|
|
54
|
-
declare function resolveFootnoteProperties(section?: AuthoredNoteProperties
|
|
62
|
+
declare function resolveFootnoteProperties(section?: AuthoredNoteProperties): ResolvedFootnoteProperties;
|
|
55
63
|
/**
|
|
56
|
-
* Resolve
|
|
57
|
-
*
|
|
64
|
+
* Resolve footnote properties, ignoring the document-wide value.
|
|
65
|
+
*
|
|
66
|
+
* @deprecated The settings.xml `w:footnotePr` does not change footnote numbering or
|
|
67
|
+
* position, so the second argument has no effect. Call `resolveFootnoteProperties(section)`.
|
|
68
|
+
* @param section - The section's authored `w:footnotePr`, if any.
|
|
69
|
+
* @param document - Ignored.
|
|
70
|
+
*/
|
|
71
|
+
declare function resolveFootnoteProperties(section: AuthoredNoteProperties | undefined, document: AuthoredNoteProperties | undefined): ResolvedFootnoteProperties;
|
|
72
|
+
/**
|
|
73
|
+
* Resolve endnote properties.
|
|
74
|
+
*
|
|
75
|
+
* Numbering (`numFmt`, `numStart`, `numRestart`) comes from the section's own `w:endnotePr`
|
|
76
|
+
* and the defaults (`lowerRoman` from 1, continuous) only. The position is document-wide: the
|
|
77
|
+
* settings.xml `w:pos`, else `docEnd`. A section's own endnote `w:pos` does not move its
|
|
78
|
+
* endnotes. `pageBottom` is never a legal endnote position and resolves to `docEnd`.
|
|
79
|
+
*
|
|
80
|
+
* @param section - The section's authored `w:endnotePr`, if any; its `w:pos` is not read.
|
|
81
|
+
* @param document - The settings.xml `w:endnotePr`; only its `w:pos` is read.
|
|
58
82
|
*/
|
|
59
83
|
declare function resolveEndnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedEndnoteProperties;
|
|
60
84
|
/** Validate an authored endnote position write — refuse `pageBottom`. */
|
package/dist/output.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkIWXBRUPG_cjs=require('./chunk-IWXBRUPG.cjs');require('./chunk-V7CO55DO.cjs'),require('./chunk-TXIO5WYQ.cjs'),require('./chunk-E5BKDHIP.cjs'),require('./chunk-5HUVQXET.cjs'),require('./chunk-A5BTVPET.cjs');Object.defineProperty(exports,"DEFAULT_FIELD_SHADING",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.r}});Object.defineProperty(exports,"collectPageChangeBars",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.l}});Object.defineProperty(exports,"followingGapPaint",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.a}});Object.defineProperty(exports,"lumTransfer",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.m}});Object.defineProperty(exports,"observeUnsupportedElements",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.c}});Object.defineProperty(exports,"paintSelectionOverlay",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.w}});Object.defineProperty(exports,"paintSemanticLayout",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.u}});Object.defineProperty(exports,"paintedGapBetween",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.b}});
|
package/dist/output.d.ts
CHANGED
|
@@ -8,17 +8,81 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
import { R as ReviewAuthorInfo } from './semantic-paint-
|
|
12
|
-
export { B as BreakMarkStrings, C as ChangeBarsMode, D as DEFAULT_FIELD_SHADING, F as FieldShadingMode, P as PageChangeBars, d as PaintOptions, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles, e as collectPageChangeBars, p as paintSemanticLayout } from './semantic-paint-
|
|
13
|
-
import { S as SemanticLayout } from './semantic-records-
|
|
14
|
-
export { U as UnsupportedElement,
|
|
15
|
-
export { U as UnsupportedElementHost, o as observeUnsupportedElements } from './unsupported-elements-
|
|
16
|
-
|
|
17
|
-
import './
|
|
18
|
-
import './
|
|
19
|
-
import './
|
|
20
|
-
import './
|
|
21
|
-
import './tree-package-store-
|
|
11
|
+
import { R as ReviewAuthorInfo } from './semantic-paint-BYDZbTiY.js';
|
|
12
|
+
export { B as BreakMarkStrings, C as ChangeBarsMode, D as DEFAULT_FIELD_SHADING, F as FieldShadingMode, P as PageChangeBars, d as PaintOptions, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles, e as collectPageChangeBars, p as paintSemanticLayout } from './semantic-paint-BYDZbTiY.js';
|
|
13
|
+
import { S as SemanticLayout } from './semantic-records-CzZiWMY8.js';
|
|
14
|
+
export { U as UnsupportedElement, h as UnsupportedElementLayout, i as UnsupportedElementRule } from './semantic-records-CzZiWMY8.js';
|
|
15
|
+
export { U as UnsupportedElementHost, o as observeUnsupportedElements } from './unsupported-elements-Bra4QTOM.js';
|
|
16
|
+
export { D as DrawingGraphicKind, a as DrawingSupport, b as DrawingSupportIssue } from './drawing-graphic-kind-CK0cMc7H.js';
|
|
17
|
+
import './revision-projection-DwFhgIR0.js';
|
|
18
|
+
import './tree-op-types-DKvJSH8T.js';
|
|
19
|
+
import './editor-scope-CA6egMaK.js';
|
|
20
|
+
import './semantic-record-queries-Bf5bgQL3.js';
|
|
21
|
+
import './tree-package-store-Cl3BkWXF.js';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The fields of a laid span that decide whether it owns the gap after it. A
|
|
25
|
+
* `StyleSpanRecord` is one.
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
interface GapSpan {
|
|
30
|
+
readonly text: string;
|
|
31
|
+
readonly range: {
|
|
32
|
+
readonly paragraphId: string;
|
|
33
|
+
readonly start: number;
|
|
34
|
+
readonly end: number;
|
|
35
|
+
};
|
|
36
|
+
readonly style: {
|
|
37
|
+
readonly horizontalScalePercent: number;
|
|
38
|
+
};
|
|
39
|
+
readonly link?: {
|
|
40
|
+
readonly id: string;
|
|
41
|
+
};
|
|
42
|
+
readonly fieldAtom?: {
|
|
43
|
+
readonly resultStart?: number;
|
|
44
|
+
};
|
|
45
|
+
readonly wrapAdvanceBefore?: number;
|
|
46
|
+
readonly glyphOffsetPt?: number;
|
|
47
|
+
readonly projected?: boolean;
|
|
48
|
+
readonly equation?: unknown;
|
|
49
|
+
readonly unsupported?: unknown;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* How a span paints the gap after it, before `next`: `'wordSpacing'` stretches its trailing
|
|
53
|
+
* space, `'letterSpacing'` widens its one character, and null leaves the gap a margin on
|
|
54
|
+
* `next`, which marks do not cover. A span that owns the gap draws its marks across it.
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
declare function followingGapPaint(span: GapSpan, next: GapSpan): 'wordSpacing' | 'letterSpacing' | null;
|
|
59
|
+
/**
|
|
60
|
+
* The gap paint draws between `span` and the `next` span, in points: the stretch alignment
|
|
61
|
+
* opens, or a negative gap after a trailing space that a line shrank. Layout shrinks a space by
|
|
62
|
+
* moving the later spans left, so the space keeps its natural box and the next span starts
|
|
63
|
+
* inside it. Zero for any other overlap, and for a gap below 0.001 pt.
|
|
64
|
+
*
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
declare function paintedGapBetween(span: PlacedSpan, next: PlacedSpan): number;
|
|
68
|
+
/**
|
|
69
|
+
* The fields of a laid span that {@link paintedGapBetween} reads. A `StyleSpanRecord` is one.
|
|
70
|
+
*
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
interface PlacedSpan {
|
|
74
|
+
readonly text: string;
|
|
75
|
+
readonly box: {
|
|
76
|
+
readonly x: number;
|
|
77
|
+
readonly width: number;
|
|
78
|
+
};
|
|
79
|
+
readonly style: {
|
|
80
|
+
readonly shaping?: {
|
|
81
|
+
readonly level?: number;
|
|
82
|
+
} | null;
|
|
83
|
+
};
|
|
84
|
+
readonly wrapAdvanceBefore?: number;
|
|
85
|
+
}
|
|
22
86
|
|
|
23
87
|
/** A rectangle in page-content coordinates, on a named page. */
|
|
24
88
|
interface OverlayRect {
|
|
@@ -106,5 +170,5 @@ interface LumTransfer {
|
|
|
106
170
|
*/
|
|
107
171
|
declare function lumTransfer(brightPercent: number, contrastPercent: number): LumTransfer | null;
|
|
108
172
|
|
|
109
|
-
export { ReviewAuthorInfo, lumTransfer, paintSelectionOverlay };
|
|
110
|
-
export type { LumTransfer, OverlayRect, SelectionOverlayOptions };
|
|
173
|
+
export { ReviewAuthorInfo, followingGapPaint, lumTransfer, paintSelectionOverlay, paintedGapBetween };
|
|
174
|
+
export type { GapSpan, LumTransfer, OverlayRect, PlacedSpan, SelectionOverlayOptions };
|
package/dist/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{r as DEFAULT_FIELD_SHADING,l as collectPageChangeBars,a as followingGapPaint,m as lumTransfer,c as observeUnsupportedElements,w as paintSelectionOverlay,u as paintSemanticLayout,b as paintedGapBetween}from'./chunk-37RNWL45.js';import'./chunk-AFXFH2T2.js';import'./chunk-RIYSCEFQ.js';import'./chunk-YWJSQA2O.js';import'./chunk-VLQDQNSS.js';import'./chunk-DB7X4Y6O.js';import'./chunk-6MF5PN2E.js';
|