docx 7.1.2 → 7.2.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/build/file/document/body/section-properties/properties/index.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/page-text-direction.d.ts +8 -0
- package/build/file/document/body/section-properties/properties/page-text-direction.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/section-properties.d.ts +3 -1
- package/build/file/document/document-background/document-background.d.ts +1 -1
- package/build/index.js +1 -1
- package/package.json +3 -3
- package/src/file/document/body/section-properties/properties/index.ts +1 -0
- package/src/file/document/body/section-properties/properties/page-text-direction.spec.ts +22 -0
- package/src/file/document/body/section-properties/properties/page-text-direction.ts +22 -0
- package/src/file/document/body/section-properties/section-properties.spec.ts +15 -0
- package/src/file/document/body/section-properties/section-properties.ts +7 -0
- package/src/file/document/document-background/document-background.spec.ts +2 -4
- package/src/file/document/document-background/document-background.ts +2 -2
- package/src/file/document/document.spec.ts +1 -3
|
@@ -6,6 +6,7 @@ export * from "./page-number";
|
|
|
6
6
|
export * from "./page-borders";
|
|
7
7
|
export * from "./page-margin";
|
|
8
8
|
export * from "./page-borders";
|
|
9
|
+
export * from "./page-text-direction";
|
|
9
10
|
export * from "./line-number";
|
|
10
11
|
export * from "./section-type";
|
|
11
12
|
export * from "./header-footer-reference";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { XmlComponent } from "../../../../../file/xml-components";
|
|
2
|
+
export declare enum PageTextDirectionType {
|
|
3
|
+
LEFT_TO_RIGHT_TOP_TO_BOTTOM = "lrTb",
|
|
4
|
+
TOP_TO_BOTTOM_RIGHT_TO_LEFT = "tbRl"
|
|
5
|
+
}
|
|
6
|
+
export declare class PageTextDirection extends XmlComponent {
|
|
7
|
+
constructor(value: PageTextDirectionType);
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,6 +9,7 @@ import { IPageBordersOptions } from "./properties/page-borders";
|
|
|
9
9
|
import { IPageMarginAttributes } from "./properties/page-margin";
|
|
10
10
|
import { IPageNumberTypeAttributes } from "./properties/page-number";
|
|
11
11
|
import { IPageSizeAttributes, PageOrientation } from "./properties/page-size";
|
|
12
|
+
import { PageTextDirectionType } from "./properties/page-text-direction";
|
|
12
13
|
import { SectionType } from "./properties/section-type";
|
|
13
14
|
export interface IHeaderFooterGroup<T> {
|
|
14
15
|
readonly default?: T;
|
|
@@ -21,6 +22,7 @@ export interface ISectionPropertiesOptions {
|
|
|
21
22
|
readonly margin?: IPageMarginAttributes;
|
|
22
23
|
readonly pageNumbers?: IPageNumberTypeAttributes;
|
|
23
24
|
readonly borders?: IPageBordersOptions;
|
|
25
|
+
readonly textDirection?: PageTextDirectionType;
|
|
24
26
|
};
|
|
25
27
|
readonly grid?: IDocGridAttributesProperties;
|
|
26
28
|
readonly headerWrapperGroup?: IHeaderFooterGroup<HeaderWrapper>;
|
|
@@ -46,6 +48,6 @@ export declare const sectionPageSizeDefaults: {
|
|
|
46
48
|
ORIENTATION: PageOrientation;
|
|
47
49
|
};
|
|
48
50
|
export declare class SectionProperties extends XmlComponent {
|
|
49
|
-
constructor({ page: { size: { width, height, orientation, }, margin: { top, right, bottom, left, header, footer, gutter, }, pageNumbers, borders, }, grid: { linePitch }, headerWrapperGroup, footerWrapperGroup, lineNumbers, titlePage, verticalAlign, column, type, }?: ISectionPropertiesOptions);
|
|
51
|
+
constructor({ page: { size: { width, height, orientation, }, margin: { top, right, bottom, left, header, footer, gutter, }, pageNumbers, borders, textDirection, }, grid: { linePitch }, headerWrapperGroup, footerWrapperGroup, lineNumbers, titlePage, verticalAlign, column, type, }?: ISectionPropertiesOptions);
|
|
50
52
|
private addHeaderFooterGroup;
|
|
51
53
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { XmlAttributeComponent, XmlComponent } from "../../../file/xml-components";
|
|
2
2
|
export declare class DocumentBackgroundAttributes extends XmlAttributeComponent<{
|
|
3
|
-
readonly color
|
|
3
|
+
readonly color?: string;
|
|
4
4
|
readonly themeColor?: string;
|
|
5
5
|
readonly themeShade?: string;
|
|
6
6
|
readonly themeTint?: string;
|