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

@ -8,8 +8,6 @@ import { PicAttributes } from "./pic-attributes";
import { ShapeProperties } from "./shape-properties/shape-properties";
export class Pic extends XmlComponent {
private readonly shapeProperties: ShapeProperties;
constructor(mediaData: IMediaData, transform: IMediaDataTransformation) {
super("pic:pic");
@ -19,14 +17,8 @@ export class Pic extends XmlComponent {
}),
);
this.shapeProperties = new ShapeProperties(transform);
this.root.push(new NonVisualPicProperties());
this.root.push(new BlipFill(mediaData));
this.root.push(new ShapeProperties(transform));
}
public setXY(x: number, y: number): void {
this.shapeProperties.setXY(x, y);
}
}