@linzjs/step-ag-grid
Version:
[](https://github.com/semantic-release/semantic-release) > Reusable [ag-grid](https://www.ag-grid.com/) component for LINZ / Toitū te whenua.
20 lines (19 loc) • 1.21 kB
TypeScript
export declare const bearingValueFormatter: (value: any) => string;
export declare const bearingCorrectionValueFormatter: (value: any) => string;
export declare const bearingNumberParser: (value: string) => number | null;
export declare const bearingStringValidator: (value: string, customInvalid?: (value: number | null) => string | null) => string | null;
/**
*Decimal-ish degrees to Degrees Minutes Seconds converter
*
* @param dd Decimal-ish degrees
* @param showPositiveSymbol whether the + sign appears before the number
* @param trailingZeroDp 2 | 4 | 5
* Example:
* 2 = 300° 00'
* 4 = 300° 00' 00"
* 5 = 300° 00' 00.0"
* @returns Degrees Minutes Seconds
*/
export declare const convertDDToDMS: (dd: number | null, showPositiveSymbol?: boolean, trailingZeroDp?: 2 | 4 | 5) => string;
export declare const bearingRangeValidator: (value: number | null) => "Bearing is required" | "Bearing must be less than 360 degrees" | "Bearing must not be negative" | null;
export declare const bearingCorrectionRangeValidator: (value: number | null) => "Bearing correction is required" | "Bearing correction must be less than 360 degrees" | "Bearing correction must be greater then -180 degrees" | null;