@itwin/measure-tools-react
Version:
Frontend framework and tools for measurements
27 lines • 1.68 kB
TypeScript
import type { Point3d, XAndY } from "@itwin/core-geometry";
import type { Cartographic } from "@itwin/core-common";
import type { FormatProps } from "@itwin/core-quantity";
import { type FormatterSpec } from "@itwin/core-quantity";
export declare namespace FormatterUtils {
function formatCoordinates(point: Point3d): Promise<string>;
function formatCoordinatesImmediate(point: Point3d, coordSpec?: FormatterSpec): string;
function formatCoordinatesXY(point: XAndY): Promise<string>;
function formatCoordinatesXYImmediate(point: XAndY, coordSpec?: FormatterSpec): string;
/** Formats the input angle into DD°MM'SS.SS" format.
* NOTE: uses the same symbols as the IModelApp's quantityFormatter for minute and second.
* The minute symbol is an apostrophe ' while it should be a prime (\u2032)
* The second symbol is a quotation mark " while it should be a double prime (\u2033)
*/
function formatAngleToDMS(angleInDegrees: number): string;
function formatCartographicToLatLongDMS(c: Cartographic): string;
function formatCartographicToLatLong(c: Cartographic, angleSpec?: FormatterSpec): Promise<string>;
function formatSlope(slopeInPercent: number, withSlopeRatio: boolean): string;
function formatStation(station: number, stationSpec?: FormatterSpec): Promise<string>;
function formatLength(length: number, lengthSpec?: FormatterSpec): Promise<string>;
/**
* @returns The bearing in radians, where 0 is North and π/2 is East.
*/
function calculateBearing(dx: number, dy: number): number;
function getDefaultBearingFormatProps(): FormatProps;
}
//# sourceMappingURL=FormatterUtils.d.ts.map