@itwin/editor-frontend 4.5.0-dev.8 → 4.6.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/LICENSE.md +1 -1
  3. package/README.md +0 -29
  4. package/lib/cjs/CreateElementTool.d.ts +64 -2
  5. package/lib/cjs/CreateElementTool.d.ts.map +1 -1
  6. package/lib/cjs/CreateElementTool.js +65 -4
  7. package/lib/cjs/CreateElementTool.js.map +1 -1
  8. package/lib/cjs/EditTool.d.ts +5 -0
  9. package/lib/cjs/EditTool.d.ts.map +1 -1
  10. package/lib/cjs/EditTool.js +10 -14
  11. package/lib/cjs/EditTool.js.map +1 -1
  12. package/lib/cjs/EditToolIpc.d.ts +1 -5
  13. package/lib/cjs/EditToolIpc.d.ts.map +1 -1
  14. package/lib/cjs/EditToolIpc.js +1 -5
  15. package/lib/cjs/EditToolIpc.js.map +1 -1
  16. package/lib/cjs/TransformElementsTool.d.ts +17 -98
  17. package/lib/cjs/TransformElementsTool.d.ts.map +1 -1
  18. package/lib/cjs/TransformElementsTool.js +15 -412
  19. package/lib/cjs/TransformElementsTool.js.map +1 -1
  20. package/lib/cjs/editor-frontend.d.ts +0 -6
  21. package/lib/cjs/editor-frontend.d.ts.map +1 -1
  22. package/lib/cjs/editor-frontend.js +0 -6
  23. package/lib/cjs/editor-frontend.js.map +1 -1
  24. package/lib/esm/CreateElementTool.d.ts +64 -2
  25. package/lib/esm/CreateElementTool.d.ts.map +1 -1
  26. package/lib/esm/CreateElementTool.js +65 -4
  27. package/lib/esm/CreateElementTool.js.map +1 -1
  28. package/lib/esm/EditTool.d.ts +5 -0
  29. package/lib/esm/EditTool.d.ts.map +1 -1
  30. package/lib/esm/EditTool.js +10 -14
  31. package/lib/esm/EditTool.js.map +1 -1
  32. package/lib/esm/EditToolIpc.d.ts +1 -5
  33. package/lib/esm/EditToolIpc.d.ts.map +1 -1
  34. package/lib/esm/EditToolIpc.js +0 -4
  35. package/lib/esm/EditToolIpc.js.map +1 -1
  36. package/lib/esm/TransformElementsTool.d.ts +17 -98
  37. package/lib/esm/TransformElementsTool.d.ts.map +1 -1
  38. package/lib/esm/TransformElementsTool.js +16 -413
  39. package/lib/esm/TransformElementsTool.js.map +1 -1
  40. package/lib/esm/editor-frontend.d.ts +0 -6
  41. package/lib/esm/editor-frontend.d.ts.map +1 -1
  42. package/lib/esm/editor-frontend.js +0 -6
  43. package/lib/esm/editor-frontend.js.map +1 -1
  44. package/lib/public/locales/en/Editor.json +0 -411
  45. package/package.json +14 -14
  46. package/lib/cjs/DeleteElementsTool.d.ts +0 -14
  47. package/lib/cjs/DeleteElementsTool.d.ts.map +0 -1
  48. package/lib/cjs/DeleteElementsTool.js +0 -42
  49. package/lib/cjs/DeleteElementsTool.js.map +0 -1
  50. package/lib/cjs/ElementGeometryTool.d.ts +0 -148
  51. package/lib/cjs/ElementGeometryTool.d.ts.map +0 -1
  52. package/lib/cjs/ElementGeometryTool.js +0 -705
  53. package/lib/cjs/ElementGeometryTool.js.map +0 -1
  54. package/lib/cjs/ModifyCurveTools.d.ts +0 -140
  55. package/lib/cjs/ModifyCurveTools.d.ts.map +0 -1
  56. package/lib/cjs/ModifyCurveTools.js +0 -777
  57. package/lib/cjs/ModifyCurveTools.js.map +0 -1
  58. package/lib/cjs/SketchTools.d.ts +0 -308
  59. package/lib/cjs/SketchTools.d.ts.map +0 -1
  60. package/lib/cjs/SketchTools.js +0 -1708
  61. package/lib/cjs/SketchTools.js.map +0 -1
  62. package/lib/cjs/SolidModelingTools.d.ts +0 -381
  63. package/lib/cjs/SolidModelingTools.d.ts.map +0 -1
  64. package/lib/cjs/SolidModelingTools.js +0 -1453
  65. package/lib/cjs/SolidModelingTools.js.map +0 -1
  66. package/lib/cjs/SolidPrimitiveTools.d.ts +0 -322
  67. package/lib/cjs/SolidPrimitiveTools.d.ts.map +0 -1
  68. package/lib/cjs/SolidPrimitiveTools.js +0 -1376
  69. package/lib/cjs/SolidPrimitiveTools.js.map +0 -1
  70. package/lib/esm/DeleteElementsTool.d.ts +0 -14
  71. package/lib/esm/DeleteElementsTool.d.ts.map +0 -1
  72. package/lib/esm/DeleteElementsTool.js +0 -39
  73. package/lib/esm/DeleteElementsTool.js.map +0 -1
  74. package/lib/esm/ElementGeometryTool.d.ts +0 -148
  75. package/lib/esm/ElementGeometryTool.d.ts.map +0 -1
  76. package/lib/esm/ElementGeometryTool.js +0 -697
  77. package/lib/esm/ElementGeometryTool.js.map +0 -1
  78. package/lib/esm/ModifyCurveTools.d.ts +0 -140
  79. package/lib/esm/ModifyCurveTools.d.ts.map +0 -1
  80. package/lib/esm/ModifyCurveTools.js +0 -772
  81. package/lib/esm/ModifyCurveTools.js.map +0 -1
  82. package/lib/esm/SketchTools.d.ts +0 -308
  83. package/lib/esm/SketchTools.d.ts.map +0 -1
  84. package/lib/esm/SketchTools.js +0 -1704
  85. package/lib/esm/SketchTools.js.map +0 -1
  86. package/lib/esm/SolidModelingTools.d.ts +0 -381
  87. package/lib/esm/SolidModelingTools.d.ts.map +0 -1
  88. package/lib/esm/SolidModelingTools.js +0 -1445
  89. package/lib/esm/SolidModelingTools.js.map +0 -1
  90. package/lib/esm/SolidPrimitiveTools.d.ts +0 -322
  91. package/lib/esm/SolidPrimitiveTools.d.ts.map +0 -1
  92. package/lib/esm/SolidPrimitiveTools.js +0 -1372
  93. package/lib/esm/SolidPrimitiveTools.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"editor-frontend.d.ts","sourceRoot":"","sources":["../../src/editor-frontend.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAE/B;;GAEG;AAEH;;;GAGG"}
