added source rectangle and stretch in the blip fill
This commit is contained in:
@ -1,10 +1,14 @@
|
|||||||
import { XmlComponent } from "../../../../../../../../xml-components";
|
import { XmlComponent } from "../../../../../../../../xml-components";
|
||||||
import { Blip } from "./blip";
|
import { Blip } from "./blip";
|
||||||
|
import { SourceRectangle } from "./source-rectangle";
|
||||||
|
import { Stretch } from "./stretch";
|
||||||
|
|
||||||
export class BlipFill extends XmlComponent {
|
export class BlipFill extends XmlComponent {
|
||||||
|
|
||||||
constructor(referenceId: number) {
|
constructor(referenceId: number) {
|
||||||
super("pic:blipFill");
|
super("pic:blipFill");
|
||||||
this.root.push(new Blip(referenceId));
|
this.root.push(new Blip(referenceId));
|
||||||
|
this.root.push(new SourceRectangle());
|
||||||
|
this.root.push(new Stretch());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
import { XmlComponent } from "../../../../../../../../xml-components";
|
||||||
|
|
||||||
|
export class SourceRectangle extends XmlComponent {
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
super("a:srcRect");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { XmlComponent } from "../../../../../../../../xml-components";
|
||||||
|
|
||||||
|
class FillRectangle extends XmlComponent {
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
super("a:fillRect");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class Stretch extends XmlComponent {
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
super("a:stretch");
|
||||||
|
this.root.push(new FillRectangle());
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user