Files
docx-js/ts/docx/run/script.ts

26 lines
476 B
TypeScript
Raw Normal View History

2017-03-08 20:32:30 +00:00
import { Attributes, XmlComponent } from "../xml-components";
2016-07-12 08:25:53 +01:00
abstract class VerticalAlign extends XmlComponent {
constructor(type: string) {
super("w:vertAlign");
this.root.push(new Attributes({
2017-03-08 20:32:30 +00:00
val: type,
2016-07-12 08:25:53 +01:00
}));
}
}
export class SuperScript extends VerticalAlign {
constructor() {
super("superscript");
}
}
export class SubScript extends VerticalAlign {
constructor() {
super("subscript");
}
2017-03-08 20:32:30 +00:00
}