UNPKG

@itwin/measure-tools-react

Version:
24 lines 1.27 kB
import type { ToolbarItem, ToolItemDef, UiItemsProvider, Widget } from "@itwin/appui-react"; import { StagePanelLocation, StagePanelSection, ToolbarOrientation, ToolbarUsage } from "@itwin/appui-react"; import type { ScreenViewport } from "@itwin/core-frontend"; export interface MeasureToolsUiProviderOptions { itemPriority?: number; groupPriority?: number; widgetPlacement?: { location: StagePanelLocation; section?: StagePanelSection; }; enableSheetMeasurement?: boolean; stageUsageList?: string[]; allowedViewportCallback?: (vp: ScreenViewport) => boolean; additionalToolbarItems?: ToolItemDef[]; isHiddenCallback?: (activeViewport?: ScreenViewport) => boolean; } export declare class MeasureToolsUiItemsProvider implements UiItemsProvider { readonly id = "MeasureToolsUiItemsProvider"; private _props; constructor(props?: MeasureToolsUiProviderOptions); provideToolbarItems(_stageId: string, stageUsage: string, toolbarUsage: ToolbarUsage, toolbarOrientation: ToolbarOrientation): ToolbarItem[]; provideWidgets(_stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection | undefined): ReadonlyArray<Widget>; } //# sourceMappingURL=MeasureToolsUiProvider.d.ts.map