remove deprecated mutable drawing functions: scale, setXY

This commit is contained in:
Tom Hunkapiller
2021-05-24 09:25:52 +03:00
parent 56eecef1a8
commit a56119e7cd
12 changed files with 12 additions and 53 deletions

View File

@ -12,7 +12,7 @@ export class Inline extends XmlComponent {
private readonly extent: Extent;
private readonly graphic: Graphic;
constructor(mediaData: IMediaData, private readonly transform: IMediaDataTransformation) {
constructor(mediaData: IMediaData, transform: IMediaDataTransformation) {
super("wp:inline");
this.root.push(
@ -33,12 +33,4 @@ export class Inline extends XmlComponent {
this.root.push(new GraphicFrameProperties());
this.root.push(this.graphic);
}
public scale(factorX: number, factorY: number): void {
const newX = Math.round(this.transform.emus.x * factorX);
const newY = Math.round(this.transform.emus.y * factorY);
this.extent.setXY(newX, newY);
this.graphic.setXY(newX, newY);
}
}