Using a better demo naming system

This commit is contained in:
Dolan
2019-08-06 23:08:21 +01:00
parent 82fef4c2b1
commit b741db3050
51 changed files with 22 additions and 15 deletions

View File

@ -15,7 +15,7 @@ import {
Italics,
ItalicsComplexScript,
RightToLeft,
Shadow,
Shading,
ShadowComplexScript,
Size,
SizeComplexScript,
@ -51,7 +51,7 @@ export interface IRunOptions {
readonly hint?: string;
};
readonly highlight?: string;
readonly shadow?: {
readonly shading?: {
readonly type: ShadingType;
readonly fill: string;
readonly color: string;
@ -130,9 +130,9 @@ export class Run extends XmlComponent {
this.properties.push(new HighlightComplexScript(options.highlight));
}
if (options.shadow) {
this.properties.push(new Shadow(options.shadow.type, options.shadow.fill, options.shadow.color));
this.properties.push(new ShadowComplexScript(options.shadow.type, options.shadow.fill, options.shadow.color));
if (options.shading) {
this.properties.push(new Shading(options.shading.type, options.shading.fill, options.shading.color));
this.properties.push(new ShadowComplexScript(options.shading.type, options.shading.fill, options.shading.color));
}
}