From 3a36d912fe0e61b9b1561cd916d047599f4a52fa Mon Sep 17 00:00:00 2001 From: rahon6000 center Date: Thu, 12 Oct 2023 12:14:13 +0900 Subject: [PATCH] changed default section margin from inch to Twip --- .../body/section-properties/section-properties.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/file/document/body/section-properties/section-properties.ts b/src/file/document/body/section-properties/section-properties.ts index fbcdcf9f882..c6364dc6095 100644 --- a/src/file/document/body/section-properties/section-properties.ts +++ b/src/file/document/body/section-properties/section-properties.ts @@ -5,7 +5,6 @@ import { FooterWrapper } from "@file/footer-wrapper"; import { HeaderWrapper } from "@file/header-wrapper"; import { VerticalAlign, VerticalAlignElement } from "@file/vertical-align"; import { OnOffElement, XmlComponent } from "@file/xml-components"; -import { PositiveUniversalMeasure, UniversalMeasure } from "@util/values"; import { HeaderFooterReference, HeaderFooterReferenceType, HeaderFooterType } from "./properties/header-footer-reference"; import { Columns, IColumnsAttributes } from "./properties/columns"; @@ -76,10 +75,10 @@ export interface ISectionPropertiesOptions { // export const sectionMarginDefaults = { - TOP: "1in" as UniversalMeasure, - RIGHT: "1in" as PositiveUniversalMeasure, - BOTTOM: "1in" as UniversalMeasure, - LEFT: "1in" as PositiveUniversalMeasure, + TOP: 1440, + RIGHT: 1440, + BOTTOM: 1440, + LEFT: 1440, HEADER: 708, FOOTER: 708, GUTTER: 0,