Add getScaledValueto both
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
490cd92707
commit
1532e141b9
@ -12,6 +12,14 @@ export abstract class AbstractItemListItemComponent {
|
||||
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user