Merge pull request #67 from citizenos/master
image scaling add rounding
This commit is contained in:
@ -35,8 +35,8 @@ export class Inline extends XmlComponent {
|
||||
}
|
||||
|
||||
public scale(factorX: number, factorY: number): void {
|
||||
const newX = this.dimensions.emus.x * factorX;
|
||||
const newY = this.dimensions.emus.y * factorY;
|
||||
const newX = Math.round(this.dimensions.emus.x * factorX);
|
||||
const newY = Math.round(this.dimensions.emus.y * factorY);
|
||||
|
||||
this.extent.setXY(newX, newY);
|
||||
this.graphic.setXY(newX, newY);
|
||||
|
@ -69,6 +69,11 @@ export class Paragraph extends XmlComponent {
|
||||
return this;
|
||||
}
|
||||
|
||||
public heading6(): Paragraph {
|
||||
this.properties.push(new Style("Heading6"));
|
||||
return this;
|
||||
}
|
||||
|
||||
public title(): Paragraph {
|
||||
this.properties.push(new Style("Title"));
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user