UNPKG

cve-connector

Version:
24 lines (17 loc) 580 B
import type { UIDescriptor } from '../utils/matchmaker' export type MeasureCommand = | 'CancelMeasure' | 'ClearMeasureResults' | 'StartMeasure' /** 测量控制 */ export interface MeasureController { /** 取消测量 */ cancel: () => Promise<UIDescriptor> /** 清除测量结果*/ clearResults: () => Promise<UIDescriptor> /** 开始测量 */ start: (type: MeasureType) => Promise<UIDescriptor> } export declare const MeasureController: MeasureController /** 测量类型 */ export type MeasureType = 'Area' | 'Distance' | 'Height'