Fix class
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
d6c89c7ada
commit
490cd92707
@ -21,6 +21,14 @@ export abstract class AbstractItemWidgetComponent {
|
|||||||
|
|
||||||
constructor(public store: Store<mapReducers.State | commonReducers.State>, public itemTypeService: ItemTypeService) {
|
constructor(public store: Store<mapReducers.State | commonReducers.State>, public itemTypeService: ItemTypeService) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getScaledValue(value:number,scale:number = 0):number {
|
||||||
|
let v = value;
|
||||||
|
if(scale && scale != 0) {
|
||||||
|
v=scale*value;
|
||||||
|
}
|
||||||
|
return v;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@ -34,12 +42,4 @@ export class ItemListItemComponent extends AbstractItemListItemComponent {
|
|||||||
constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService) {
|
constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService) {
|
||||||
super(store, itemTypeService);
|
super(store, itemTypeService);
|
||||||
}
|
}
|
||||||
|
|
||||||
getScaledValue(value:number,scale:number = 0):number {
|
|
||||||
let v = value;
|
|
||||||
if(scale && scale != 0) {
|
|
||||||
v=scale*value;
|
|
||||||
}
|
|
||||||
return v;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user