Files
docx-js/src/file/paragraph/run/script.ts
2022-08-31 07:52:27 +01:00

25 lines
535 B
TypeScript

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