added new run methods

This commit is contained in:
Dolan Miu
2016-07-12 08:25:53 +01:00
parent 122c87ddf8
commit ed4f7464e0
6 changed files with 89 additions and 12 deletions

25
ts/docx/run/script.ts Normal file
View File

@ -0,0 +1,25 @@
import {XmlComponent, Attributes} from "../xml-components";
abstract class VerticalAlign extends XmlComponent {
constructor(type: string) {
super("w:vertAlign");
this.root.push(new Attributes({
val: "superscript"
}));
}
}
export class SuperScript extends VerticalAlign {
constructor() {
super("superscript");
}
}
export class SubScript extends VerticalAlign {
constructor() {
super("subscript");
}
}