media: fixed bug when media size can be decimal
- produces invalid docx document
This commit is contained in:
@ -23,8 +23,8 @@ export class Media {
|
|||||||
y: dimensions.height,
|
y: dimensions.height,
|
||||||
},
|
},
|
||||||
emus: {
|
emus: {
|
||||||
x: dimensions.width * 9525,
|
x: Math.round(dimensions.width * 9525),
|
||||||
y: dimensions.height * 9525,
|
y: Math.round(dimensions.height * 9525),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user