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

@ -1,11 +1,9 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IExtentsAttributes {
export class ExtentsAttributes extends XmlAttributeComponent<{
readonly cx?: number;
readonly cy?: number;
}
export class ExtentsAttributes extends XmlAttributeComponent<IExtentsAttributes> {
}> {
protected readonly xmlKeys = {
cx: "cx",
cy: "cy",

View File

@ -1,11 +1,9 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IOffsetAttributes {
export class OffsetAttributes extends XmlAttributeComponent<{
readonly x?: number;
readonly y?: number;
}
export class OffsetAttributes extends XmlAttributeComponent<IOffsetAttributes> {
}> {
protected readonly xmlKeys = {
x: "x",
y: "y",

View File

@ -1,10 +1,8 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IPresetGeometryAttributes {
export class PresetGeometryAttributes extends XmlAttributeComponent<{
readonly prst?: string;
}
export class PresetGeometryAttributes extends XmlAttributeComponent<IPresetGeometryAttributes> {
}> {
protected readonly xmlKeys = {
prst: "prst",
};

View File

@ -1,10 +1,8 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IShapePropertiesAttributes {
export class ShapePropertiesAttributes extends XmlAttributeComponent<{
readonly bwMode?: string;
}
export class ShapePropertiesAttributes extends XmlAttributeComponent<IShapePropertiesAttributes> {
}> {
protected readonly xmlKeys = {
bwMode: "bwMode",
};