Add tests
This commit is contained in:
@ -8,8 +8,10 @@ import {
|
||||
CharacterSpacing,
|
||||
Color,
|
||||
DoubleStrike,
|
||||
Emboss,
|
||||
Highlight,
|
||||
HighlightComplexScript,
|
||||
Imprint,
|
||||
Italics,
|
||||
ItalicsComplexScript,
|
||||
RightToLeft,
|
||||
@ -63,6 +65,8 @@ export interface IRunStylePropertiesOptions {
|
||||
};
|
||||
readonly shadingComplexScript?: boolean | IRunStylePropertiesOptions["shading"];
|
||||
readonly shadow?: IRunStylePropertiesOptions["shading"];
|
||||
readonly emboss?: boolean;
|
||||
readonly imprint?: boolean;
|
||||
}
|
||||
|
||||
export interface IRunPropertiesOptions extends IRunStylePropertiesOptions {
|
||||
@ -169,6 +173,14 @@ export class RunProperties extends IgnoreIfEmptyXmlComponent {
|
||||
this.push(new CharacterSpacing(options.characterSpacing));
|
||||
}
|
||||
|
||||
if (options.emboss) {
|
||||
this.push(new Emboss());
|
||||
}
|
||||
|
||||
if (options.imprint) {
|
||||
this.push(new Imprint());
|
||||
}
|
||||
|
||||
const shading = options.shading || options.shadow;
|
||||
if (shading) {
|
||||
this.push(new Shading(shading.type, shading.fill, shading.color));
|
||||
|
Reference in New Issue
Block a user