import { ButtonType } from "../constants"; import { IconClass } from "../utils/CommonUtils"; import { ToolbarMenu } from "./Toolbar"; /** * Toolbar.config **/ /** * Buildin toolbar ids * @internal */ export declare enum ToolbarMenuId { HomeView = "HomeView", OrthoMode = "OrthoMode", Measure = "Measure", MeasureDistance = "MeasureDistance", MeasureArea = "MeasureArea", MeasureClear = "MeasureClear", Section = "Section", SectionBox = "SectionBox", SectionPlane = "SectionPlane", AxisSectionPlane = "AxisSectionPlane", BimTree = "BimTree", Viewpoint = "Viewpoint", Annotation = "Annotation", Property = "Property", Settings = "Settings", Fullscreen = "FullScreen", FirstPersonMode = "FirstPersonMode", Debug = "Test" } /** * ToolbarConfig * @internal */ export interface ToolbarMenuConfig { title?: string; icon: IconClass; children?: ToolbarConfig; visible?: boolean; mutexIds?: ToolbarMenuId[]; defaultActive?: boolean; type: ButtonType; getTitle?: (item: ToolbarMenu) => void; onActive?: (item: ToolbarMenu) => void; onDeactive?: (item: ToolbarMenu) => void; onClick?: (item: ToolbarMenu) => void; } /** * @internal */ export declare type ToolbarConfig = { [key in ToolbarMenuId]?: ToolbarMenuConfig; }; /** * @internal */ export declare const DEFAULT_TOOLBAR_CONFIG: ToolbarConfig; /** * @internal */ export declare const GROUP_CONFIG: ToolbarMenuId[][];