add tilt field to chart
This commit is contained in:
@@ -53,4 +53,8 @@ export function numberToStringWithCommas(n: number):string {
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
export function clamp(val: number, min: number, max: number) : number {
|
||||
return Math.min(Math.max(val, min), max);
|
||||
}
|
||||
Reference in New Issue
Block a user