Files
docx-js/ts/docx/run/picture-run.ts

17 lines
386 B
TypeScript
Raw Normal View History

2017-04-01 12:18:23 +01:00
import { IData } from "../../media/data";
import { Run } from "../run";
import { Drawing } from "./run-components/drawing";
export class PictureRun extends Run {
2017-04-01 12:18:23 +01:00
constructor(imageData: IData) {
super();
2017-04-01 12:18:23 +01:00
if (imageData === undefined) {
throw new Error("imageData cannot be undefined");
}
this.root.push(new Drawing(imageData));
}
}