Fix conformance issues with imagerun - out of order properties (a:xfrm), invalid attr name (pic:cNvPr) desc -> descr

This commit is contained in:
Tom Hunkapiller
2021-05-20 00:36:35 +03:00
parent cdc97adaeb
commit 45130bed0b
5 changed files with 72 additions and 72 deletions

View File

@ -8,6 +8,6 @@ export class NonVisualPropertiesAttributes extends XmlAttributeComponent<{
protected readonly xmlKeys = {
id: "id",
name: "name",
descr: "desc",
descr: "descr",
};
}

View File

@ -24,14 +24,6 @@ describe("Form", () => {
{
_attr: {},
},
{
"a:ext": {
_attr: {
cx: 100,
cy: 100,
},
},
},
{
"a:off": {
_attr: {
@ -40,6 +32,14 @@ describe("Form", () => {
},
},
},
{
"a:ext": {
_attr: {
cx: 100,
cy: 100,
},
},
},
],
});
});
@ -70,14 +70,6 @@ describe("Form", () => {
flipV: true,
},
},
{
"a:ext": {
_attr: {
cx: 100,
cy: 100,
},
},
},
{
"a:off": {
_attr: {
@ -86,6 +78,14 @@ describe("Form", () => {
},
},
},
{
"a:ext": {
_attr: {
cx: 100,
cy: 100,
},
},
},
],
});
});

View File

@ -34,8 +34,8 @@ export class Form extends XmlComponent {
this.extents = new Extents(options.emus.x, options.emus.y);
this.root.push(this.extents);
this.root.push(new Offset());
this.root.push(this.extents);
}
public setXY(x: number, y: number): void {