1
+ {"version":3,"file":"editor-frontend.d.ts","sourceRoot":"","sources":["../../src/editor-frontend.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAE/B;;GAEG;AAEH;;;GAGG"}
@@ -3,17 +3,11 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  export * from "./CreateElementTool";
6
- export * from "./DeleteElementsTool";
7
6
  export * from "./EditTool";
8
- export * from "./ElementGeometryTool";
9
7
  export * from "./EditToolIpc";
10
- export * from "./ModifyCurveTools";
11
8
  export * from "./ModifyElementTool";
12
9
  export * from "./ProjectLocation/ProjectExtentsDecoration";
13
10
  export * from "./ProjectLocation/ProjectGeolocation";
14
- export * from "./SketchTools";
15
- export * from "./SolidModelingTools";
16
- export * from "./SolidPrimitiveTools";
17
11
  export * from "./TransformElementsTool";
18
12
  export * from "./UndoRedoTool";
19
13
  /** @docs-package-description
@@ -1 +1 @@
1
- {"version":3,"file":"editor-frontend.js","sourceRoot":"","sources":["../../src/editor-frontend.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAE/B;;GAEG;AAEH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nexport * from \"./CreateElementTool\";\nexport * from \"./DeleteElementsTool\";\nexport * from \"./EditTool\";\nexport * from \"./ElementGeometryTool\";\nexport * from \"./EditToolIpc\";\nexport * from \"./ModifyCurveTools\";\nexport * from \"./ModifyElementTool\";\nexport * from \"./ProjectLocation/ProjectExtentsDecoration\";\nexport * from \"./ProjectLocation/ProjectGeolocation\";\nexport * from \"./SketchTools\";\nexport * from \"./SolidModelingTools\";\nexport * from \"./SolidPrimitiveTools\";\nexport * from \"./TransformElementsTool\";\nexport * from \"./UndoRedoTool\";\n\n/** @docs-package-description\n * The editor-frontend package contains frontend capabilities for editing iModels.\n */\n\n/**\n * @docs-group-description Editing\n * Classes containing functionality for editing iModels on the frontend.\n */\n"]}
1
+ {"version":3,"file":"editor-frontend.js","sourceRoot":"","sources":["../../src/editor-frontend.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAE/B;;GAEG;AAEH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nexport * from \"./CreateElementTool\";\nexport * from \"./EditTool\";\nexport * from \"./EditToolIpc\";\nexport * from \"./ModifyElementTool\";\nexport * from \"./ProjectLocation/ProjectExtentsDecoration\";\nexport * from \"./ProjectLocation/ProjectGeolocation\";\nexport * from \"./TransformElementsTool\";\nexport * from \"./UndoRedoTool\";\n\n/** @docs-package-description\n * The editor-frontend package contains frontend capabilities for editing iModels.\n */\n\n/**\n * @docs-group-description Editing\n * Classes containing functionality for editing iModels on the frontend.\n */\n"]}
@@ -1,416 +1,5 @@
1
1
  {
2
2
  "tools": {
3
- "DeleteElements": {
4
- "keyin": "editor delete elements",
5
- "flyover": "Delete Elements"
6
- },
7
- "MoveElements": {
8
- "keyin": "editor move elements",
9
- "flyover": "Move Elements"
10
- },
11
- "CopyElements": {
12
- "keyin": "editor copy elements",
13
- "flyover": "Copy Elements",
14
- "Label": {
15
- "NumCopies": "Copies"
16
- }
17
- },
18
- "RotateElements": {
19
- "keyin": "editor rotate elements",
20
- "flyover": "Rotate Elements",
21
- "Prompts": {
22
- "IdentifyPoint": "Identify point to rotate about",
23
- "DefineStart": "Define start of rotation",
24
- "DefineAmount": "Define amount of rotation"
25
- },
26
- "Label": {
27
- "Method": "Method",
28
- "About": "About",
29
- "Angle": "Angle"
30
- },
31
- "Method": {
32
- "3Points": "3 Points",
33
- "Angle": "Angle"
34
- },
35
- "About": {
36
- "Point": "Point",
37
- "Origin": "Origin",
38
- "Center": "Center"
39
- }
40
- },
41
- "CreateArc": {
42
- "keyin": "editor create arc",
43
- "flyover": "Create Arc",
44
- "Label": {
45
- "Method": "Method",
46
- "Radius": "Radius",
47
- "Sweep": "Sweep"
48
- },
49
- "Method": {
50
- "CenterStart": "Center, Start",
51
- "StartCenter": "Start, Center",
52
- "StartMidEnd": "Start, Mid, End",
53
- "StartEndMid": "Start, End, Mid"
54
- },
55
- "Prompts": {
56
- "CenterPoint": "Define arc center",
57
- "MidPoint": "Define arc midpoint"
58
- }
59
- },
60
- "CreateBCurve": {
61
- "keyin": "editor create bcurve",
62
- "flyover": "Create B-spline Curve",
63
- "Label": {
64
- "Method": "Method",
65
- "Order": "Order",
66
- "Tangents": "Define Tangents"
67
- },
68
- "Method": {
69
- "ControlPoints": "Control Points",
70
- "ThroughPoints": "Through Points"
71
- },
72
- "Prompts": {
73
- "StartTangent": "Define start tangent",
74
- "EndTangent": "Define end tangent"
75
- }
76
- },
77
- "CreateCircle": {
78
- "keyin": "editor create circle",
79
- "flyover": "Create Circle",
80
- "Label": {
81
- "Method": "Method",
82
- "Radius": "Radius"
83
- },
84
- "Method": {
85
- "Center": "Center",
86
- "Edge": "Edge"
87
- },
88
- "Prompts": {
89
- "CenterPoint": "Define circle center",
90
- "EdgePoint": "Define point on edge"
91
- }
92
- },
93
- "CreateEllipse": {
94
- "keyin": "editor create ellipse",
95
- "flyover": "Create Ellipse",
96
- "Prompts": {
97
- "CenterPoint": "Define ellipse center",
98
- "MajorAxis": "Define major axis",
99
- "MinorAxis": "Define minor axis"
100
- }
101
- },
102
- "CreateLineString": {
103
- "keyin": "editor create linestring",
104
- "flyover": "Create Linestring"
105
- },
106
- "CreateRectangle": {
107
- "keyin": "editor create rectangle",
108
- "flyover": "Create Rectangle",
109
- "Label": {
110
- "CornerRadius": "Corner Radius"
111
- }
112
- },
113
- "CreateSphere": {
114
- "keyin": "editor create sphere",
115
- "flyover": "Create Sphere",
116
- "Label": {
117
- "Radius": "Radius",
118
- "Capped": "Solid"
119
- },
120
- "Prompts": {
121
- "CenterPoint": "Define center",
122
- "RadiusPoint": "Define radius"
123
- }
124
- },
125
- "CreateCylinder": {
126
- "keyin": "editor create cylinder",
127
- "flyover": "Create Cylinder",
128
- "Label": {
129
- "Radius": "Radius",
130
- "Length": "Length",
131
- "Orthogonal": "Orthogonal",
132
- "Capped": "Solid"
133
- },
134
- "Prompts": {
135
- "BasePoint": "Define center of base",
136
- "RadiusPoint": "Define radius",
137
- "LengthPoint": "Define length"
138
- }
139
- },
140
- "CreateCone": {
141
- "keyin": "editor create cone",
142
- "flyover": "Create Cone",
143
- "Label": {
144
- "BaseRadius": "Base Radius",
145
- "TopRadius": "Top Radius",
146
- "Length": "Length",
147
- "Orthogonal": "Orthogonal",
148
- "Capped": "Solid"
149
- },
150
- "Prompts": {
151
- "BasePoint": "Define center of base",
152
- "BaseRadiusPoint": "Define base radius",
153
- "TopRadiusPoint": "Define top radius",
154
- "LengthPoint": "Define length"
155
- }
156
- },
157
- "CreateBox": {
158
- "keyin": "editor create box",
159
- "flyover": "Create Box",
160
- "Label": {
161
- "Length": "Length",
162
- "Width": "Width",
163
- "Height": "Height",
164
- "Orthogonal": "Orthogonal",
165
- "Capped": "Solid"
166
- },
167
- "Prompts": {
168
- "BasePoint": "Define corner of base",
169
- "LengthPoint": "Define length",
170
- "WidthPoint": "Define width",
171
- "HeightPoint": "Define height"
172
- }
173
- },
174
- "CreateTorus": {
175
- "keyin": "editor create torus",
176
- "flyover": "Create Torus",
177
- "Label": {
178
- "PrimaryRadius": "Primary Radius",
179
- "SecondaryRadius": "Secondary Radius",
180
- "Angle": "Angle",
181
- "Capped": "Solid"
182
- },
183
- "Prompts": {
184
- "StartPoint": "Define start",
185
- "CenterPoint": "Define center",
186
- "SecondaryRadiusPoint": "Define secondary radius",
187
- "AnglePoint": "Define angle"
188
- }
189
- },
190
- "OffsetCurve": {
191
- "keyin": "editor offset curve",
192
- "flyover": "Offset planar paths and regions",
193
- "Label": {
194
- "Distance": "Distance",
195
- "MakeCopy": "Make Copy"
196
- },
197
- "Prompts": {
198
- "DefineOffset": "Define offset distance"
199
- }
200
- },
201
- "BreakCurve": {
202
- "keyin": "editor break curve",
203
- "flyover": "Split an open path or open a closed loop",
204
- "Prompts": {
205
- "IdentifyBreak": "Identify break location"
206
- }
207
- },
208
- "ExtendCurve": {
209
- "keyin": "editor extend curve",
210
- "flyover": "Extend or shorten a curve",
211
- "Prompts": {
212
- "IdentifyEnd": "Identify end to modify"
213
- }
214
- },
215
- "ExtrudeCurve": {
216
- "keyin": "editor extrude curve",
217
- "flyover": "Extrude Curve",
218
- "Label": {
219
- "Length": "Length",
220
- "Orthogonal": "Orthogonal",
221
- "Capped": "Solid",
222
- "KeepProfile": "Keep Profile"
223
- },
224
- "Prompts": {
225
- "LengthPoint": "Define length"
226
- }
227
- },
228
- "RevolveCurve": {
229
- "keyin": "editor revolve curve",
230
- "flyover": "Revolve Curve",
231
- "Label": {
232
- "Angle": "Sweep Angle",
233
- "Capped": "Solid",
234
- "KeepProfile": "Keep Profile"
235
- },
236
- "Prompts": {
237
- "AxisPoint": "Define point on axis",
238
- "AxisDirection": "Define axis direction"
239
- }
240
- },
241
- "RegionBoolean": {
242
- "keyin": "editor region boolean",
243
- "flyover": "Perform boolean on selected regions",
244
- "Label": {
245
- "Mode": "Mode",
246
- "KeepOriginal": "Keep Original"
247
- },
248
- "Mode": {
249
- "Unite": "Unite",
250
- "Subtract": "Subtract",
251
- "Intersect": "Intersect"
252
- },
253
- "Error": {
254
- "NonCoplanar": "Regions are non coplanar"
255
- }
256
- },
257
- "UniteSolids": {
258
- "keyin": "editor unite solids",
259
- "flyover": "Unite selected solids"
260
- },
261
- "SubtractSolids": {
262
- "keyin": "editor subtract solids",
263
- "flyover": "Subtract selected solids"
264
- },
265
- "IntersectSolids": {
266
- "keyin": "editor intersect solids",
267
- "flyover": "Intersect selected solids"
268
- },
269
- "SewSheets": {
270
- "keyin": "editor sew sheets",
271
- "flyover": "Sew selected sheets"
272
- },
273
- "ThickenSheets": {
274
- "keyin": "editor thicken sheets",
275
- "flyover": "Thicken selected sheets into solids",
276
- "Label": {
277
- "FrontDistance": "Front Distance",
278
- "BackDistance": "Back Distance"
279
- }
280
- },
281
- "CutSolids": {
282
- "keyin": "editor cut solids",
283
- "flyover": "Cut solids by open path or planar region",
284
- "Label": {
285
- "Depth": "Depth",
286
- "BothDirections": "Both Directions",
287
- "Outside": "Outside"
288
- }
289
- },
290
- "EmbossSolids": {
291
- "keyin": "editor emboss solids",
292
- "flyover": "Emboss to create pad or pocket on solid or sheet"
293
- },
294
- "ImprintSolids": {
295
- "keyin": "editor imprint solids",
296
- "flyover": "Imprint offset edges or another element on a solid",
297
- "Label": {
298
- "Method": "Method",
299
- "Distance": "Distance",
300
- "Extend": "Extend"
301
- },
302
- "Method": {
303
- "Element": "Element",
304
- "Edges": "Edges",
305
- "Points": "Points"
306
- }
307
- },
308
- "SweepAlongPath": {
309
- "keyin": "editor sweep path",
310
- "flyover": "Create solid or sheet by sweeping a profile along a path"
311
- },
312
- "LoftProfiles": {
313
- "keyin": "editor loft profiles",
314
- "flyover": "Create solid or sheet by lofting through a set of profiles"
315
- },
316
- "OffsetFaces": {
317
- "keyin": "editor offset faces",
318
- "flyover": "Offset faces of surfaces and solids",
319
- "Label": {
320
- "AddSmooth": "Add Smooth Faces",
321
- "Distance": "Distance"
322
- }
323
- },
324
- "HollowFaces": {
325
- "keyin": "editor hollow faces",
326
- "flyover": "Hollow solids by offsetting faces",
327
- "Label": {
328
- "ShellThickness": "Shell Thickness",
329
- "FaceThickness": "Face Thickness"
330
- }
331
- },
332
- "SweepFaces": {
333
- "keyin": "editor sweep faces",
334
- "flyover": "Sweep planar curves, surfaces, or faces of solids",
335
- "Label": {
336
- "AddSmooth": "Add Smooth Faces",
337
- "Distance": "Distance"
338
- }
339
- },
340
- "SpinFaces": {
341
- "keyin": "editor spin faces",
342
- "flyover": "Spin planar curves, surfaces, or faces of solids",
343
- "Label": {
344
- "Angle": "Sweep Angle"
345
- }
346
- },
347
- "RoundEdges": {
348
- "keyin": "editor round edges",
349
- "flyover": "Round edges of solids and surfaces",
350
- "Label": {
351
- "Radius": "Radius",
352
- "AddSmooth": "Add Smooth Edges"
353
- }
354
- },
355
- "ChamferEdges": {
356
- "keyin": "editor chamfer edges",
357
- "flyover": "Chamfer edges of solids and surfaces",
358
- "Label": {
359
- "Method": "Method",
360
- "Length": "Length",
361
- "LeftDistance": "Left Distance",
362
- "RightDistance": "Right Distance",
363
- "Angle": "Angle"
364
- },
365
- "Method": {
366
- "Length": "Length",
367
- "Distances": "Distances",
368
- "DistanceAngle": "Distance/Angle",
369
- "AngleDistance": "Angle/Distance"
370
- }
371
- },
372
- "DeleteSubEntities": {
373
- "keyin": "editor delete subentities",
374
- "flyover": "Delete faces and edges of solids and surfaces"
375
- },
376
- "LocateSubEntities": {
377
- "Identify": {
378
- "Face": "Identify face",
379
- "Edge": "Identify edge",
380
- "Vertex": "Identity vertex",
381
- "FaceEdge": "Identify face or edge",
382
- "FaceVertex": "Identify face or vertex",
383
- "EdgeVertex": "Identify edge or vertex",
384
- "FaceEdgeVertex": "Identity face, edge, or vertex"
385
- },
386
- "IdentifyAdditional": {
387
- "Face": "Identify additional faces",
388
- "Edge": "Identify additional edges",
389
- "Vertex": "Identity additional vertices",
390
- "FaceEdge": "Identify additional faces or edges",
391
- "FaceVertex": "Identify additional faces or vertices",
392
- "EdgeVertex": "Identify additional edges or vertices",
393
- "FaceEdgeVertex": "Identity additional faces, edges, or vertices"
394
- },
395
- "Accept": {
396
- "Face": "Accept face",
397
- "Edge": "Accept edge",
398
- "Vertex": "Accept vertex",
399
- "FaceEdge": "Accept face or edge",
400
- "FaceVertex": "Accept face or vertex",
401
- "EdgeVertex": "Accept edge or vertex",
402
- "FaceEdgeVertex": "Accept face, edge, or vertex"
403
- },
404
- "AcceptNext": {
405
- "Face": "Accept next face",
406
- "Edge": "Accept next edge",
407
- "Vertex": "Accept next vertex",
408
- "FaceEdge": "Accept next face or edge",
409
- "FaceVertex": "Accept next face or vertex",
410
- "EdgeVertex": "Accept next edge or vertex",
411
- "FaceEdgeVertex": "Accept next face, edge, or vertex"
412
- }
413
- },
414
3
  "UndoAll": {
415
4
  "keyin": "editor undo all",
416
5
  "flyover": "Undo All"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/editor-frontend",
3
- "version": "4.5.0-dev.8",
3
+ "version": "4.6.0-dev.0",
4
4
  "description": "iTwin.js frontend components",
5
5
  "main": "lib/cjs/editor-frontend.js",
6
6
  "module": "lib/esm/editor-frontend.js",
@@ -23,11 +23,11 @@
23
23
  "url": "http://www.bentley.com"
24
24
  },
25
25
  "peerDependencies": {
26
- "@itwin/appui-abstract": "^4.5.0-dev.8",
27
- "@itwin/core-bentley": "^4.5.0-dev.8",
28
- "@itwin/core-common": "^4.5.0-dev.8",
29
- "@itwin/core-frontend": "^4.5.0-dev.8",
30
- "@itwin/core-geometry": "^4.5.0-dev.8"
26
+ "@itwin/appui-abstract": "^4.6.0-dev.0",
27
+ "@itwin/core-bentley": "^4.6.0-dev.0",
28
+ "@itwin/core-common": "^4.6.0-dev.0",
29
+ "@itwin/core-frontend": "^4.6.0-dev.0",
30
+ "@itwin/core-geometry": "^4.6.0-dev.0"
31
31
  },
32
32
  "//devDependencies": [
33
33
  "NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
@@ -39,20 +39,20 @@
39
39
  "eslint": "^8.44.0",
40
40
  "rimraf": "^3.0.2",
41
41
  "typescript": "~5.0.2",
42
- "@itwin/core-bentley": "4.5.0-dev.8",
43
- "@itwin/certa": "4.5.0-dev.8",
44
- "@itwin/appui-abstract": "4.5.0-dev.8",
45
- "@itwin/core-geometry": "4.5.0-dev.8",
46
- "@itwin/build-tools": "4.5.0-dev.8",
47
- "@itwin/core-common": "4.5.0-dev.8",
48
- "@itwin/core-frontend": "4.5.0-dev.8"
42
+ "@itwin/appui-abstract": "4.6.0-dev.0",
43
+ "@itwin/build-tools": "4.6.0-dev.0",
44
+ "@itwin/certa": "4.6.0-dev.0",
45
+ "@itwin/core-bentley": "4.6.0-dev.0",
46
+ "@itwin/core-common": "4.6.0-dev.0",
47
+ "@itwin/core-frontend": "4.6.0-dev.0",
48
+ "@itwin/core-geometry": "4.6.0-dev.0"
49
49
  },
50
50
  "//dependencies": [
51
51
  "NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API",
52
52
  "NOTE: editor-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"
53
53
  ],
54
54
  "dependencies": {
55
- "@itwin/editor-common": "4.5.0-dev.8"
55
+ "@itwin/editor-common": "4.6.0-dev.0"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "npm run -s copy:locale && npm run -s build:cjs && npm run -s build:esm",
@@ -1,14 +0,0 @@
1
- import { ElementSetTool } from "@itwin/core-frontend";
2
- /** @alpha Delete elements immediately from active selection set or prompt user to identify elements to delete. */
3
- export declare class DeleteElementsTool extends ElementSetTool {
4
- static toolId: string;
5
- static iconSpec: string;
6
- protected get allowSelectionSet(): boolean;
7
- protected get allowGroups(): boolean;
8
- protected get allowDragSelect(): boolean;
9
- protected get controlKeyContinuesSelection(): boolean;
10
- protected get requireAcceptForSelectionSetOperation(): boolean;
11
- processAgendaImmediate(): Promise<void>;
12
- onRestartTool(): Promise<void>;
13
- }
14
- //# sourceMappingURL=DeleteElementsTool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteElementsTool.d.ts","sourceRoot":"","sources":["../../src/DeleteElementsTool.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAA0D,MAAM,sBAAsB,CAAC;AAK9G,kHAAkH;AAClH,qBAAa,kBAAmB,SAAQ,cAAc;IACpD,OAAuB,MAAM,SAAoB;IACjD,OAAuB,QAAQ,SAAiB;IAEhD,cAAuB,iBAAiB,IAAI,OAAO,CAAiB;IACpE,cAAuB,WAAW,IAAI,OAAO,CAAiB;IAC9D,cAAuB,eAAe,IAAI,OAAO,CAAiB;IAClE,cAAuB,4BAA4B,IAAI,OAAO,CAAiB;IAC/E,cAAuB,qCAAqC,IAAI,OAAO,CAAkB;IAEnE,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;IAUhD,aAAa;CAK3B"}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.DeleteElementsTool = void 0;
8
- /** @packageDocumentation
9
- * @module Editing
10
- */
11
- const core_bentley_1 = require("@itwin/core-bentley");
12
- const core_frontend_1 = require("@itwin/core-frontend");
13
- const editor_common_1 = require("@itwin/editor-common");
14
- const EditTool_1 = require("./EditTool");
15
- const EditToolIpc_1 = require("./EditToolIpc");
16
- /** @alpha Delete elements immediately from active selection set or prompt user to identify elements to delete. */
17
- class DeleteElementsTool extends core_frontend_1.ElementSetTool {
18
- get allowSelectionSet() { return true; }
19
- get allowGroups() { return true; }
20
- get allowDragSelect() { return true; }
21
- get controlKeyContinuesSelection() { return true; }
22
- get requireAcceptForSelectionSetOperation() { return false; }
23
- async processAgendaImmediate() {
24
- try {
25
- await EditTool_1.EditTools.startCommand({ commandId: editor_common_1.editorBuiltInCmdIds.cmdBasicManipulation, iModelKey: this.iModel.key });
26
- if (core_bentley_1.IModelStatus.Success === await EditToolIpc_1.basicManipulationIpc.deleteElements(this.agenda.compressIds()))
27
- await this.saveChanges();
28
- }
29
- catch (err) {
30
- core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Error, core_bentley_1.BentleyError.getErrorMessage(err) || "An unknown error occurred."));
31
- }
32
- }
33
- async onRestartTool() {
34
- const tool = new DeleteElementsTool();
35
- if (!await tool.run())
36
- return this.exitTool();
37
- }
38
- }
39
- DeleteElementsTool.toolId = "DeleteElements";
40
- DeleteElementsTool.iconSpec = "icon-delete";
41
- exports.DeleteElementsTool = DeleteElementsTool;
42
- //# sourceMappingURL=DeleteElementsTool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteElementsTool.js","sourceRoot":"","sources":["../../src/DeleteElementsTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,sDAAiE;AACjE,wDAA8G;AAC9G,wDAA2D;AAC3D,yCAAuC;AACvC,+CAAqD;AAErD,kHAAkH;AAClH,MAAa,kBAAmB,SAAQ,8BAAc;IAIpD,IAAuB,iBAAiB,KAAc,OAAO,IAAI,CAAC,CAAC,CAAC;IACpE,IAAuB,WAAW,KAAc,OAAO,IAAI,CAAC,CAAC,CAAC;IAC9D,IAAuB,eAAe,KAAc,OAAO,IAAI,CAAC,CAAC,CAAC;IAClE,IAAuB,4BAA4B,KAAc,OAAO,IAAI,CAAC,CAAC,CAAC;IAC/E,IAAuB,qCAAqC,KAAc,OAAO,KAAK,CAAC,CAAC,CAAC;IAEzE,KAAK,CAAC,sBAAsB;QAC1C,IAAI;YACF,MAAM,oBAAS,CAAC,YAAY,CAAS,EAAE,SAAS,EAAE,mCAAmB,CAAC,oBAAoB,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;YAC1H,IAAI,2BAAY,CAAC,OAAO,KAAK,MAAM,kCAAoB,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;gBAC/F,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;SAC5B;QAAC,OAAO,GAAG,EAAE;YACZ,yBAAS,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,oCAAoB,CAAC,qCAAqB,CAAC,KAAK,EAAE,2BAAY,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,4BAA4B,CAAC,CAAC,CAAC;SACjK;IACH,CAAC;IAEM,KAAK,CAAC,aAAa;QACxB,MAAM,IAAI,GAAG,IAAI,kBAAkB,EAAE,CAAC;QACtC,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,EAAE;YACnB,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC3B,CAAC;;AAvBsB,yBAAM,GAAG,gBAAgB,CAAC;AAC1B,2BAAQ,GAAG,aAAa,CAAC;AAFrC,gDAAkB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/** @packageDocumentation\n * @module Editing\n */\n\nimport { BentleyError, IModelStatus } from \"@itwin/core-bentley\";\nimport { ElementSetTool, IModelApp, NotifyMessageDetails, OutputMessagePriority } from \"@itwin/core-frontend\";\nimport { editorBuiltInCmdIds } from \"@itwin/editor-common\";\nimport { EditTools } from \"./EditTool\";\nimport { basicManipulationIpc } from \"./EditToolIpc\";\n\n/** @alpha Delete elements immediately from active selection set or prompt user to identify elements to delete. */\nexport class DeleteElementsTool extends ElementSetTool {\n public static override toolId = \"DeleteElements\";\n public static override iconSpec = \"icon-delete\";\n\n protected override get allowSelectionSet(): boolean { return true; }\n protected override get allowGroups(): boolean { return true; }\n protected override get allowDragSelect(): boolean { return true; }\n protected override get controlKeyContinuesSelection(): boolean { return true; }\n protected override get requireAcceptForSelectionSetOperation(): boolean { return false; }\n\n public override async processAgendaImmediate(): Promise<void> {\n try {\n await EditTools.startCommand<string>({ commandId: editorBuiltInCmdIds.cmdBasicManipulation, iModelKey: this.iModel.key });\n if (IModelStatus.Success === await basicManipulationIpc.deleteElements(this.agenda.compressIds()))\n await this.saveChanges();\n } catch (err) {\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Error, BentleyError.getErrorMessage(err) || \"An unknown error occurred.\"));\n }\n }\n\n public async onRestartTool() {\n const tool = new DeleteElementsTool();\n if (!await tool.run())\n return this.exitTool();\n }\n}\n"]}