Progress on embeddding image
This commit is contained in:
16
src/file/drawing/inline/graphic/graphic-data/graphic-data.ts
Normal file
16
src/file/drawing/inline/graphic/graphic-data/graphic-data.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { GraphicDataAttributes } from "./graphic-data-attribute";
|
||||
import { Pic } from "./pic";
|
||||
|
||||
export class GraphicData extends XmlComponent {
|
||||
|
||||
constructor(referenceId: number) {
|
||||
super("a:graphicData");
|
||||
|
||||
this.root.push(new GraphicDataAttributes({
|
||||
uri: "http://schemas.openxmlformats.org/drawingml/2006/picture",
|
||||
}));
|
||||
|
||||
this.root.push(new Pic(referenceId));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user