Change docx folder to more appropriate "file" folder
This commit is contained in:
25
src/file/paragraph/run/script.ts
Normal file
25
src/file/paragraph/run/script.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import { Attributes, XmlComponent } from "../../xml-components";
|
||||
|
||||
export abstract class VerticalAlign extends XmlComponent {
|
||||
|
||||
constructor(type: string) {
|
||||
super("w:vertAlign");
|
||||
this.root.push(new Attributes({
|
||||
val: type,
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
export class SuperScript extends VerticalAlign {
|
||||
|
||||
constructor() {
|
||||
super("superscript");
|
||||
}
|
||||
}
|
||||
|
||||
export class SubScript extends VerticalAlign {
|
||||
|
||||
constructor() {
|
||||
super("subscript");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user