@itwin/measure-tools-react
Version:
Frontend framework and tools for measurements
18 lines • 1.92 kB
TypeScript
import type { ScreenViewport } from "@itwin/core-frontend";
import { ToolItemDef } from "@itwin/appui-react";
import type { DistanceMeasurementFormattingProps } from "../measurements/DistanceMeasurement.js";
import type { AreaMeasurementFormattingProps } from "../measurements/AreaMeasurement.js";
import type { LocationMeasurementFormattingProps } from "../measurements/LocationMeasurement.js";
import type { AngleMeasurementFormattingProps } from "../measurements/AngleMeasurement.js";
import type { RadiusMeasurementFormattingProps } from "../measurements/RadiusMeasurement.js";
export declare class MeasureToolDefinitions {
static getMeasureDistanceToolCommand(allowedViewportCallback: ((vp: ScreenViewport) => boolean) | undefined, enableSheetMeasurements: boolean, formatting?: DistanceMeasurementFormattingProps): ToolItemDef;
static getMeasureAreaToolCommand(allowedViewportCallback: ((vp: ScreenViewport) => boolean) | undefined, enableSheetMeasurements: boolean, formatting?: AreaMeasurementFormattingProps): ToolItemDef;
static getMeasureLocationToolCommand(allowedViewportCallback: ((vp: ScreenViewport) => boolean) | undefined, enableSheetMeasurements: boolean, formatting?: LocationMeasurementFormattingProps): ToolItemDef;
static get clearMeasurementsToolCommand(): ToolItemDef;
static get toggleDisplayMeasurementAxesToolCommand(): ToolItemDef;
static getMeasureRadiusToolCommand(allowedViewportCallback?: (vp: ScreenViewport) => boolean, formatting?: RadiusMeasurementFormattingProps): ToolItemDef;
static getMeasureAngleToolCommand(allowedViewportCallback?: (vp: ScreenViewport) => boolean, formatting?: AngleMeasurementFormattingProps): ToolItemDef;
static getMeasurePerpendicularToolCommand(allowedViewportCallback?: (vp: ScreenViewport) => boolean, formatting?: DistanceMeasurementFormattingProps): ToolItemDef;
}
//# sourceMappingURL=MeasureToolDefinitions.d.ts.map