@itwin/rpcinterface-full-stack-tests 5.12.0-dev.6 → 5.12.0-dev.8
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.
- package/lib/dist/bundled-tests.js +261 -48
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -144730,6 +144730,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
144730
144730
|
/* harmony export */ AccuDrawRotateCycleTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateCycleTool),
|
|
144731
144731
|
/* harmony export */ AccuDrawRotateElementTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateElementTool),
|
|
144732
144732
|
/* harmony export */ AccuDrawRotateFrontTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateFrontTool),
|
|
144733
|
+
/* harmony export */ AccuDrawRotatePointsTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotatePointsTool),
|
|
144733
144734
|
/* harmony export */ AccuDrawRotateSideTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateSideTool),
|
|
144734
144735
|
/* harmony export */ AccuDrawRotateTopTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateTopTool),
|
|
144735
144736
|
/* harmony export */ AccuDrawRotateViewTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateViewTool),
|
|
@@ -207109,8 +207110,10 @@ class AccuDrawShortcutInputCollector extends _Tool__WEBPACK_IMPORTED_MODULE_2__.
|
|
|
207109
207110
|
_IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.accuDraw.requestInputFocus(); // re-grab focus when auto-focus tool setting set...
|
|
207110
207111
|
}
|
|
207111
207112
|
async onDataButtonDown(ev) {
|
|
207112
|
-
if (this._impl.doDataButtonDown(ev))
|
|
207113
|
+
if (this._impl.doDataButtonDown(ev)) {
|
|
207114
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.accuDraw.processHints(); // Process pending hints pre-exit so they don't override savedState "ignoreFlags"...
|
|
207113
207115
|
await this.exitTool();
|
|
207116
|
+
}
|
|
207114
207117
|
return _Tool__WEBPACK_IMPORTED_MODULE_2__.EventHandled.No;
|
|
207115
207118
|
}
|
|
207116
207119
|
async onUnsuspend() {
|
|
@@ -207148,8 +207151,10 @@ class AccuDrawShortcutViewTool extends _ViewTool__WEBPACK_IMPORTED_MODULE_3__.Vi
|
|
|
207148
207151
|
_IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.accuDraw.requestInputFocus(); // re-grab focus when auto-focus tool setting set...
|
|
207149
207152
|
}
|
|
207150
207153
|
async onDataButtonDown(ev) {
|
|
207151
|
-
if (this._impl.doDataButtonDown(ev))
|
|
207154
|
+
if (this._impl.doDataButtonDown(ev)) {
|
|
207155
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.accuDraw.processHints(); // Process pending hints pre-exit so they don't override savedState "ignoreFlags"...
|
|
207152
207156
|
await this.exitTool();
|
|
207157
|
+
}
|
|
207153
207158
|
return _Tool__WEBPACK_IMPORTED_MODULE_2__.EventHandled.No;
|
|
207154
207159
|
}
|
|
207155
207160
|
async onUnsuspend() {
|
|
@@ -207196,6 +207201,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
207196
207201
|
/* harmony export */ AccuDrawRotateCycleTool: () => (/* binding */ AccuDrawRotateCycleTool),
|
|
207197
207202
|
/* harmony export */ AccuDrawRotateElementTool: () => (/* binding */ AccuDrawRotateElementTool),
|
|
207198
207203
|
/* harmony export */ AccuDrawRotateFrontTool: () => (/* binding */ AccuDrawRotateFrontTool),
|
|
207204
|
+
/* harmony export */ AccuDrawRotatePointsTool: () => (/* binding */ AccuDrawRotatePointsTool),
|
|
207199
207205
|
/* harmony export */ AccuDrawRotateSideTool: () => (/* binding */ AccuDrawRotateSideTool),
|
|
207200
207206
|
/* harmony export */ AccuDrawRotateTopTool: () => (/* binding */ AccuDrawRotateTopTool),
|
|
207201
207207
|
/* harmony export */ AccuDrawRotateViewTool: () => (/* binding */ AccuDrawRotateViewTool),
|
|
@@ -207221,6 +207227,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
207221
207227
|
/* harmony import */ var _IModelApp__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../IModelApp */ "../../core/frontend/lib/esm/IModelApp.js");
|
|
207222
207228
|
/* harmony import */ var _Tool__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Tool */ "../../core/frontend/lib/esm/tools/Tool.js");
|
|
207223
207229
|
/* harmony import */ var _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AccuDrawShortcutTool */ "../../core/frontend/lib/esm/tools/AccuDrawShortcutTool.js");
|
|
207230
|
+
/* harmony import */ var _common_render_GraphicType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/render/GraphicType */ "../../core/frontend/lib/esm/common/render/GraphicType.js");
|
|
207224
207231
|
/*---------------------------------------------------------------------------------------------
|
|
207225
207232
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
207226
207233
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -207236,6 +207243,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
207236
207243
|
|
|
207237
207244
|
|
|
207238
207245
|
|
|
207246
|
+
|
|
207239
207247
|
// cSpell:ignore dont unlockedz
|
|
207240
207248
|
function normalizedDifference(point1, point2, out) {
|
|
207241
207249
|
return point2.vectorTo(point1).normalizeWithLength(out).mag;
|
|
@@ -207298,15 +207306,13 @@ class AccuDrawShortcuts {
|
|
|
207298
207306
|
}
|
|
207299
207307
|
static updateACSByPoints(acs, vp, points, isDynamics) {
|
|
207300
207308
|
const accudraw = _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw;
|
|
207301
|
-
if (!accudraw.isEnabled)
|
|
207302
|
-
return false;
|
|
207303
207309
|
let accept = false;
|
|
207304
207310
|
const vec = [new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d(), new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d(), new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d()];
|
|
207305
207311
|
acs.setOrigin(points[0]);
|
|
207306
207312
|
switch (points.length) {
|
|
207307
207313
|
case 1:
|
|
207308
207314
|
acs.setRotation(vp.rotation);
|
|
207309
|
-
if (!isDynamics) {
|
|
207315
|
+
if (!isDynamics && accudraw.isEnabled) {
|
|
207310
207316
|
accudraw.published.origin.setFrom(points[0]);
|
|
207311
207317
|
accudraw.published.flags = _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin;
|
|
207312
207318
|
accudraw.flags.fixedOrg = true;
|
|
@@ -207318,7 +207324,7 @@ class AccuDrawShortcuts {
|
|
|
207318
207324
|
break;
|
|
207319
207325
|
}
|
|
207320
207326
|
if (vp.view.is3d()) {
|
|
207321
|
-
if (normalizedCrossProduct(accudraw.axes.y, vec[0], vec[1]) < 0.00001) {
|
|
207327
|
+
if (accudraw.isEnabled && normalizedCrossProduct(accudraw.axes.y, vec[0], vec[1]) < 0.00001) {
|
|
207322
207328
|
vec[2].set(0.0, 0.0, 1.0);
|
|
207323
207329
|
if (normalizedCrossProduct(vec[2], vec[0], vec[1]) < 0.00001) {
|
|
207324
207330
|
vec[2].set(0.0, 1.0, 0.0);
|
|
@@ -207327,7 +207333,7 @@ class AccuDrawShortcuts {
|
|
|
207327
207333
|
}
|
|
207328
207334
|
normalizedCrossProduct(vec[0], vec[1], vec[2]);
|
|
207329
207335
|
acs.setRotation(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createRows(vec[0], vec[1], vec[2]));
|
|
207330
|
-
if (!isDynamics) {
|
|
207336
|
+
if (!isDynamics && accudraw.isEnabled) {
|
|
207331
207337
|
accudraw.published.origin.setFrom(points[0]);
|
|
207332
207338
|
accudraw.published.flags = _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetNormal;
|
|
207333
207339
|
accudraw.published.vector.setFrom(vec[0]);
|
|
@@ -208048,7 +208054,11 @@ class AccuDrawShortcuts {
|
|
|
208048
208054
|
accudraw.unlockAllFields();
|
|
208049
208055
|
}
|
|
208050
208056
|
}
|
|
208051
|
-
/**
|
|
208057
|
+
/**
|
|
208058
|
+
* Immediate tool to toggle AccuDraw's availability for the current session.
|
|
208059
|
+
* @note AccuDraw is enabled by default
|
|
208060
|
+
* @beta
|
|
208061
|
+
*/
|
|
208052
208062
|
class AccuDrawSessionToggleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208053
208063
|
static toolId = "AccuDraw.SessionToggle";
|
|
208054
208064
|
async run() {
|
|
@@ -208056,7 +208066,11 @@ class AccuDrawSessionToggleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool
|
|
|
208056
208066
|
return true;
|
|
208057
208067
|
}
|
|
208058
208068
|
}
|
|
208059
|
-
/**
|
|
208069
|
+
/**
|
|
208070
|
+
* Immediate tool to toggle AccuDraw on/off temporarily for the current interactive tool.
|
|
208071
|
+
* @note Typically used to disable AccuDraw for a single data button.
|
|
208072
|
+
* @beta
|
|
208073
|
+
*/
|
|
208060
208074
|
class AccuDrawSuspendToggleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208061
208075
|
static toolId = "AccuDraw.SuspendToggle";
|
|
208062
208076
|
async run() {
|
|
@@ -208064,7 +208078,11 @@ class AccuDrawSuspendToggleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool
|
|
|
208064
208078
|
return true;
|
|
208065
208079
|
}
|
|
208066
208080
|
}
|
|
208067
|
-
/**
|
|
208081
|
+
/**
|
|
208082
|
+
* Immediate tool to enable AccuDraw and position it at the current AccuSnap or Tentative snap location.
|
|
208083
|
+
* @note When not snapped, AccuDraw is activated at the last data button location when inactive, or moved to the current cursor location when active.
|
|
208084
|
+
* @beta
|
|
208085
|
+
*/
|
|
208068
208086
|
class AccuDrawSetOriginTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208069
208087
|
static toolId = "AccuDraw.SetOrigin";
|
|
208070
208088
|
async run() {
|
|
@@ -208072,7 +208090,11 @@ class AccuDrawSetOriginTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208072
208090
|
return true;
|
|
208073
208091
|
}
|
|
208074
208092
|
}
|
|
208075
|
-
/**
|
|
208093
|
+
/**
|
|
208094
|
+
* Immediate tool to lock the closer of the x or y axis based on the current cursor location.
|
|
208095
|
+
* @note When an axis is locked, points are projected onto the axis line.
|
|
208096
|
+
* @beta
|
|
208097
|
+
*/
|
|
208076
208098
|
class AccuDrawSetLockSmartTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208077
208099
|
static toolId = "AccuDraw.LockSmart";
|
|
208078
208100
|
async run() {
|
|
@@ -208080,7 +208102,10 @@ class AccuDrawSetLockSmartTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208080
208102
|
return true;
|
|
208081
208103
|
}
|
|
208082
208104
|
}
|
|
208083
|
-
/**
|
|
208105
|
+
/**
|
|
208106
|
+
* Immediate tool to toggle the locked state of an indexed axis of the AccuDraw compass.
|
|
208107
|
+
* @beta
|
|
208108
|
+
*/
|
|
208084
208109
|
class AccuDrawSetLockIndexTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208085
208110
|
static toolId = "AccuDraw.LockIndex";
|
|
208086
208111
|
async run() {
|
|
@@ -208088,7 +208113,10 @@ class AccuDrawSetLockIndexTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208088
208113
|
return true;
|
|
208089
208114
|
}
|
|
208090
208115
|
}
|
|
208091
|
-
/**
|
|
208116
|
+
/**
|
|
208117
|
+
* Immediate tool to toggle the locked state of the X text field.
|
|
208118
|
+
* @beta
|
|
208119
|
+
*/
|
|
208092
208120
|
class AccuDrawSetLockXTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208093
208121
|
static toolId = "AccuDraw.LockX";
|
|
208094
208122
|
async run() {
|
|
@@ -208096,7 +208124,10 @@ class AccuDrawSetLockXTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208096
208124
|
return true;
|
|
208097
208125
|
}
|
|
208098
208126
|
}
|
|
208099
|
-
/**
|
|
208127
|
+
/**
|
|
208128
|
+
* Immediate tool to toggle the locked state of the Y text field.
|
|
208129
|
+
* @beta
|
|
208130
|
+
*/
|
|
208100
208131
|
class AccuDrawSetLockYTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208101
208132
|
static toolId = "AccuDraw.LockY";
|
|
208102
208133
|
async run() {
|
|
@@ -208104,7 +208135,10 @@ class AccuDrawSetLockYTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208104
208135
|
return true;
|
|
208105
208136
|
}
|
|
208106
208137
|
}
|
|
208107
|
-
/**
|
|
208138
|
+
/**
|
|
208139
|
+
* Immediate tool to toggle the locked state of the Z text field.
|
|
208140
|
+
* @beta
|
|
208141
|
+
*/
|
|
208108
208142
|
class AccuDrawSetLockZTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208109
208143
|
static toolId = "AccuDraw.LockZ";
|
|
208110
208144
|
async run() {
|
|
@@ -208112,7 +208146,10 @@ class AccuDrawSetLockZTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208112
208146
|
return true;
|
|
208113
208147
|
}
|
|
208114
208148
|
}
|
|
208115
|
-
/**
|
|
208149
|
+
/**
|
|
208150
|
+
* Immediate tool to toggle the locked state of the Distance text field.
|
|
208151
|
+
* @beta
|
|
208152
|
+
*/
|
|
208116
208153
|
class AccuDrawSetLockDistanceTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208117
208154
|
static toolId = "AccuDraw.LockDistance";
|
|
208118
208155
|
async run() {
|
|
@@ -208120,7 +208157,10 @@ class AccuDrawSetLockDistanceTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Too
|
|
|
208120
208157
|
return true;
|
|
208121
208158
|
}
|
|
208122
208159
|
}
|
|
208123
|
-
/**
|
|
208160
|
+
/**
|
|
208161
|
+
* Immediate tool to toggle the locked state of the Angle text field.
|
|
208162
|
+
* @beta
|
|
208163
|
+
*/
|
|
208124
208164
|
class AccuDrawSetLockAngleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208125
208165
|
static toolId = "AccuDraw.LockAngle";
|
|
208126
208166
|
async run() {
|
|
@@ -208128,7 +208168,10 @@ class AccuDrawSetLockAngleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208128
208168
|
return true;
|
|
208129
208169
|
}
|
|
208130
208170
|
}
|
|
208131
|
-
/**
|
|
208171
|
+
/**
|
|
208172
|
+
* Immediate tool to toggle between polar and rectangular compass modes.
|
|
208173
|
+
* @beta
|
|
208174
|
+
*/
|
|
208132
208175
|
class AccuDrawChangeModeTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208133
208176
|
static toolId = "AccuDraw.ChangeMode";
|
|
208134
208177
|
async run() {
|
|
@@ -208136,7 +208179,10 @@ class AccuDrawChangeModeTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208136
208179
|
return true;
|
|
208137
208180
|
}
|
|
208138
208181
|
}
|
|
208139
|
-
/**
|
|
208182
|
+
/**
|
|
208183
|
+
* Immediate tool to cycle between XY, XZ, and YZ planes for the current AccuDraw rotation.
|
|
208184
|
+
* @beta
|
|
208185
|
+
*/
|
|
208140
208186
|
class AccuDrawRotateCycleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208141
208187
|
static toolId = "AccuDraw.RotateCycle";
|
|
208142
208188
|
async run() {
|
|
@@ -208144,7 +208190,11 @@ class AccuDrawRotateCycleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208144
208190
|
return true;
|
|
208145
208191
|
}
|
|
208146
208192
|
}
|
|
208147
|
-
/**
|
|
208193
|
+
/**
|
|
208194
|
+
* Immediate tool to set the AccuDraw rotation to a standard Top view.
|
|
208195
|
+
* @note When IModelApp.toolAdmin.acsContextLock is true, rotation is set relative to the view's ACS.
|
|
208196
|
+
* @beta
|
|
208197
|
+
*/
|
|
208148
208198
|
class AccuDrawRotateTopTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208149
208199
|
static toolId = "AccuDraw.RotateTop";
|
|
208150
208200
|
async run() {
|
|
@@ -208152,7 +208202,11 @@ class AccuDrawRotateTopTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208152
208202
|
return true;
|
|
208153
208203
|
}
|
|
208154
208204
|
}
|
|
208155
|
-
/**
|
|
208205
|
+
/**
|
|
208206
|
+
* Immediate tool to set the AccuDraw rotation to a standard Front view.
|
|
208207
|
+
* @note When IModelApp.toolAdmin.acsContextLock is true, rotation is set relative to the view's ACS.
|
|
208208
|
+
* @beta
|
|
208209
|
+
*/
|
|
208156
208210
|
class AccuDrawRotateFrontTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208157
208211
|
static toolId = "AccuDraw.RotateFront";
|
|
208158
208212
|
async run() {
|
|
@@ -208160,7 +208214,11 @@ class AccuDrawRotateFrontTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208160
208214
|
return true;
|
|
208161
208215
|
}
|
|
208162
208216
|
}
|
|
208163
|
-
/**
|
|
208217
|
+
/**
|
|
208218
|
+
* Immediate tool to set the AccuDraw rotation to a standard Side view.
|
|
208219
|
+
* @note When IModelApp.toolAdmin.acsContextLock is true, rotation is set relative to the view's ACS.
|
|
208220
|
+
* @beta
|
|
208221
|
+
*/
|
|
208164
208222
|
class AccuDrawRotateSideTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208165
208223
|
static toolId = "AccuDraw.RotateSide";
|
|
208166
208224
|
async run() {
|
|
@@ -208168,7 +208226,10 @@ class AccuDrawRotateSideTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208168
208226
|
return true;
|
|
208169
208227
|
}
|
|
208170
208228
|
}
|
|
208171
|
-
/**
|
|
208229
|
+
/**
|
|
208230
|
+
* Immediate tool to set the AccuDraw rotation to match the rotation of the current view.
|
|
208231
|
+
* @beta
|
|
208232
|
+
*/
|
|
208172
208233
|
class AccuDrawRotateViewTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208173
208234
|
static toolId = "AccuDraw.RotateView";
|
|
208174
208235
|
async run() {
|
|
@@ -208176,7 +208237,10 @@ class AccuDrawRotateViewTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
208176
208237
|
return true;
|
|
208177
208238
|
}
|
|
208178
208239
|
}
|
|
208179
|
-
/**
|
|
208240
|
+
/**
|
|
208241
|
+
* Immediate tool to set the AccuDraw rotation to be a 90 degree rotation about the current x axis.
|
|
208242
|
+
* @beta
|
|
208243
|
+
*/
|
|
208180
208244
|
class AccuDrawRotate90AboutXTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208181
208245
|
static toolId = "AccuDraw.Rotate90AboutX";
|
|
208182
208246
|
async run() {
|
|
@@ -208184,7 +208248,10 @@ class AccuDrawRotate90AboutXTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool
|
|
|
208184
208248
|
return true;
|
|
208185
208249
|
}
|
|
208186
208250
|
}
|
|
208187
|
-
/**
|
|
208251
|
+
/**
|
|
208252
|
+
* Immediate tool to set the AccuDraw rotation to be a 90 degree rotation about the current y axis.
|
|
208253
|
+
* @beta
|
|
208254
|
+
*/
|
|
208188
208255
|
class AccuDrawRotate90AboutYTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208189
208256
|
static toolId = "AccuDraw.Rotate90AboutY";
|
|
208190
208257
|
async run() {
|
|
@@ -208192,7 +208259,10 @@ class AccuDrawRotate90AboutYTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool
|
|
|
208192
208259
|
return true;
|
|
208193
208260
|
}
|
|
208194
208261
|
}
|
|
208195
|
-
/**
|
|
208262
|
+
/**
|
|
208263
|
+
* Immediate tool to set the AccuDraw rotation to be a 90 degree rotation about the current z axis.
|
|
208264
|
+
* @beta
|
|
208265
|
+
*/
|
|
208196
208266
|
class AccuDrawRotate90AboutZTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
208197
208267
|
static toolId = "AccuDraw.Rotate90AboutZ";
|
|
208198
208268
|
async run() {
|
|
@@ -208238,7 +208308,11 @@ class RotateAxesImplementation extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_M
|
|
|
208238
208308
|
return true;
|
|
208239
208309
|
}
|
|
208240
208310
|
}
|
|
208241
|
-
/**
|
|
208311
|
+
/**
|
|
208312
|
+
* Interactive tool to set the AccuDraw rotation by rotating about the current z axis to a point on the x axis.
|
|
208313
|
+
* @note When AccuSnap or Tentative snap is active, the snap point is immediately used to define the x axis and not further input is required.
|
|
208314
|
+
* @beta
|
|
208315
|
+
*/
|
|
208242
208316
|
class AccuDrawRotateAxesTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutTool {
|
|
208243
208317
|
aboutCurrentZ;
|
|
208244
208318
|
static toolId = "AccuDraw.RotateAxes";
|
|
@@ -208303,7 +208377,10 @@ class RotateElementImplementation extends _AccuDrawShortcutTool__WEBPACK_IMPORTE
|
|
|
208303
208377
|
return true;
|
|
208304
208378
|
}
|
|
208305
208379
|
}
|
|
208306
|
-
/**
|
|
208380
|
+
/**
|
|
208381
|
+
* Interactive tool to set the AccuDraw rotation using the snapped to geometry under the cursor.
|
|
208382
|
+
* @beta
|
|
208383
|
+
*/
|
|
208307
208384
|
class AccuDrawRotateElementTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutTool {
|
|
208308
208385
|
static toolId = "AccuDraw.RotateElement";
|
|
208309
208386
|
/** @internal */
|
|
@@ -208312,6 +208389,124 @@ class AccuDrawRotateElementTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_
|
|
|
208312
208389
|
}
|
|
208313
208390
|
}
|
|
208314
208391
|
/** @internal */
|
|
208392
|
+
class RotatePointsImplementation extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutImplementation {
|
|
208393
|
+
_points = [];
|
|
208394
|
+
_origin = _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.isActive ? _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.getPoint().clone() : undefined;
|
|
208395
|
+
_moveOrigin = !_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.isActive || _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.isActive; // Preserve current origin if AccuDraw already active and not tentative snap...
|
|
208396
|
+
_lastPoint;
|
|
208397
|
+
onProvideToolAssistance() {
|
|
208398
|
+
switch (this._points.length) {
|
|
208399
|
+
case 0:
|
|
208400
|
+
_Tool__WEBPACK_IMPORTED_MODULE_6__.CoreTools.outputPromptByKey("AccuDraw.RotatePoints.Prompts.FirstPoint");
|
|
208401
|
+
break;
|
|
208402
|
+
case 1:
|
|
208403
|
+
_Tool__WEBPACK_IMPORTED_MODULE_6__.CoreTools.outputPromptByKey("AccuDraw.RotatePoints.Prompts.SecondPoint");
|
|
208404
|
+
break;
|
|
208405
|
+
default:
|
|
208406
|
+
_Tool__WEBPACK_IMPORTED_MODULE_6__.CoreTools.outputPromptByKey("AccuDraw.RotatePoints.Prompts.NextPoint");
|
|
208407
|
+
break;
|
|
208408
|
+
}
|
|
208409
|
+
}
|
|
208410
|
+
onInitialize() {
|
|
208411
|
+
if (undefined === this._origin)
|
|
208412
|
+
return;
|
|
208413
|
+
this._points.push(this._origin);
|
|
208414
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.clear(true); // Necessary when installed as an InputCollector...
|
|
208415
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.activate();
|
|
208416
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.FixedOrigin, this._origin);
|
|
208417
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.refreshDecorationsAndDynamics();
|
|
208418
|
+
}
|
|
208419
|
+
onComplete() {
|
|
208420
|
+
let ignoreFlags = _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetRMatrix | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.Disable; // If AccuDraw wasn't active when the shortcut started, let it remain active for suspended tool when shortcut completes...
|
|
208421
|
+
if (this._moveOrigin)
|
|
208422
|
+
ignoreFlags |= _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin;
|
|
208423
|
+
return ignoreFlags;
|
|
208424
|
+
}
|
|
208425
|
+
doManipulation(ev, isMotion) {
|
|
208426
|
+
if (!ev || !ev.viewport)
|
|
208427
|
+
return false;
|
|
208428
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.viewManager.invalidateDecorationsAllViews();
|
|
208429
|
+
if (isMotion) {
|
|
208430
|
+
this._lastPoint = ev.point.clone();
|
|
208431
|
+
return false;
|
|
208432
|
+
}
|
|
208433
|
+
const accuDraw = _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw;
|
|
208434
|
+
accuDraw.activate();
|
|
208435
|
+
switch (this._points.length) {
|
|
208436
|
+
case 0: {
|
|
208437
|
+
this._points.push(ev.point.clone());
|
|
208438
|
+
accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.FixedOrigin, this._points[0]);
|
|
208439
|
+
break;
|
|
208440
|
+
}
|
|
208441
|
+
case 1: {
|
|
208442
|
+
const xVec = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createNormalizedStartEnd(this._points[0], ev.point);
|
|
208443
|
+
if (undefined === xVec)
|
|
208444
|
+
return false;
|
|
208445
|
+
if (!ev.viewport.view.is3d() || !ev.viewport.view.allow3dManipulations()) {
|
|
208446
|
+
accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetXAxis, this._points[0], xVec);
|
|
208447
|
+
return true; // Complete
|
|
208448
|
+
}
|
|
208449
|
+
this._points.push(ev.point.clone());
|
|
208450
|
+
accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.FixedOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetNormal, this._points[0], xVec);
|
|
208451
|
+
break;
|
|
208452
|
+
}
|
|
208453
|
+
case 2: {
|
|
208454
|
+
const xVec = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createNormalizedStartEnd(this._points[0], this._points[1]);
|
|
208455
|
+
if (undefined === xVec)
|
|
208456
|
+
return false;
|
|
208457
|
+
const yVec = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createNormalizedStartEnd(this._points[0], ev.point);
|
|
208458
|
+
if (undefined === yVec)
|
|
208459
|
+
return false;
|
|
208460
|
+
const matrix = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createRigidFromColumns(xVec, yVec, _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.AxisOrder.XYZ);
|
|
208461
|
+
if (undefined === matrix)
|
|
208462
|
+
return false;
|
|
208463
|
+
const invMatrix = matrix.inverse();
|
|
208464
|
+
if (undefined === invMatrix)
|
|
208465
|
+
return false;
|
|
208466
|
+
accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetRMatrix, this._points[0], invMatrix);
|
|
208467
|
+
return true; // Complete
|
|
208468
|
+
}
|
|
208469
|
+
}
|
|
208470
|
+
this.onProvideToolAssistance();
|
|
208471
|
+
return false;
|
|
208472
|
+
}
|
|
208473
|
+
doDecorate(context) {
|
|
208474
|
+
if (0 === this._points.length)
|
|
208475
|
+
return;
|
|
208476
|
+
const currentPoint = this._lastPoint;
|
|
208477
|
+
if (undefined === currentPoint)
|
|
208478
|
+
return;
|
|
208479
|
+
if (2 === this._points.length) {
|
|
208480
|
+
const xVec = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createNormalizedStartEnd(this._points[0], this._points[1]);
|
|
208481
|
+
if (undefined === xVec)
|
|
208482
|
+
return;
|
|
208483
|
+
const plane = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Plane3dByOriginAndUnitNormal.create(this._points[0], xVec);
|
|
208484
|
+
if (undefined === plane)
|
|
208485
|
+
return;
|
|
208486
|
+
plane.projectPointToPlane(currentPoint, currentPoint);
|
|
208487
|
+
}
|
|
208488
|
+
const tmpPoints = this._points.slice(0, 1);
|
|
208489
|
+
tmpPoints.push(currentPoint);
|
|
208490
|
+
const vp = context.viewport;
|
|
208491
|
+
const color = vp.getContrastToBackgroundColor();
|
|
208492
|
+
const builder = context.createGraphicBuilder(_common_render_GraphicType__WEBPACK_IMPORTED_MODULE_8__.GraphicType.WorldOverlay);
|
|
208493
|
+
builder.setSymbology(color, color, 2);
|
|
208494
|
+
builder.addLineString(tmpPoints);
|
|
208495
|
+
context.addDecorationFromBuilder(builder);
|
|
208496
|
+
}
|
|
208497
|
+
}
|
|
208498
|
+
/**
|
|
208499
|
+
* Interactive tool to set the AccuDraw rotation by 3 points: x axis origin, x axis direction, and y axis direction.
|
|
208500
|
+
* @beta
|
|
208501
|
+
*/
|
|
208502
|
+
class AccuDrawRotatePointsTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutTool {
|
|
208503
|
+
static toolId = "AccuDraw.RotatePoints";
|
|
208504
|
+
/** @internal */
|
|
208505
|
+
createImplementation() {
|
|
208506
|
+
return new RotatePointsImplementation();
|
|
208507
|
+
}
|
|
208508
|
+
}
|
|
208509
|
+
/** @internal */
|
|
208315
208510
|
class DefineACSByElementImplementation extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutImplementation {
|
|
208316
208511
|
_origin = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.create();
|
|
208317
208512
|
_rMatrix = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createIdentity();
|
|
@@ -208354,7 +208549,10 @@ class DefineACSByElementImplementation extends _AccuDrawShortcutTool__WEBPACK_IM
|
|
|
208354
208549
|
this._acs.display(context, _AuxCoordSys__WEBPACK_IMPORTED_MODULE_4__.ACSDisplayOptions.Active | _AuxCoordSys__WEBPACK_IMPORTED_MODULE_4__.ACSDisplayOptions.Dynamics);
|
|
208355
208550
|
}
|
|
208356
208551
|
}
|
|
208357
|
-
/**
|
|
208552
|
+
/**
|
|
208553
|
+
* Interactive tool to set the view's ACS rotation by 3 points: x axis origin, x axis direction, and y axis direction/
|
|
208554
|
+
* @beta
|
|
208555
|
+
*/
|
|
208358
208556
|
class DefineACSByElementTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutTool {
|
|
208359
208557
|
static toolId = "AccuDraw.DefineACSByElement";
|
|
208360
208558
|
/** @internal */
|
|
@@ -208367,6 +208565,7 @@ class DefineACSByPointsImplementation extends _AccuDrawShortcutTool__WEBPACK_IMP
|
|
|
208367
208565
|
_points = [];
|
|
208368
208566
|
_acs;
|
|
208369
208567
|
_origin = _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.isActive ? _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.getPoint().clone() : undefined;
|
|
208568
|
+
_lastPoint;
|
|
208370
208569
|
onProvideToolAssistance() {
|
|
208371
208570
|
switch (this._points.length) {
|
|
208372
208571
|
case 0:
|
|
@@ -208383,16 +208582,20 @@ class DefineACSByPointsImplementation extends _AccuDrawShortcutTool__WEBPACK_IMP
|
|
|
208383
208582
|
onInitialize() {
|
|
208384
208583
|
if (undefined === this._origin)
|
|
208385
208584
|
return;
|
|
208386
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.FixedOrigin, this._origin);
|
|
208387
208585
|
this._points.push(this._origin);
|
|
208388
208586
|
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.clear(true); // Necessary when installed as an InputCollector...
|
|
208587
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.activate();
|
|
208588
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.FixedOrigin, this._origin);
|
|
208589
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.refreshDecorationsAndDynamics();
|
|
208389
208590
|
}
|
|
208390
208591
|
doManipulation(ev, isMotion) {
|
|
208391
208592
|
if (!ev || !ev.viewport)
|
|
208392
208593
|
return false;
|
|
208393
208594
|
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.viewManager.invalidateDecorationsAllViews();
|
|
208394
|
-
if (isMotion)
|
|
208595
|
+
if (isMotion) {
|
|
208596
|
+
this._lastPoint = ev.point.clone();
|
|
208395
208597
|
return false;
|
|
208598
|
+
}
|
|
208396
208599
|
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.activate();
|
|
208397
208600
|
this._points.push(ev.point.clone());
|
|
208398
208601
|
const vp = ev.viewport;
|
|
@@ -208407,11 +208610,11 @@ class DefineACSByPointsImplementation extends _AccuDrawShortcutTool__WEBPACK_IMP
|
|
|
208407
208610
|
return false;
|
|
208408
208611
|
}
|
|
208409
208612
|
doDecorate(context) {
|
|
208613
|
+
if (undefined === this._lastPoint)
|
|
208614
|
+
return;
|
|
208410
208615
|
const tmpPoints = [];
|
|
208411
208616
|
this._points.forEach((pt) => tmpPoints.push(pt));
|
|
208412
|
-
|
|
208413
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.toolAdmin.fillEventFromCursorLocation(ev);
|
|
208414
|
-
tmpPoints.push(ev.point);
|
|
208617
|
+
tmpPoints.push(this._lastPoint);
|
|
208415
208618
|
const vp = context.viewport;
|
|
208416
208619
|
if (!this._acs)
|
|
208417
208620
|
this._acs = vp.view.auxiliaryCoordinateSystem.clone();
|
|
@@ -208419,7 +208622,10 @@ class DefineACSByPointsImplementation extends _AccuDrawShortcutTool__WEBPACK_IMP
|
|
|
208419
208622
|
this._acs.display(context, _AuxCoordSys__WEBPACK_IMPORTED_MODULE_4__.ACSDisplayOptions.Active | _AuxCoordSys__WEBPACK_IMPORTED_MODULE_4__.ACSDisplayOptions.Dynamics);
|
|
208420
208623
|
}
|
|
208421
208624
|
}
|
|
208422
|
-
/**
|
|
208625
|
+
/**
|
|
208626
|
+
* Interactive tool to set the view's ACS rotation by 3 points: x axis origin, x axis direction, and y axis direction.
|
|
208627
|
+
* @beta
|
|
208628
|
+
*/
|
|
208423
208629
|
class DefineACSByPointsTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutTool {
|
|
208424
208630
|
static toolId = "AccuDraw.DefineACSByPoints";
|
|
208425
208631
|
/** @internal */
|
|
@@ -209770,8 +209976,8 @@ class ViewClipByPlaneTool extends ViewClipTool {
|
|
|
209770
209976
|
class ViewClipByShapeTool extends ViewClipTool {
|
|
209771
209977
|
static toolId = "ViewClip.ByShape";
|
|
209772
209978
|
static iconSpec = "icon-section-shape";
|
|
209773
|
-
/** @internal */
|
|
209774
209979
|
_orientationValue = { value: _AccuDraw__WEBPACK_IMPORTED_MODULE_3__.ContextRotationId.Top };
|
|
209980
|
+
_lastMotion;
|
|
209775
209981
|
/** @internal */
|
|
209776
209982
|
_points = [];
|
|
209777
209983
|
/** @internal */
|
|
@@ -209905,9 +210111,8 @@ class ViewClipByShapeTool extends ViewClipTool {
|
|
|
209905
210111
|
decorate(context) {
|
|
209906
210112
|
if (context.viewport !== this.targetView)
|
|
209907
210113
|
return;
|
|
209908
|
-
const ev =
|
|
209909
|
-
|
|
209910
|
-
if (undefined === ev.viewport)
|
|
210114
|
+
const ev = this._lastMotion;
|
|
210115
|
+
if (undefined === ev?.viewport)
|
|
209911
210116
|
return;
|
|
209912
210117
|
const points = this.getClipPoints(ev);
|
|
209913
210118
|
if (points.length < 2)
|
|
@@ -209928,6 +210133,7 @@ class ViewClipByShapeTool extends ViewClipTool {
|
|
|
209928
210133
|
}
|
|
209929
210134
|
/** @internal */
|
|
209930
210135
|
async onMouseMotion(ev) {
|
|
210136
|
+
this._lastMotion = ev;
|
|
209931
210137
|
if (this._points.length > 0 && undefined !== ev.viewport)
|
|
209932
210138
|
ev.viewport.invalidateDecorations();
|
|
209933
210139
|
}
|
|
@@ -209977,6 +210183,7 @@ class ViewClipByShapeTool extends ViewClipTool {
|
|
|
209977
210183
|
class ViewClipByRangeTool extends ViewClipTool {
|
|
209978
210184
|
static toolId = "ViewClip.ByRange";
|
|
209979
210185
|
static iconSpec = "icon-section-range";
|
|
210186
|
+
_lastMotion;
|
|
209980
210187
|
/** @internal */
|
|
209981
210188
|
_corner;
|
|
209982
210189
|
/** @internal */
|
|
@@ -210019,9 +210226,8 @@ class ViewClipByRangeTool extends ViewClipTool {
|
|
|
210019
210226
|
decorate(context) {
|
|
210020
210227
|
if (context.viewport !== this.targetView || undefined === this._corner)
|
|
210021
210228
|
return;
|
|
210022
|
-
const ev =
|
|
210023
|
-
|
|
210024
|
-
if (undefined === ev.viewport)
|
|
210229
|
+
const ev = this._lastMotion;
|
|
210230
|
+
if (undefined === ev?.viewport)
|
|
210025
210231
|
return;
|
|
210026
210232
|
const range = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.create();
|
|
210027
210233
|
const transform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createIdentity();
|
|
@@ -210040,6 +210246,7 @@ class ViewClipByRangeTool extends ViewClipTool {
|
|
|
210040
210246
|
}
|
|
210041
210247
|
/** @internal */
|
|
210042
210248
|
async onMouseMotion(ev) {
|
|
210249
|
+
this._lastMotion = ev;
|
|
210043
210250
|
if (undefined !== this._corner && undefined !== ev.viewport)
|
|
210044
210251
|
ev.viewport.invalidateDecorations();
|
|
210045
210252
|
}
|
|
@@ -348807,7 +349014,7 @@ class TestContext {
|
|
|
348807
349014
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
348808
349015
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
348809
349016
|
await core_frontend_1.NoRenderApp.startup({
|
|
348810
|
-
applicationVersion: "5.12.0-dev.
|
|
349017
|
+
applicationVersion: "5.12.0-dev.8",
|
|
348811
349018
|
applicationId: this.settings.gprid,
|
|
348812
349019
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
348813
349020
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -357192,13 +357399,19 @@ function traverseContentItemFieldValue(visitor, fieldHierarchy, mergedFieldNames
|
|
|
357192
357399
|
if (rawValue !== undefined) {
|
|
357193
357400
|
if (valueType.valueFormat === TypeDescription_js_1.PropertyValueFormat.Array) {
|
|
357194
357401
|
(0, core_bentley_1.assert)(Value_js_1.Value.isArray(rawValue));
|
|
357195
|
-
|
|
357196
|
-
|
|
357402
|
+
// When content is retrieved with formatting omitted, display values are not provided. Synthesize an array
|
|
357403
|
+
// of matching length so array items can still be traversed.
|
|
357404
|
+
const arrayDisplayValues = displayValue === undefined ? rawValue.map(() => undefined) : displayValue;
|
|
357405
|
+
(0, core_bentley_1.assert)(Value_js_1.DisplayValue.isArray(arrayDisplayValues));
|
|
357406
|
+
return traverseContentItemArrayFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, arrayDisplayValues);
|
|
357197
357407
|
}
|
|
357198
357408
|
if (valueType.valueFormat === TypeDescription_js_1.PropertyValueFormat.Struct) {
|
|
357199
357409
|
(0, core_bentley_1.assert)(Value_js_1.Value.isMap(rawValue));
|
|
357200
|
-
|
|
357201
|
-
|
|
357410
|
+
// When content is retrieved with formatting omitted, display values are not provided. Use an empty map so
|
|
357411
|
+
// struct members can still be traversed.
|
|
357412
|
+
const structDisplayValues = displayValue === undefined ? {} : displayValue;
|
|
357413
|
+
(0, core_bentley_1.assert)(Value_js_1.DisplayValue.isMap(structDisplayValues));
|
|
357414
|
+
return traverseContentItemStructFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, structDisplayValues);
|
|
357202
357415
|
}
|
|
357203
357416
|
}
|
|
357204
357417
|
traverseContentItemPrimitiveFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);
|
|
@@ -375758,7 +375971,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
375758
375971
|
/***/ ((module) => {
|
|
375759
375972
|
|
|
375760
375973
|
"use strict";
|
|
375761
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.12.0-dev.
|
|
375974
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.12.0-dev.8","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers && npm run -s copy:draco","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts && npm run -s extract","extract":"betools extract --fileExt=ts --extractFrom=./src/test/example-code --recursive --out=../../generated-docs/extract","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@bentley/aec-units-schema":"^1.0.3","@bentley/formats-schema":"^1.0.0","@bentley/units-schema":"^1.0.10","@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@types/node":"~20.17.0","@types/sinon":"^17.0.2","@vitest/browser-playwright":"^4.1.8","@vitest/coverage-v8":"^4.1.8","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.5.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","vitest":"^4.1.8","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"~4.3.4","@loaders.gl/draco":"~4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
375762
375975
|
|
|
375763
375976
|
/***/ }),
|
|
375764
375977
|
|