Made project Prettier compliant
This commit is contained in:
@ -21,7 +21,6 @@ describe("Body", () => {
|
||||
});
|
||||
|
||||
describe("#constructor()", () => {
|
||||
|
||||
it("should create the Section Properties", () => {
|
||||
const newJson = Utility.jsonify(body);
|
||||
assert.equal(newJson.root[0].rootKey, "w:sectPr");
|
||||
|
@ -1,7 +1,6 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
|
||||
export class Body extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
super("w:body");
|
||||
}
|
||||
|
@ -1,11 +1,12 @@
|
||||
import { Attributes, XmlComponent } from "file/xml-components";
|
||||
|
||||
export class Columns extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
super("w:cols");
|
||||
this.root.push(new Attributes({
|
||||
space: "708",
|
||||
}));
|
||||
this.root.push(
|
||||
new Attributes({
|
||||
space: "708",
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,12 @@
|
||||
import { Attributes, XmlComponent } from "file/xml-components";
|
||||
|
||||
export class DocumentGrid extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
super("w:docGrid");
|
||||
this.root.push(new Attributes({
|
||||
linePitch: "360",
|
||||
}));
|
||||
this.root.push(
|
||||
new Attributes({
|
||||
linePitch: "360",
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,18 @@
|
||||
import { Attributes, XmlComponent } from "file/xml-components";
|
||||
|
||||
export class PageMargin extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
super("w:pgMar");
|
||||
this.root.push(new Attributes({
|
||||
top: "1440",
|
||||
right: "1440",
|
||||
bottom: "1440",
|
||||
left: "1440",
|
||||
header: "708",
|
||||
footer: "708",
|
||||
gutter: "0",
|
||||
}));
|
||||
this.root.push(
|
||||
new Attributes({
|
||||
top: "1440",
|
||||
right: "1440",
|
||||
bottom: "1440",
|
||||
left: "1440",
|
||||
header: "708",
|
||||
footer: "708",
|
||||
gutter: "0",
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +1,13 @@
|
||||
import { Attributes, XmlComponent } from "file/xml-components";
|
||||
|
||||
export class PageSize extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
super("w:pgSz");
|
||||
this.root.push(new Attributes({
|
||||
w: "11906",
|
||||
h: "16838",
|
||||
}));
|
||||
this.root.push(
|
||||
new Attributes({
|
||||
w: "11906",
|
||||
h: "16838",
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -5,14 +5,15 @@ import { PageMargin } from "./page-margin";
|
||||
import { PageSize } from "./page-size";
|
||||
|
||||
export class SectionProperties extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
super("w:sectPr");
|
||||
this.root.push(new Attributes({
|
||||
rsidR: "00B64E8F",
|
||||
rsidRPr: "00D842E4",
|
||||
rsidSect: "000A6AD0",
|
||||
}));
|
||||
this.root.push(
|
||||
new Attributes({
|
||||
rsidR: "00B64E8F",
|
||||
rsidRPr: "00D842E4",
|
||||
rsidSect: "000A6AD0",
|
||||
}),
|
||||
);
|
||||
this.root.push(new PageSize());
|
||||
this.root.push(new PageMargin());
|
||||
this.root.push(new Columns());
|
||||
|
Reference in New Issue
Block a user