@office-open/docx 0.10.14 → 0.10.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{comments-Cn9Q0iT6.mjs → comments-D_flVfxw.mjs} +5 -5
- package/dist/comments-D_flVfxw.mjs.map +1 -0
- package/dist/{context-B5k1UabT.mjs → context-DLmSgNzb.mjs} +17 -11
- package/dist/context-DLmSgNzb.mjs.map +1 -0
- package/dist/{core-properties-C4tdD3KL.d.mts → core-properties-BLnZI4Tr.d.mts} +3 -3
- package/dist/{core-properties-C4tdD3KL.d.mts.map → core-properties-BLnZI4Tr.d.mts.map} +1 -1
- package/dist/{generate-BxIo24VV.mjs → generate-BNjgksa0.mjs} +3 -3
- package/dist/{generate-BxIo24VV.mjs.map → generate-BNjgksa0.mjs.map} +1 -1
- package/dist/generate.d.mts +1 -1
- package/dist/generate.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{parse-ep7JKATJ.mjs → parse-CgAxzk5K.mjs} +3 -3
- package/dist/{parse-ep7JKATJ.mjs.map → parse-CgAxzk5K.mjs.map} +1 -1
- package/dist/parse.d.mts +1 -1
- package/dist/parse.mjs +1 -1
- package/dist/patch/index.d.mts +1 -1
- package/dist/patch/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/comments-Cn9Q0iT6.mjs.map +0 -1
- package/dist/context-B5k1UabT.mjs.map +0 -1
|
@@ -2996,7 +2996,7 @@ function stringifySectionPropertiesInner(opts) {
|
|
|
2996
2996
|
appendHeaderFooterRefs(parts, "w:headerReference", opts.headerWrapperGroup);
|
|
2997
2997
|
appendHeaderFooterRefs(parts, "w:footerReference", opts.footerWrapperGroup);
|
|
2998
2998
|
const { size: { width = sectionPageSizeDefaults.WIDTH, height = sectionPageSizeDefaults.HEIGHT, orientation = sectionPageSizeDefaults.ORIENTATION, code } = {}, margin: { top = sectionMarginDefaults.TOP, right = sectionMarginDefaults.RIGHT, bottom = sectionMarginDefaults.BOTTOM, left = sectionMarginDefaults.LEFT, header = sectionMarginDefaults.HEADER, footer = sectionMarginDefaults.FOOTER, gutter = sectionMarginDefaults.GUTTER } = {}, pageNumbers = {}, borders, textDirection } = opts.page ?? {};
|
|
2999
|
-
const { linePitch = 312, charSpace = 0, type: gridType = "lines" } = opts.grid
|
|
2999
|
+
const { linePitch = 312, charSpace = 0, type: gridType = "lines" } = typeof opts.grid === "object" ? opts.grid : {};
|
|
3000
3000
|
if (opts.footnotePr) parts.push(footnotePrXml("w:footnotePr", opts.footnotePr));
|
|
3001
3001
|
if (opts.endnotePr) parts.push(footnotePrXml("w:endnotePr", opts.endnotePr));
|
|
3002
3002
|
if (opts.type) parts.push(sectionTypeXml(opts.type));
|
|
@@ -3024,7 +3024,7 @@ function stringifySectionPropertiesInner(opts) {
|
|
|
3024
3024
|
parts.push(`<w:paperSrc ${psAttr.join(" ")}/>`);
|
|
3025
3025
|
}
|
|
3026
3026
|
if (opts.printerSettingsId !== void 0) parts.push(`<w:printerSettings r:id="${opts.printerSettingsId}"/>`);
|
|
3027
|
-
if (opts.grid) parts.push(docGridXml(linePitch, charSpace, gridType));
|
|
3027
|
+
if (opts.grid !== false) parts.push(docGridXml(linePitch, charSpace, gridType));
|
|
3028
3028
|
if (opts.revision) parts.push(stringifySectionPropertiesChange(opts.revision));
|
|
3029
3029
|
return parts.join("");
|
|
3030
3030
|
}
|
|
@@ -3170,8 +3170,8 @@ function parseSectionPropertiesEl(el) {
|
|
|
3170
3170
|
if (linePitch !== void 0) grid.linePitch = linePitch;
|
|
3171
3171
|
const charSpace = attrNum(docGrid, "w:charSpace");
|
|
3172
3172
|
if (charSpace !== void 0) grid.charSpace = charSpace;
|
|
3173
|
-
|
|
3174
|
-
}
|
|
3173
|
+
opts.grid = grid;
|
|
3174
|
+
} else opts.grid = false;
|
|
3175
3175
|
const lnNumType = findChild(el, "w:lnNumType");
|
|
3176
3176
|
if (lnNumType) {
|
|
3177
3177
|
const lineNumbers = {};
|
|
@@ -8506,4 +8506,4 @@ const commentsDesc = {
|
|
|
8506
8506
|
//#endregion
|
|
8507
8507
|
export { parseRunProperties as $, PageOrientation as A, TextWrappingType as B, FontWrapper as C, EMPTY_RUN_ELEMENTS as Ct, sectionMarginDefaults as D, LineRuleType as Dt, stringifySectionPropertiesXml as E, HeadingLevel as Et, HorizontalPositionAlign as F, sdtBlockDesc as G, checkboxSymbolRunInner as H, NumberFormat as I, stringifySdtPr as J, setBodyParseChild as K, SpaceType as L, createPageNumberType as M, HorizontalPositionRelativeFrom as N, sectionPageSizeDefaults as O, VerticalPositionRelativeFrom as P, stringifyRunProperties as Q, VerticalPositionAlign as R, parseSdtProperties as S, createTransformation as St, sectionPropertiesDesc as T, breakXml as Tt, customXmlBlockDesc as U, altChunkDesc as V, parseCustomXmlProperties as W, subDocDesc as X, stringifySdtShell as Y, stringifyParagraphProperties as Z, stringifyBodyChild as _, VerticalAnchor as _t, setTableParseChild as a, widthFiftiethsToPct as at, stringifyTableOfContents as b, createImageData$1 as bt, stringifyTableProperties as c, TextDirection as ct, stringifyParagraphInline as d, createFormFieldData as dt, stringifyElement as et, stringifyRunInline as f, parseFormFieldData as ft, parseParagraphProperties as g, TextVerticalType as gt, parseParagraph as h, TextVertOverflowType as ht, parseTableRowPropertiesEl as i, WidthType as it, PageNumberSeparator as j, PageTextDirectionType as k, stringifyTableRowProperties as l, VerticalMergeType as lt, resetDrawingIdGen as m, TextHorzOverflowType as mt, parseTableCellPropertiesEl as n, parseShading as nt, tableDesc as o, widthPctToFiftieths as ot, drawingDesc as p, TextBodyWrappingType as pt, stringifyCustomXmlShell as q, parseTablePropertiesEl as r, objectDesc as rt, stringifyTableCellProperties as s, BorderStyle as st, commentsDesc as t, ShadingType as tt, stringifyChildDispatch as u, FormFieldTextType as ut, stringifyDocumentXml as v, createBodyProperties as vt, parseSectionPropertiesEl as w, PageNumber as wt, parseSdtBlock as x, Media as xt, replaceRelsWithPlaceholders as y, parseBodyProperties as yt, TextWrappingSide as z };
|
|
8508
8508
|
|
|
8509
|
-
//# sourceMappingURL=comments-
|
|
8509
|
+
//# sourceMappingURL=comments-D_flVfxw.mjs.map
|