Re-order package

This commit is contained in:
Dolan
2017-12-19 23:13:11 +00:00
parent 49fc28d86c
commit df6c7cf19f
43 changed files with 51 additions and 52 deletions

View File

@ -0,0 +1,23 @@
import { XmlAttributeComponent, XmlComponent } from "../../../../docx/xml-components";
import { GraphicData } from "./graphic-data";
interface IGraphicProperties {
a: string;
}
class GraphicAttributes extends XmlAttributeComponent<IGraphicProperties> {
protected xmlKeys = {
a: "xmlns:a",
};
}
export class Graphic extends XmlComponent {
constructor(referenceId: number) {
super("a:graphic");
this.root.push(new GraphicAttributes({
a: "http://schemas.openxmlformats.org/drawingml/2006/main",
}));
this.root.push(new GraphicData(referenceId));
}
}