import { Attributes, XmlComponent } from "@file/xml-components";
import { hexColorValue, signedTwipsMeasureValue } from "@util/values";
export class CharacterSpacing extends XmlComponent {
public constructor(value: number | string) {
super("w:spacing");
this.root.push(
new Attributes({
val: signedTwipsMeasureValue(value),
}),
);
}
}
//
//
//
//
//
//
export class Color extends XmlComponent {
public constructor(color: string) {
super("w:color");
this.root.push(
new Attributes({
val: hexColorValue(color),
}),
);
}
}
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
export class Highlight extends XmlComponent {
public constructor(color: string) {
super("w:highlight");
this.root.push(
new Attributes({
val: color,
}),
);
}
}
export class HighlightComplexScript extends XmlComponent {
public constructor(color: string) {
super("w:highlightCs");
this.root.push(
new Attributes({
val: color,
}),
);
}
}