mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 20:40:39 +00:00
Fix lints
This commit is contained in:
parent
4a2a08b628
commit
d09293c975
4 changed files with 29 additions and 30 deletions
|
|
@ -143,38 +143,38 @@ class GuiObject extends MakiObject {
|
|||
getheight(): number {
|
||||
if (this.attributes.h !== undefined) {
|
||||
return Number(this.attributes.h);
|
||||
} else {
|
||||
const baseImage = baseImageAttributeFromObject(this);
|
||||
if (baseImage) {
|
||||
// TODO: fix the type on this, we currently have better typing for this in
|
||||
// AnimatedLayer where we convert to _typedAttributes, as we apply that new
|
||||
// standard up to GuiObject/MakiObject we should be able to remove the ignore
|
||||
// @ts-ignore
|
||||
const image = this.attributes.js_assets[baseImage];
|
||||
if (image && image.h !== undefined) {
|
||||
return image.h;
|
||||
}
|
||||
}
|
||||
const baseImage = baseImageAttributeFromObject(this);
|
||||
if (baseImage) {
|
||||
// TODO: fix the type on this, we currently have better typing for this in
|
||||
// AnimatedLayer where we convert to _typedAttributes, as we apply that new
|
||||
// standard up to GuiObject/MakiObject we should be able to remove the ignore
|
||||
// @ts-ignore
|
||||
const image = this.attributes.js_assets[baseImage];
|
||||
if (image && image.h !== undefined) {
|
||||
return image.h;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
getwidth(): number {
|
||||
if (this.attributes.w !== undefined) {
|
||||
return Number(this.attributes.w);
|
||||
} else {
|
||||
const baseImage = baseImageAttributeFromObject(this);
|
||||
if (baseImage) {
|
||||
// TODO: fix the type on this, we currently have better typing for this in
|
||||
// AnimatedLayer where we convert to _typedAttributes, as we apply that new
|
||||
// standard up to GuiObject/MakiObject we should be able to remove the ignore
|
||||
// @ts-ignore
|
||||
const image = this.attributes.js_assets[baseImage];
|
||||
if (image && image.w !== undefined) {
|
||||
return image.w;
|
||||
}
|
||||
}
|
||||
const baseImage = baseImageAttributeFromObject(this);
|
||||
if (baseImage) {
|
||||
// TODO: fix the type on this, we currently have better typing for this in
|
||||
// AnimatedLayer where we convert to _typedAttributes, as we apply that new
|
||||
// standard up to GuiObject/MakiObject we should be able to remove the ignore
|
||||
// @ts-ignore
|
||||
const image = this.attributes.js_assets[baseImage];
|
||||
if (image && image.w !== undefined) {
|
||||
return image.w;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue