From 5609b11188cd42c02021fb073af3e6dab4994f7c Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Sat, 18 Sep 2021 18:07:59 +0100 Subject: [PATCH] Use correct value for height rule --- src/file/paragraph/frame/frame-properties.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/file/paragraph/frame/frame-properties.ts b/src/file/paragraph/frame/frame-properties.ts index 13a7e72745..4a6b5a5505 100644 --- a/src/file/paragraph/frame/frame-properties.ts +++ b/src/file/paragraph/frame/frame-properties.ts @@ -1,6 +1,7 @@ // http://officeopenxml.com/WPparagraph-textFrames.php import { HorizontalPositionAlign, VerticalPositionAlign } from "file/shared/alignment"; import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; +import { HeightRule } from "/file"; export enum DropCapType { NONE = "none", @@ -42,7 +43,7 @@ export interface IFrameOptions { readonly horizontal: number; readonly vertical: number; }; - readonly rule?: number; + readonly rule?: HeightRule; readonly alignment: { readonly x: HorizontalPositionAlign; readonly y: VerticalPositionAlign; @@ -62,7 +63,7 @@ export class FramePropertiesAttributes extends XmlAttributeComponent<{ readonly anchorVertical?: FrameAnchorType; readonly spaceHorizontal?: number; readonly spaceVertical?: number; - readonly rule?: number; + readonly rule?: HeightRule; readonly alignmentX?: HorizontalPositionAlign; readonly alignmentY?: VerticalPositionAlign; }> {