2020-06-07 12:38:03 +08:00
|
|
|
import {
|
|
|
|
AlignmentType,
|
|
|
|
EmphasisMarkType,
|
|
|
|
IFontAttributesProperties,
|
|
|
|
IIndentAttributesProperties,
|
|
|
|
ISpacingProperties,
|
|
|
|
UnderlineType,
|
|
|
|
} from "../paragraph";
|
2019-11-01 01:57:01 +00:00
|
|
|
import { ShadingType } from "../table";
|
|
|
|
|
|
|
|
export interface IRunStyleOptions {
|
|
|
|
readonly size?: number;
|
|
|
|
readonly bold?: boolean;
|
|
|
|
readonly italics?: boolean;
|
|
|
|
readonly smallCaps?: boolean;
|
|
|
|
readonly allCaps?: boolean;
|
|
|
|
readonly strike?: boolean;
|
|
|
|
readonly doubleStrike?: boolean;
|
|
|
|
readonly subScript?: boolean;
|
|
|
|
readonly superScript?: boolean;
|
|
|
|
readonly underline?: {
|
|
|
|
readonly type?: UnderlineType;
|
|
|
|
readonly color?: string;
|
|
|
|
};
|
2020-05-22 12:22:45 +08:00
|
|
|
readonly emphasisMark?: {
|
|
|
|
readonly type?: EmphasisMarkType;
|
|
|
|
};
|
2019-11-01 01:57:01 +00:00
|
|
|
readonly color?: string;
|
2020-06-07 12:38:03 +08:00
|
|
|
readonly font?: string | IFontAttributesProperties;
|
2019-11-01 01:57:01 +00:00
|
|
|
readonly characterSpacing?: number;
|
|
|
|
readonly highlight?: string;
|
|
|
|
readonly shadow?: {
|
|
|
|
readonly type: ShadingType;
|
|
|
|
readonly fill: string;
|
|
|
|
readonly color: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IParagraphStyleOptions2 {
|
|
|
|
readonly alignment?: AlignmentType;
|
|
|
|
readonly thematicBreak?: boolean;
|
2019-12-11 15:05:09 +13:00
|
|
|
readonly contextualSpacing?: boolean;
|
2019-11-01 01:57:01 +00:00
|
|
|
readonly rightTabStop?: number;
|
|
|
|
readonly leftTabStop?: number;
|
|
|
|
readonly indent?: IIndentAttributesProperties;
|
|
|
|
readonly spacing?: ISpacingProperties;
|
|
|
|
readonly keepNext?: boolean;
|
|
|
|
readonly keepLines?: boolean;
|
|
|
|
readonly outlineLevel?: number;
|
|
|
|
}
|
2020-01-16 02:23:17 +00:00
|
|
|
|
|
|
|
// Needed because of: https://github.com/s-panferov/awesome-typescript-loader/issues/432
|
|
|
|
/**
|
|
|
|
* @ignore
|
|
|
|
*/
|
|
|
|
export const WORKAROUND4 = "";
|