Files
docx-js/src/file/paragraph/run/picture-run.ts

17 lines
375 B
TypeScript
Raw Normal View History

2017-12-19 23:13:11 +00:00
import { Drawing } from "../../drawing";
2017-12-20 00:06:08 +00:00
import { IData } from "../../media/data";
import { Run } from "../run";
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));
}
}