-
Notifications
You must be signed in to change notification settings - Fork 2
/
AccuDrawCommandItems.ts
106 lines (87 loc) · 2.97 KB
/
AccuDrawCommandItems.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module AccuDraw
*/
import {
AccuDrawChangeModeTool,
AccuDrawRotateAxesTool,
AccuDrawRotateCycleTool,
AccuDrawRotateElementTool,
AccuDrawRotateFrontTool,
AccuDrawRotateSideTool,
AccuDrawRotateTopTool,
AccuDrawRotateViewTool,
AccuDrawSetLockAngleTool,
AccuDrawSetLockDistanceTool,
AccuDrawSetLockSmartTool,
AccuDrawSetLockXTool,
AccuDrawSetLockYTool,
AccuDrawSetLockZTool,
AccuDrawSetOriginTool,
DefineACSByPointsTool,
} from "@itwin/core-frontend";
import { ToolItemDef } from "../shared/ToolItemDef";
import { BumpToolSetting, FocusToolSettings } from "../tools/ToolSettingsTools";
/** AccuDraw Command Items - useful in Keyboard Shortcuts
* @beta
*/
// istanbul ignore next
export class AccuDrawCommandItems {
public static get lockSmart() {
return ToolItemDef.getItemDefForTool(AccuDrawSetLockSmartTool);
}
public static get setOrigin() {
return ToolItemDef.getItemDefForTool(AccuDrawSetOriginTool);
}
public static get lockX() {
return ToolItemDef.getItemDefForTool(AccuDrawSetLockXTool);
}
public static get lockY() {
return ToolItemDef.getItemDefForTool(AccuDrawSetLockYTool);
}
public static get lockZ() {
return ToolItemDef.getItemDefForTool(AccuDrawSetLockZTool);
}
public static get lockAngle() {
return ToolItemDef.getItemDefForTool(AccuDrawSetLockAngleTool);
}
public static get lockDistance() {
return ToolItemDef.getItemDefForTool(AccuDrawSetLockDistanceTool);
}
public static get changeCompassMode() {
return ToolItemDef.getItemDefForTool(AccuDrawChangeModeTool);
}
public static get rotateTop() {
return ToolItemDef.getItemDefForTool(AccuDrawRotateTopTool);
}
public static get rotateFront() {
return ToolItemDef.getItemDefForTool(AccuDrawRotateFrontTool);
}
public static get rotateSide() {
return ToolItemDef.getItemDefForTool(AccuDrawRotateSideTool);
}
public static get rotateView() {
return ToolItemDef.getItemDefForTool(AccuDrawRotateViewTool);
}
public static get rotateCycle() {
return ToolItemDef.getItemDefForTool(AccuDrawRotateCycleTool);
}
public static get rotateAxes() {
return ToolItemDef.getItemDefForTool(AccuDrawRotateAxesTool);
}
public static get rotateToElement() {
return ToolItemDef.getItemDefForTool(AccuDrawRotateElementTool);
}
public static get defineACSByPoints() {
return ToolItemDef.getItemDefForTool(DefineACSByPointsTool);
}
public static get bumpToolSetting() {
return ToolItemDef.getItemDefForTool(BumpToolSetting);
}
public static get focusToolSetting() {
return ToolItemDef.getItemDefForTool(FocusToolSettings);
}
}