Use correct value for height rule

This commit is contained in:
Dolan Miu
2021-09-18 18:07:59 +01:00
parent bf884c8d13
commit 5609b11188

View File

@ -1,6 +1,7 @@
// http://officeopenxml.com/WPparagraph-textFrames.php // http://officeopenxml.com/WPparagraph-textFrames.php
import { HorizontalPositionAlign, VerticalPositionAlign } from "file/shared/alignment"; import { HorizontalPositionAlign, VerticalPositionAlign } from "file/shared/alignment";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
import { HeightRule } from "/file";
export enum DropCapType { export enum DropCapType {
NONE = "none", NONE = "none",
@ -42,7 +43,7 @@ export interface IFrameOptions {
readonly horizontal: number; readonly horizontal: number;
readonly vertical: number; readonly vertical: number;
}; };
readonly rule?: number; readonly rule?: HeightRule;
readonly alignment: { readonly alignment: {
readonly x: HorizontalPositionAlign; readonly x: HorizontalPositionAlign;
readonly y: VerticalPositionAlign; readonly y: VerticalPositionAlign;
@ -62,7 +63,7 @@ export class FramePropertiesAttributes extends XmlAttributeComponent<{
readonly anchorVertical?: FrameAnchorType; readonly anchorVertical?: FrameAnchorType;
readonly spaceHorizontal?: number; readonly spaceHorizontal?: number;
readonly spaceVertical?: number; readonly spaceVertical?: number;
readonly rule?: number; readonly rule?: HeightRule;
readonly alignmentX?: HorizontalPositionAlign; readonly alignmentX?: HorizontalPositionAlign;
readonly alignmentY?: VerticalPositionAlign; readonly alignmentY?: VerticalPositionAlign;
}> { }> {