added new run methods
This commit is contained in:
25
ts/docx/run/script.ts
Normal file
25
ts/docx/run/script.ts
Normal 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");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user