fix run-fonts for new numbering test (and linter warnings)
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
import {XmlComponent, XmlAttributeComponent} from "../docx/xml-components";
|
import {XmlAttributeComponent, XmlComponent} from "../docx/xml-components";
|
||||||
|
|
||||||
interface RunFontAttributesProperties {
|
interface IRunFontAttributesProperties {
|
||||||
ascii: string;
|
ascii: string;
|
||||||
hAnsi: string;
|
hAnsi: string;
|
||||||
hint: string;
|
hint: string;
|
||||||
@ -8,10 +8,11 @@ interface RunFontAttributesProperties {
|
|||||||
|
|
||||||
class RunFontAttributes extends XmlAttributeComponent {
|
class RunFontAttributes extends XmlAttributeComponent {
|
||||||
|
|
||||||
constructor(properties: RunFontAttributesProperties) {
|
constructor(properties: IRunFontAttributesProperties) {
|
||||||
super({
|
super({
|
||||||
left: "w:left",
|
ascii: "w:ascii",
|
||||||
hanging: "w:hanging"
|
hAnsi: "w:hAnsi",
|
||||||
|
hint: "w:hint",
|
||||||
}, properties);
|
}, properties);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -19,11 +20,11 @@ class RunFontAttributes extends XmlAttributeComponent {
|
|||||||
export class RunFonts extends XmlComponent {
|
export class RunFonts extends XmlComponent {
|
||||||
|
|
||||||
constructor(ascii: string, hint: string) {
|
constructor(ascii: string, hint: string) {
|
||||||
super("w:ind");
|
super("w:rFonts");
|
||||||
this.root.push(new RunFontAttributes({
|
this.root.push(new RunFontAttributes({
|
||||||
ascii: ascii,
|
ascii: ascii,
|
||||||
hAnsi: ascii,
|
hAnsi: ascii,
|
||||||
hint: hint
|
hint: hint,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user