Inline single use interfaces

This commit is contained in:
Dolan
2021-03-15 00:11:39 +00:00
parent 18ce200cdb
commit a3febae8a3
42 changed files with 91 additions and 181 deletions

View File

@ -6,10 +6,6 @@ import { IMargins } from "../floating";
interface IWrapSquareAttributes extends IDistance {
readonly wrapText?: TextWrappingSide;
readonly distT?: number;
readonly distB?: number;
readonly distL?: number;
readonly distR?: number;
}
class WrapSquareAttributes extends XmlAttributeComponent<IWrapSquareAttributes> {

View File

@ -3,12 +3,10 @@ import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
import { IMargins } from "../floating";
interface IWrapTightAttributes {
class WrapTightAttributes extends XmlAttributeComponent<{
readonly distT?: number;
readonly distB?: number;
}
class WrapTightAttributes extends XmlAttributeComponent<IWrapTightAttributes> {
}> {
protected readonly xmlKeys = {
distT: "distT",
distB: "distB",

View File

@ -3,12 +3,10 @@ import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
import { IMargins } from "../floating";
interface IWrapTopAndBottomAttributes {
class WrapTopAndBottomAttributes extends XmlAttributeComponent<{
readonly distT?: number;
readonly distB?: number;
}
class WrapTopAndBottomAttributes extends XmlAttributeComponent<IWrapTopAndBottomAttributes> {
}> {
protected readonly xmlKeys = {
distT: "distT",
distB: "distB",