Files
docx-js/src/file/xml-components/attributes.ts

48 lines
1.3 KiB
TypeScript
Raw Normal View History

2017-03-08 21:49:41 +00:00
import { XmlAttributeComponent } from "./default-attributes";
2021-03-15 00:11:39 +00:00
export class Attributes extends XmlAttributeComponent<{
readonly val?: string | number | boolean;
readonly color?: string;
2019-08-05 13:42:45 +03:00
readonly fill?: string;
readonly space?: string;
readonly sz?: string;
readonly type?: string;
readonly rsidR?: string;
readonly rsidRPr?: string;
readonly rsidSect?: string;
readonly w?: string;
readonly h?: string;
readonly top?: string;
readonly right?: string;
readonly bottom?: string;
readonly left?: string;
readonly header?: string;
readonly footer?: string;
readonly gutter?: string;
readonly linePitch?: string;
readonly pos?: string | number; // Little strange. Perhaps it is normal. Need to clarify in the spec.
2021-03-15 00:11:39 +00:00
}> {
protected readonly xmlKeys = {
val: "w:val",
color: "w:color",
2019-08-05 13:42:45 +03:00
fill: "w:fill",
space: "w:space",
sz: "w:sz",
type: "w:type",
rsidR: "w:rsidR",
rsidRPr: "w:rsidRPr",
rsidSect: "w:rsidSect",
w: "w:w",
h: "w:h",
top: "w:top",
right: "w:right",
bottom: "w:bottom",
left: "w:left",
header: "w:header",
footer: "w:footer",
gutter: "w:gutter",
linePitch: "w:linePitch",
pos: "w:pos",
};
2017-03-08 21:49:41 +00:00
}