changed to xml component

This commit is contained in:
Dolan Miu
2016-03-29 22:55:37 +01:00
parent 4a62975516
commit 7e91d7be4d
3 changed files with 24 additions and 24 deletions

View File

@ -1,10 +1,10 @@
import {P, Attributes} from "./xml-components";
import {XmlComponent, Attributes} from "./xml-components";
class Border implements P {
private bottom: Array<P>;
class Border implements XmlComponent {
private bottom: Array<XmlComponent>;
constructor() {
this.bottom = new Array<P>();
this.bottom = new Array<XmlComponent>();
this.bottom.push(new Attributes({
color: "auto",
space: "1",
@ -15,10 +15,10 @@ class Border implements P {
}
export class ThematicBreak {
private pBdr: Array<P>;
private pBdr: Array<XmlComponent>;
constructor() {
this.pBdr = new Array<P>();
this.pBdr = new Array<XmlComponent>();
this.pBdr.push(new Border());
}
}