Change docx folder to more appropriate "file" folder
This commit is contained in:
16
src/file/paragraph/run/picture-run.ts
Normal file
16
src/file/paragraph/run/picture-run.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { Drawing } from "../../drawing";
|
||||
import { IData } from "../../media/data";
|
||||
import { Run } from "../run";
|
||||
|
||||
export class PictureRun extends Run {
|
||||
|
||||
constructor(imageData: IData) {
|
||||
super();
|
||||
|
||||
if (imageData === undefined) {
|
||||
throw new Error("imageData cannot be undefined");
|
||||
}
|
||||
|
||||
this.root.push(new Drawing(imageData));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user