Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck committed Aug 5, 2024
1 parent fd23da6 commit 44e0be4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/sphere-shape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,6 @@ class SphereShape extends Element {
get radius() {
return this._radius;
}
};
}

export { SphereShape };
5 changes: 3 additions & 2 deletions src/ui/menu-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MenuPanel extends Container {
super(args);

this.on('hide', () => {
for (let menuItem of menuItems) {
for (const menuItem of menuItems) {
if (menuItem.subMenu) {
menuItem.subMenu.hidden = true;
}
Expand All @@ -76,7 +76,7 @@ class MenuPanel extends Container {

let deactivate: () => void | null = null;

for (let menuItem of menuItems) {
for (const menuItem of menuItems) {
const type = menuItem.subMenu ? 'menu' : menuItem.text ? 'button' : 'separator';

let row: Container | null = null;
Expand Down Expand Up @@ -168,6 +168,7 @@ class MenuPanel extends Container {
}

get rootPanel() {
// eslint-disable-next-line @typescript-eslint/no-this-alias
let panel: MenuPanel = this;
while (panel.parentPanel) {
panel = panel.parentPanel;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/right-toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ class RightToolbar extends Container {
events.fire('camera.toggleDebug');
});
}
};
}

export { RightToolbar };
2 changes: 1 addition & 1 deletion src/ui/scene-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ class ScenePanel extends Container {
this.append(transformHeader);
this.append(new Transform(events));
}
};
}

export { ScenePanel };
2 changes: 1 addition & 1 deletion src/ui/tooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class Tooltips extends Container {
};

this.destroy = () => {
for (let target of targets.keys()) {
for (const target of targets.keys()) {
this.unregister(target);
}
};
Expand Down

0 comments on commit 44e0be4

Please sign in to comment.