fixed tslinting issues
This commit is contained in:
@ -140,7 +140,7 @@ export class Paragraph extends XmlComponent {
|
|||||||
public spacing(params: ISpacingProperties): Paragraph {
|
public spacing(params: ISpacingProperties): Paragraph {
|
||||||
this.properties.push(new Spacing(params));
|
this.properties.push(new Spacing(params));
|
||||||
return this;
|
return this;
|
||||||
};
|
}
|
||||||
|
|
||||||
public keepNext(): Paragraph {
|
public keepNext(): Paragraph {
|
||||||
this.properties.push(new KeepNext());
|
this.properties.push(new KeepNext());
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { XmlAttributeComponent, XmlComponent } from "../../../../../xml-components";
|
import { XmlAttributeComponent, XmlComponent } from "../../../../../xml-components";
|
||||||
import { GraphicData } from "./graphic-data";
|
import { GraphicData } from "./graphic-data";
|
||||||
|
|
||||||
|
|
||||||
interface IGraphicProperties {
|
interface IGraphicProperties {
|
||||||
a: string;
|
a: string;
|
||||||
}
|
}
|
||||||
|
@ -22,5 +22,5 @@ export abstract class XmlComponent extends BaseXmlComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export * from "./attributes"
|
export * from "./attributes";
|
||||||
export * from "./default-attributes";
|
export * from "./default-attributes";
|
||||||
|
@ -204,7 +204,7 @@ class LevelBase extends XmlComponent {
|
|||||||
public spacing(params: paragraph.ISpacingProperties): Level {
|
public spacing(params: paragraph.ISpacingProperties): Level {
|
||||||
this.addParagraphProperty(new paragraph.Spacing(params));
|
this.addParagraphProperty(new paragraph.Spacing(params));
|
||||||
return this;
|
return this;
|
||||||
};
|
}
|
||||||
|
|
||||||
public keepNext(): Level {
|
public keepNext(): Level {
|
||||||
this.addParagraphProperty(new paragraph.KeepNext());
|
this.addParagraphProperty(new paragraph.KeepNext());
|
||||||
|
@ -179,7 +179,7 @@ export class ParagraphStyle extends Style {
|
|||||||
public spacing(params: paragraph.ISpacingProperties): ParagraphStyle {
|
public spacing(params: paragraph.ISpacingProperties): ParagraphStyle {
|
||||||
this.addParagraphProperty(new paragraph.Spacing(params));
|
this.addParagraphProperty(new paragraph.Spacing(params));
|
||||||
return this;
|
return this;
|
||||||
};
|
}
|
||||||
|
|
||||||
public keepNext(): ParagraphStyle {
|
public keepNext(): ParagraphStyle {
|
||||||
this.addParagraphProperty(new paragraph.KeepNext());
|
this.addParagraphProperty(new paragraph.KeepNext());
|
||||||
|
@ -20,7 +20,7 @@ describe("Drawing", () => {
|
|||||||
it("should create a Drawing with correct root key", () => {
|
it("should create a Drawing with correct root key", () => {
|
||||||
const newJson = Utility.jsonify(currentBreak);
|
const newJson = Utility.jsonify(currentBreak);
|
||||||
assert.equal(newJson.rootKey, "w:drawing");
|
assert.equal(newJson.rootKey, "w:drawing");
|
||||||
console.log(JSON.stringify(newJson, null, 2));
|
// console.log(JSON.stringify(newJson, null, 2));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* tslint:disable:no-unused-expression */
|
||||||
import { expect } from "chai";
|
import { expect } from "chai";
|
||||||
import { Paragraph } from "../../../docx/paragraph";
|
import { Paragraph } from "../../../docx/paragraph";
|
||||||
import { Table } from "../../../docx/table";
|
import { Table } from "../../../docx/table";
|
||||||
|
Reference in New Issue
Block a user