UNPKG

@itwin/measure-tools-react

Version:
27 lines 1.44 kB
import type { Point3d } from "@itwin/core-geometry"; import { MeasurementToolModel } from "../api/MeasurementToolModel.js"; import type { LocationMeasurementFormattingProps, LocationMeasurementProps } from "../measurements/LocationMeasurement.js"; import { LocationMeasurement } from "../measurements/LocationMeasurement.js"; import type { MeasurementProps } from "../api/MeasurementProps.js"; import type { DrawingMetadataProps } from "../api/Measurement.js"; type LocationMeasurementPropsOnly = Omit<LocationMeasurementProps, keyof MeasurementProps>; export interface AddLocationProps extends Omit<LocationMeasurementPropsOnly, "location"> { location: Point3d; viewType: string; viewId?: string | undefined; drawingMetadata?: DrawingMetadataProps | undefined; } export declare class MeasureLocationToolModel extends MeasurementToolModel<LocationMeasurement> { private _currentMeasurement?; private _formatting?; get dynamicMeasurement(): LocationMeasurement | undefined; get formatting(): LocationMeasurementFormattingProps | undefined; set formatting(formatting: LocationMeasurementFormattingProps | undefined); constructor(); set sheetViewId(id: string | undefined); get sheetViewId(): string | undefined; addLocation(props: AddLocationProps, isDynamic: boolean): void; reset(clearMeasurements: boolean): void; } export {}; //# sourceMappingURL=MeasureLocationToolModel.d.ts.map