Skip to content

Commit 703841f

Browse files
committed
fixed linting errors
1 parent 5dabc04 commit 703841f

File tree

4 files changed

+9
-18
lines changed

4 files changed

+9
-18
lines changed

webapp/src/app/components/dialogs/new-map/new-map.component.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1-
import {Component, OnInit} from '@angular/core';
2-
import {CrossCodeMap} from '../../../models/cross-code-map';
3-
import {OverlayRefControl} from '../../../shared/overlay/overlay-ref-control';
4-
import {MapLoaderService} from '../../../shared/map-loader.service';
1+
import { Component } from '@angular/core';
2+
import { CrossCodeMap } from '../../../models/cross-code-map';
3+
import { OverlayRefControl } from '../../../shared/overlay/overlay-ref-control';
4+
import { MapLoaderService } from '../../../shared/map-loader.service';
55

66
@Component({
77
selector: 'app-new-map',
88
templateUrl: './new-map.component.html',
99
styleUrls: ['./new-map.component.scss']
1010
})
11-
export class NewMapComponent implements OnInit {
11+
export class NewMapComponent {
1212
map: CrossCodeMap;
1313

1414
constructor(private mapLoader: MapLoaderService, public ref: OverlayRefControl) {
1515
this.map = this.createDefaultMap();
1616
}
1717

18-
ngOnInit() {
19-
}
20-
2118
onSettingsChange(obj: { property: keyof CrossCodeMap, value: any }) {
2219
(this.map[obj.property] as any) = obj.value;
2320
}

webapp/src/app/components/entities/entities.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {MapLoaderService} from '../../shared/map-loader.service';
1313
templateUrl: './entities.component.html',
1414
styleUrls: ['./entities.component.scss']
1515
})
16-
export class EntitiesComponent implements OnInit {
16+
export class EntitiesComponent {
1717
@ViewChild(HostDirective, {static: false}) appHost?: HostDirective;
1818
entity?: CCEntity;
1919
map?: CCMap;
@@ -41,9 +41,6 @@ export class EntitiesComponent implements OnInit {
4141
});
4242
}
4343

44-
ngOnInit() {
45-
}
46-
4744
loadSettings(entity?: CCEntity) {
4845
if (!this.appHost) {
4946
return;

webapp/src/app/services/height-map/gfx-mapper/gfx-mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class GfxMapper {
8787
return (upperTerrain && upperTerrain.wallTerrainPrio || 0) > (lowerTerrain && lowerTerrain.wallTerrainPrio || 0);
8888
}
8989

90-
getGfx(gfxType: GFX_TYPE, x: number, y: number, subType: keyof GfxMaps | null, terrain: number, terrainBorder: number = -1, wallProps?: { start: number, end: number }) {
90+
getGfx(gfxType: GFX_TYPE, x: number, y: number, subType: keyof GfxMaps | null, terrain: number, terrainBorder = -1, wallProps?: { start: number, end: number }) {
9191
if (terrain && !this.terrains[terrain - 1]) {
9292
terrain = 0;
9393
}

webapp/src/app/shared/overlay/overlay-panel/overlay-panel.component.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
22

33
/**
44
* Used to display an overlay with the basic styles (draggable toolbar, scrollable content and buttons at the bottom)
@@ -24,7 +24,7 @@ import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core
2424
styleUrls: ['./overlay-panel.component.scss'],
2525
changeDetection: ChangeDetectionStrategy.OnPush
2626
})
27-
export class OverlayPanelComponent implements OnInit {
27+
export class OverlayPanelComponent {
2828

2929
@Input() title = '';
3030
@Input() allowDrag = true;
@@ -36,7 +36,4 @@ export class OverlayPanelComponent implements OnInit {
3636
constructor() {
3737
}
3838

39-
ngOnInit() {
40-
}
41-
4239
}

0 commit comments

Comments
 (0)