"use strict";
/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Tools
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolbarItems = void 0;
const SelectionContextItemDef_1 = require("../selection/SelectionContextItemDef");
const ToolbarHelper_1 = require("../toolbar/ToolbarHelper");
const CoreToolDefinitions_1 = require("./CoreToolDefinitions");
/* eslint-disable deprecation/deprecation */
/** Helper namespace to create commonly used toolbar items.
 * @beta
 */
var ToolbarItems;
(function (ToolbarItems) {
    /** Creates an action item to open a keyin palette. */
    function createShowKeyinPalette(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.keyinPaletteButtonItemDef, overrides);
    }
    ToolbarItems.createShowKeyinPalette = createShowKeyinPalette;
    /** Creates an action item that runs a `FitViewTool`. */
    function createFitView(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.fitViewCommand, overrides);
    }
    ToolbarItems.createFitView = createFitView;
    /** Creates an action item that runs a `WindowAreaTool`. */
    function createWindowArea(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.windowAreaCommand, overrides);
    }
    ToolbarItems.createWindowArea = createWindowArea;
    /** Creates an action item that runs a `ZoomViewTool`. */
    function createZoomView(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.zoomViewCommand, overrides);
    }
    ToolbarItems.createZoomView = createZoomView;
    /** Creates an action item that runs a `PanViewTool`. */
    function createPanView(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.panViewCommand, overrides);
    }
    ToolbarItems.createPanView = createPanView;
    /** Creates an action item that runs a `RotateViewTool`. */
    function createRotateView(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.rotateViewCommand, overrides);
    }
    ToolbarItems.createRotateView = createRotateView;
    /** Creates an action item that runs a `WalkViewTool`. */
    function createWalkView(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.walkViewCommand, overrides);
    }
    ToolbarItems.createWalkView = createWalkView;
    /** Creates an action item that runs a `SelectionTool`. */
    function createSelectElement(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.selectElementCommand, overrides);
    }
    ToolbarItems.createSelectElement = createSelectElement;
    /** Creates an action item that runs a `SetupWalkCameraTool`. */
    function createSetupWalkCamera(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.setupCameraWalkTool, overrides);
    }
    ToolbarItems.createSetupWalkCamera = createSetupWalkCamera;
    /** Creates an action item that runs a `ViewToggleCameraTool`. */
    function createToggleCameraView(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.toggleCameraViewCommand, overrides);
    }
    ToolbarItems.createToggleCameraView = createToggleCameraView;
    /** Creates an action item that runs a `FlyViewTool`. */
    function createFlyView(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.flyViewCommand, overrides);
    }
    ToolbarItems.createFlyView = createFlyView;
    /** Creates an action item that runs a `ViewUndoTool`. */
    function createViewUndo(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.viewUndoCommand, overrides);
    }
    ToolbarItems.createViewUndo = createViewUndo;
    /** Creates an action item that runs a `ViewRedoTool`. */
    function createViewRedo(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.viewRedoCommand, overrides);
    }
    ToolbarItems.createViewRedo = createViewRedo;
    /** Creates an action item that runs a `ViewClipByPlaneTool`. */
    function createSectionByPlane(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.sectionByPlaneCommandItemDef, overrides);
    }
    ToolbarItems.createSectionByPlane = createSectionByPlane;
    /** Creates an action item that runs a `ViewClipByElementTool`. */
    function createSectionByElement(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.sectionByElementCommandItemDef, overrides);
    }
    ToolbarItems.createSectionByElement = createSectionByElement;
    /** Creates an action item that runs a `ViewClipByRangeTool`. */
    function createSectionByRange(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.sectionByRangeCommandItemDef, overrides);
    }
    ToolbarItems.createSectionByRange = createSectionByRange;
    /** Creates an action item that runs a `ViewClipByShapeTool`. */
    function createSectionByShape(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.sectionByShapeCommandItemDef, overrides);
    }
    ToolbarItems.createSectionByShape = createSectionByShape;
    /** Creates a group item with all sectioning tools. */
    function createSectionGroup(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarGroupItem)(CoreToolDefinitions_1.CoreTools.sectionToolGroup, overrides);
    }
    ToolbarItems.createSectionGroup = createSectionGroup;
    /** Creates an action item that runs a `MeasureDistanceTool`. */
    function createMeasureDistance(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.measureDistanceToolItemDef, overrides);
    }
    ToolbarItems.createMeasureDistance = createMeasureDistance;
    /** Creates an action item that runs a `MeasureLocationTool`. */
    function createMeasureLocation(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.measureLocationToolItemDef, overrides);
    }
    ToolbarItems.createMeasureLocation = createMeasureLocation;
    /** Creates a group item with all measurement tools. */
    function createMeasureGroup(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarGroupItem)(CoreToolDefinitions_1.CoreTools.measureToolGroup, overrides);
    }
    ToolbarItems.createMeasureGroup = createMeasureGroup;
    /** Creates an action item that clears a selection set. */
    function createClearSelection(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.clearSelectionItemDef, overrides);
    }
    ToolbarItems.createClearSelection = createClearSelection;
    /** Creates an action item that runs a `RestoreFrontstageLayoutTool`. */
    function createRestoreFrontstageLayout(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(CoreToolDefinitions_1.CoreTools.restoreFrontstageLayoutCommandItemDef, overrides);
    }
    ToolbarItems.createRestoreFrontstageLayout = createRestoreFrontstageLayout;
    /** Creates an action item that isolates models in the selection. */
    function createIsolateModelsInSelection(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(SelectionContextItemDef_1.SelectionContextToolDefinitions.isolateModelsInSelectionItemDef, overrides);
    }
    ToolbarItems.createIsolateModelsInSelection = createIsolateModelsInSelection;
    /** Creates an action item that isolates categories in the selection. */
    function createIsolateCategoriesInSelection(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(SelectionContextItemDef_1.SelectionContextToolDefinitions.isolateCategoriesInSelectionItemDef, overrides);
    }
    ToolbarItems.createIsolateCategoriesInSelection = createIsolateCategoriesInSelection;
    /** Creates an action item that runs isolates elements. */
    function createIsolateElements(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(SelectionContextItemDef_1.SelectionContextToolDefinitions.isolateElementsItemDef, overrides);
    }
    ToolbarItems.createIsolateElements = createIsolateElements;
    /** Creates a group item with all isolation tools. */
    function createIsolateSelectionGroup(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarGroupItem)(SelectionContextItemDef_1.SelectionContextToolDefinitions.isolateSelectionToolGroup, overrides);
    }
    ToolbarItems.createIsolateSelectionGroup = createIsolateSelectionGroup;
    /** Creates an action item that hides models in selection. */
    function createHideModelsInSelection(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(SelectionContextItemDef_1.SelectionContextToolDefinitions.hideModelsInSelectionItemDef, overrides);
    }
    ToolbarItems.createHideModelsInSelection = createHideModelsInSelection;
    /** Creates an action item that hides categories in selection. */
    function createHideCategoriesInSelection(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(SelectionContextItemDef_1.SelectionContextToolDefinitions.hideCategoriesInSelectionItemDef, overrides);
    }
    ToolbarItems.createHideCategoriesInSelection = createHideCategoriesInSelection;
    /** Creates an action item that hides selected elements. */
    function createHideElements(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(SelectionContextItemDef_1.SelectionContextToolDefinitions.hideElementsItemDef, overrides);
    }
    ToolbarItems.createHideElements = createHideElements;
    /** Creates a group item with all hide tools. */
    function createHideSectionGroup(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarGroupItem)(SelectionContextItemDef_1.SelectionContextToolDefinitions.hideSectionToolGroup, overrides);
    }
    ToolbarItems.createHideSectionGroup = createHideSectionGroup;
    /** Creates an action item that emphasizes selected elements. */
    function createEmphasizeElements(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(SelectionContextItemDef_1.SelectionContextToolDefinitions.emphasizeElementsItemDef, overrides);
    }
    ToolbarItems.createEmphasizeElements = createEmphasizeElements;
    /** Creates an action item that clears hide, isolate and emphasize visibility modifiers. */
    function createClearHideIsolateEmphasizeElements(overrides) {
        return (0, ToolbarHelper_1.itemDefToToolbarActionItem)(SelectionContextItemDef_1.SelectionContextToolDefinitions.clearHideIsolateEmphasizeElementsItemDef, overrides);
    }
    ToolbarItems.createClearHideIsolateEmphasizeElements = createClearHideIsolateEmphasizeElements;
})(ToolbarItems || (exports.ToolbarItems = ToolbarItems = {}));
//# sourceMappingURL=ToolbarItems.js.map