Got docx not crashing when adding image
This commit is contained in:
14
src/file/drawing/inline/extent/extent.ts
Normal file
14
src/file/drawing/inline/extent/extent.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { ExtentAttributes } from "./extent-attributes";
|
||||
|
||||
export class Extent extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
super("wp:extent");
|
||||
|
||||
this.root.push(new ExtentAttributes({
|
||||
cx: 3162300,
|
||||
cy: 2857500,
|
||||
}));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user