add default argument "start" to createLevel

This commit is contained in:
felipe
2017-03-08 19:18:24 +01:00
parent cee515e43f
commit f7b90d4ff3
2 changed files with 13 additions and 2 deletions

View File

@ -35,7 +35,7 @@ export class AbstractNumbering extends XmlComponent {
this.root.push(level);
}
public createLevel(num: number, format: string, text: string, align: string) {
public createLevel(num: number, format: string, text: string, align: string="start") {
const level = new Level(num, format, text, align);
this.addLevel(level);
return level;