#751 Add bidi visual - Visual Right to Left

This commit is contained in:
Dolan Miu
2021-03-04 02:02:28 +00:00
parent a026e5bd1f
commit 2aa93e6105
8 changed files with 92 additions and 5 deletions

View File

@ -9,6 +9,7 @@ import { ITableCellMarginOptions, TableCellMargin } from "./table-cell-margin";
import { ITableFloatOptions, TableFloatProperties } from "./table-float-properties";
import { TableLayout, TableLayoutType } from "./table-layout";
import { PreferredTableWidth } from "./table-width";
import { VisuallyRightToLeft } from "./visually-right-to-left";
export interface ITablePropertiesOptions {
readonly width?: {
@ -21,6 +22,7 @@ export interface ITablePropertiesOptions {
readonly shading?: ITableShadingAttributesProperties;
readonly alignment?: AlignmentType;
readonly cellMargin?: ITableCellMarginOptions;
readonly visuallyRightToLeft?: boolean;
}
export class TableProperties extends IgnoreIfEmptyXmlComponent {
@ -52,5 +54,9 @@ export class TableProperties extends IgnoreIfEmptyXmlComponent {
if (options.shading) {
this.root.push(new TableShading(options.shading));
}
if (options.visuallyRightToLeft) {
this.root.push(new VisuallyRightToLeft());
}
}
}