@itwin/rpcinterface-full-stack-tests 4.0.0-dev.61 → 4.0.0-dev.63
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/_d48c.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +122 -54
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/object-storage.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_5_0_node_modules_itwin_obj-e3e81d.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_1_node_modules_loaders_gl_draco_di-d3af41.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3.bundled-tests.js.map +1 -1
- package/package.json +17 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\7\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.3.1\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -37390,11 +37390,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37390
37390
|
/* harmony export */ "Tracing": () => (/* binding */ Tracing)
|
|
37391
37391
|
/* harmony export */ });
|
|
37392
37392
|
/* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Logger */ "../../core/bentley/lib/esm/Logger.js");
|
|
37393
|
+
/*---------------------------------------------------------------------------------------------
|
|
37394
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
37395
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
37396
|
+
*--------------------------------------------------------------------------------------------*/
|
|
37397
|
+
/** @packageDocumentation
|
|
37398
|
+
* @module Logging
|
|
37399
|
+
*/
|
|
37393
37400
|
|
|
37394
37401
|
// re-export so that consumers can construct full SpanOptions object without external dependencies
|
|
37395
37402
|
/**
|
|
37396
|
-
* Mirrors the SpanKind enum from [@opentelemetry/api](https://open-telemetry.github.io/opentelemetry-js
|
|
37397
|
-
* @
|
|
37403
|
+
* Mirrors the SpanKind enum from [@opentelemetry/api](https://open-telemetry.github.io/opentelemetry-js/enums/_opentelemetry_api.SpanKind.html)
|
|
37404
|
+
* @public
|
|
37398
37405
|
*/
|
|
37399
37406
|
var SpanKind;
|
|
37400
37407
|
(function (SpanKind) {
|
|
@@ -37452,7 +37459,7 @@ function flattenObject(obj) {
|
|
|
37452
37459
|
}
|
|
37453
37460
|
/**
|
|
37454
37461
|
* Enables OpenTelemetry tracing in addition to traditional logging.
|
|
37455
|
-
* @
|
|
37462
|
+
* @public
|
|
37456
37463
|
*/
|
|
37457
37464
|
class Tracing {
|
|
37458
37465
|
/**
|
|
@@ -37486,7 +37493,7 @@ class Tracing {
|
|
|
37486
37493
|
}
|
|
37487
37494
|
/**
|
|
37488
37495
|
* Enable logging to OpenTelemetry. [[Tracing.withSpan]] will be enabled, all log entries will be attached to active span as span events.
|
|
37489
|
-
* [
|
|
37496
|
+
* [IModelHost.startup]($backend) will call this automatically if the `enableOpenTelemetry` option is enabled and it succeeds in requiring `@opentelemetry/api`.
|
|
37490
37497
|
* @note Node.js OpenTelemetry SDK should be initialized by the user.
|
|
37491
37498
|
*/
|
|
37492
37499
|
static enableOpenTelemetry(tracer, api) {
|
|
@@ -37507,7 +37514,7 @@ class Tracing {
|
|
|
37507
37514
|
};
|
|
37508
37515
|
}
|
|
37509
37516
|
/** Set attributes on currently active openTelemetry span. Doesn't do anything if openTelemetry logging is not initialized.
|
|
37510
|
-
* @param attributes
|
|
37517
|
+
* @param attributes The attributes to set
|
|
37511
37518
|
*/
|
|
37512
37519
|
static setAttributes(attributes) {
|
|
37513
37520
|
Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.setAttributes(attributes);
|
|
@@ -79285,20 +79292,32 @@ var AccuDrawFlags;
|
|
|
79285
79292
|
AccuDrawFlags[AccuDrawFlags["UpdateRotation"] = 8388608] = "UpdateRotation";
|
|
79286
79293
|
AccuDrawFlags[AccuDrawFlags["SmartRotation"] = 16777216] = "SmartRotation";
|
|
79287
79294
|
})(AccuDrawFlags || (AccuDrawFlags = {}));
|
|
79288
|
-
/**
|
|
79295
|
+
/** AccuDraw coordinate input mode
|
|
79296
|
+
* @public
|
|
79297
|
+
*/
|
|
79289
79298
|
var CompassMode;
|
|
79290
79299
|
(function (CompassMode) {
|
|
79300
|
+
/** Coordinate input using distance and angle */
|
|
79291
79301
|
CompassMode[CompassMode["Polar"] = 0] = "Polar";
|
|
79302
|
+
/** Coordinate input using x, y, and z deltas */
|
|
79292
79303
|
CompassMode[CompassMode["Rectangular"] = 1] = "Rectangular";
|
|
79293
79304
|
})(CompassMode || (CompassMode = {}));
|
|
79294
|
-
/**
|
|
79305
|
+
/** AccuDraw compass base rotation
|
|
79306
|
+
* @public
|
|
79307
|
+
*/
|
|
79295
79308
|
var RotationMode;
|
|
79296
79309
|
(function (RotationMode) {
|
|
79310
|
+
/** Aligned with standard view top or ACS top when [[ToolAdmin.acsContextLock]] is enabled */
|
|
79297
79311
|
RotationMode[RotationMode["Top"] = 1] = "Top";
|
|
79312
|
+
/** Aligned with standard view front or ACS front when [[ToolAdmin.acsContextLock]] is enabled */
|
|
79298
79313
|
RotationMode[RotationMode["Front"] = 2] = "Front";
|
|
79314
|
+
/** Aligned with standard view right or ACS right when [[ToolAdmin.acsContextLock]] is enabled */
|
|
79299
79315
|
RotationMode[RotationMode["Side"] = 3] = "Side";
|
|
79316
|
+
/** Aligned with view */
|
|
79300
79317
|
RotationMode[RotationMode["View"] = 4] = "View";
|
|
79318
|
+
/** Aligned with view ACS */
|
|
79301
79319
|
RotationMode[RotationMode["ACS"] = 5] = "ACS";
|
|
79320
|
+
/** Not aligned with a standard rotation or ACS */
|
|
79302
79321
|
RotationMode[RotationMode["Context"] = 6] = "Context";
|
|
79303
79322
|
})(RotationMode || (RotationMode = {}));
|
|
79304
79323
|
/** @internal */
|
|
@@ -79312,12 +79331,18 @@ var LockedStates;
|
|
|
79312
79331
|
LockedStates[LockedStates["XY_BM"] = 3] = "XY_BM";
|
|
79313
79332
|
LockedStates[LockedStates["ANGLE_BM"] = 7] = "ANGLE_BM";
|
|
79314
79333
|
})(LockedStates || (LockedStates = {}));
|
|
79315
|
-
/**
|
|
79334
|
+
/** AccuDraw enabled states
|
|
79335
|
+
* @public
|
|
79336
|
+
*/
|
|
79316
79337
|
var CurrentState;
|
|
79317
79338
|
(function (CurrentState) {
|
|
79339
|
+
/** Compass disabled/unwanted for this session */
|
|
79318
79340
|
CurrentState[CurrentState["NotEnabled"] = 0] = "NotEnabled";
|
|
79341
|
+
/** Compass deactivated but CAN be activated by user */
|
|
79319
79342
|
CurrentState[CurrentState["Deactivated"] = 1] = "Deactivated";
|
|
79343
|
+
/** Compass not displayed awaiting automatic activation (default tool state) */
|
|
79320
79344
|
CurrentState[CurrentState["Inactive"] = 2] = "Inactive";
|
|
79345
|
+
/** Compass displayed and adjusting points */
|
|
79321
79346
|
CurrentState[CurrentState["Active"] = 3] = "Active";
|
|
79322
79347
|
})(CurrentState || (CurrentState = {}));
|
|
79323
79348
|
/** @internal */
|
|
@@ -79330,13 +79355,20 @@ var ContextMode;
|
|
|
79330
79355
|
ContextMode[ContextMode["XAxis2"] = 4] = "XAxis2";
|
|
79331
79356
|
ContextMode[ContextMode["None"] = 15] = "None";
|
|
79332
79357
|
})(ContextMode || (ContextMode = {}));
|
|
79333
|
-
/**
|
|
79358
|
+
/** AccuDraw coordinate input fields
|
|
79359
|
+
* @public
|
|
79360
|
+
*/
|
|
79334
79361
|
var ItemField;
|
|
79335
79362
|
(function (ItemField) {
|
|
79363
|
+
/** Distance for polar mode */
|
|
79336
79364
|
ItemField[ItemField["DIST_Item"] = 0] = "DIST_Item";
|
|
79365
|
+
/** Angle for polar mode */
|
|
79337
79366
|
ItemField[ItemField["ANGLE_Item"] = 1] = "ANGLE_Item";
|
|
79367
|
+
/** X delta for rectangular mode */
|
|
79338
79368
|
ItemField[ItemField["X_Item"] = 2] = "X_Item";
|
|
79369
|
+
/** Y delta for rectangular mode */
|
|
79339
79370
|
ItemField[ItemField["Y_Item"] = 3] = "Y_Item";
|
|
79371
|
+
/** Z delta (3d only) */
|
|
79340
79372
|
ItemField[ItemField["Z_Item"] = 4] = "Z_Item";
|
|
79341
79373
|
})(ItemField || (ItemField = {}));
|
|
79342
79374
|
/** @internal */
|
|
@@ -79448,15 +79480,16 @@ class ThreeAxes {
|
|
|
79448
79480
|
equals(other) { return this.x.isExactEqual(other.x) && this.y.isExactEqual(other.y) && this.z.isExactEqual(other.z); }
|
|
79449
79481
|
}
|
|
79450
79482
|
/** Accudraw is an aide for entering coordinate data.
|
|
79451
|
-
*
|
|
79483
|
+
* This class is public to allow applications to provide a user interface for AccuDraw, either by implementing their own, or
|
|
79484
|
+
* using the one supplied by the itwin appui package.
|
|
79485
|
+
* @note When writing an [[InteractiveTool]] it is not correct to call methods on AccuDraw directly, tools should instead
|
|
79486
|
+
* provide hints to AccuDraw using [[AccuDrawHintBuilder]].
|
|
79487
|
+
* @public
|
|
79452
79488
|
*/
|
|
79453
79489
|
class AccuDraw {
|
|
79454
79490
|
constructor() {
|
|
79455
|
-
/** @internal */
|
|
79456
79491
|
this.currentState = CurrentState.NotEnabled; // Compass state
|
|
79457
|
-
/** @internal */
|
|
79458
79492
|
this.compassMode = CompassMode.Rectangular; // Compass mode
|
|
79459
|
-
/** @internal */
|
|
79460
79493
|
this.rotationMode = RotationMode.View; // Compass rotation
|
|
79461
79494
|
/** @internal */
|
|
79462
79495
|
this.published = new AccudrawData(); // Staging area for hints
|
|
@@ -79555,13 +79588,11 @@ class AccuDraw {
|
|
|
79555
79588
|
get isDeactivated() { return (CurrentState.Deactivated === this.currentState); }
|
|
79556
79589
|
/** @internal */
|
|
79557
79590
|
setNewFocus(index) { this.newFocus = index; }
|
|
79558
|
-
/**
|
|
79591
|
+
/** Get the current lock state for the supplied input field */
|
|
79559
79592
|
getFieldLock(index) { return this._fieldLocked[index]; }
|
|
79560
79593
|
/** @internal */
|
|
79561
79594
|
getKeyinStatus(index) { return this._keyinStatus[index]; }
|
|
79562
|
-
/** Implement this method to set focus to the AccuDraw UI.
|
|
79563
|
-
* @internal
|
|
79564
|
-
*/
|
|
79595
|
+
/** Implement this method to set focus to the AccuDraw UI. */
|
|
79565
79596
|
grabInputFocus() { }
|
|
79566
79597
|
/** @internal */
|
|
79567
79598
|
activate() {
|
|
@@ -79577,21 +79608,21 @@ class AccuDraw {
|
|
|
79577
79608
|
if (CurrentState.Inactive === this.currentState)
|
|
79578
79609
|
this.currentState = CurrentState.Deactivated;
|
|
79579
79610
|
}
|
|
79580
|
-
/**
|
|
79611
|
+
/** Change current compass input mode to either polar or rectangular */
|
|
79581
79612
|
setCompassMode(mode) {
|
|
79582
79613
|
if (mode === this.compassMode)
|
|
79583
79614
|
return;
|
|
79584
79615
|
this.compassMode = mode;
|
|
79585
79616
|
this.onCompassModeChange();
|
|
79586
79617
|
}
|
|
79587
|
-
/**
|
|
79618
|
+
/** Change current compass orientation */
|
|
79588
79619
|
setRotationMode(mode) {
|
|
79589
79620
|
if (mode === this.rotationMode)
|
|
79590
79621
|
return;
|
|
79591
79622
|
this.rotationMode = mode;
|
|
79592
79623
|
this.onRotationModeChange();
|
|
79593
79624
|
}
|
|
79594
|
-
/**
|
|
79625
|
+
/** Change the lock status for the supplied input field */
|
|
79595
79626
|
setFieldLock(index, locked) {
|
|
79596
79627
|
if (locked === this._fieldLocked[index])
|
|
79597
79628
|
return;
|
|
@@ -80072,7 +80103,7 @@ class AccuDraw {
|
|
|
80072
80103
|
return this.sendDataPoint(this.point, vp);
|
|
80073
80104
|
}
|
|
80074
80105
|
}
|
|
80075
|
-
/**
|
|
80106
|
+
/** Get the current value for the supplied input field */
|
|
80076
80107
|
getValueByIndex(index) {
|
|
80077
80108
|
switch (index) {
|
|
80078
80109
|
case ItemField.X_Item: return this.delta.x;
|
|
@@ -80084,7 +80115,7 @@ class AccuDraw {
|
|
|
80084
80115
|
return 0.0;
|
|
80085
80116
|
}
|
|
80086
80117
|
}
|
|
80087
|
-
/**
|
|
80118
|
+
/** Set the current value for the supplied input field */
|
|
80088
80119
|
setValueByIndex(index, value) {
|
|
80089
80120
|
switch (index) {
|
|
80090
80121
|
case ItemField.X_Item:
|
|
@@ -80264,7 +80295,7 @@ class AccuDraw {
|
|
|
80264
80295
|
return true;
|
|
80265
80296
|
return (!_IModelApp__WEBPACK_IMPORTED_MODULE_6__.IModelApp.toolAdmin.gridLock);
|
|
80266
80297
|
}
|
|
80267
|
-
/**
|
|
80298
|
+
/** Call from an AccuDraw UI event to sync the supplied input field value */
|
|
80268
80299
|
async processFieldInput(index, input, synchText) {
|
|
80269
80300
|
const isBearing = false;
|
|
80270
80301
|
if (_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.SUCCESS !== this.updateFieldValue(index, input, { isBearing })) {
|
|
@@ -81086,17 +81117,17 @@ class AccuDraw {
|
|
|
81086
81117
|
this.saveCoordinate(ItemField.Z_Item, this.delta.z);
|
|
81087
81118
|
}
|
|
81088
81119
|
}
|
|
81089
|
-
/**
|
|
81120
|
+
/** Called after compass mode is changed between polar and rectangular */
|
|
81090
81121
|
onCompassModeChange() { }
|
|
81091
|
-
/**
|
|
81122
|
+
/** Called after compass rotation is changed */
|
|
81092
81123
|
onRotationModeChange() { }
|
|
81093
|
-
/**
|
|
81124
|
+
/** Called after input field locked state is changed */
|
|
81094
81125
|
onFieldLockChange(_index) { }
|
|
81095
|
-
/**
|
|
81126
|
+
/** Called after input field value changes */
|
|
81096
81127
|
onFieldValueChange(_index) { }
|
|
81097
|
-
/**
|
|
81128
|
+
/** Whether AccuDraw currently has input focus */
|
|
81098
81129
|
get hasInputFocus() { return true; }
|
|
81099
|
-
/**
|
|
81130
|
+
/** Set focus to the specified input field */
|
|
81100
81131
|
setFocusItem(_index) { }
|
|
81101
81132
|
static getMinPolarMag(origin) {
|
|
81102
81133
|
return (1.0e-12 * (1.0 + origin.magnitude()));
|
|
@@ -81633,7 +81664,6 @@ class AccuDraw {
|
|
|
81633
81664
|
/** Implemented by sub-classes to update ui fields to show current deltas or coordinates when inactive.
|
|
81634
81665
|
* Should also choose active x or y input field in rectangular mode based on cursor position when
|
|
81635
81666
|
* axis isn't locked to support "smart lock".
|
|
81636
|
-
* @internal
|
|
81637
81667
|
*/
|
|
81638
81668
|
onMotion(_ev) { }
|
|
81639
81669
|
/** @internal */
|
|
@@ -86052,6 +86082,44 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
86052
86082
|
* @see [[overrideSubCategory]]
|
|
86053
86083
|
*/
|
|
86054
86084
|
getSubCategoryOverride(id) { return this.settings.getSubCategoryOverride(id); }
|
|
86085
|
+
/** For each subcategory belonging to any of the specified categories, make it visible by turning off the "invisible" flag in its subcategory appearance.
|
|
86086
|
+
* This requires that the categories and subcategories have been previously loaded by, e.g., a call to IModelConnection.querySubCategories.
|
|
86087
|
+
* @returns true if the visibility of any subcategory was modified.
|
|
86088
|
+
* @see Viewport.changeCategoryDisplay
|
|
86089
|
+
* @see ViewCreator3dOptions.allSubCategoriesVisible
|
|
86090
|
+
* @internal
|
|
86091
|
+
*/
|
|
86092
|
+
enableAllLoadedSubCategories(categoryIds) {
|
|
86093
|
+
let anyChanged = false;
|
|
86094
|
+
for (const categoryId of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.iterable(categoryIds)) {
|
|
86095
|
+
const subCategoryIds = this.iModel.subcategories.getSubCategories(categoryId);
|
|
86096
|
+
if (undefined !== subCategoryIds)
|
|
86097
|
+
for (const subCategoryId of subCategoryIds)
|
|
86098
|
+
if (this.setSubCategoryVisible(subCategoryId, true))
|
|
86099
|
+
anyChanged = true;
|
|
86100
|
+
}
|
|
86101
|
+
return anyChanged;
|
|
86102
|
+
}
|
|
86103
|
+
/** Change the "invisible" flag for the given subcategory's appearance.
|
|
86104
|
+
* This requires that the subcategory appearance has been previously loaded by, e.g., a call to IModelConnection.Categories.getSubCategoryInfo.
|
|
86105
|
+
* @returns true if the visibility of any subcategory was modified.
|
|
86106
|
+
* @see [[enableAllLoadedSubCategories]]
|
|
86107
|
+
* @internal
|
|
86108
|
+
*/
|
|
86109
|
+
setSubCategoryVisible(subCategoryId, visible) {
|
|
86110
|
+
const app = this.iModel.subcategories.getSubCategoryAppearance(subCategoryId);
|
|
86111
|
+
if (undefined === app)
|
|
86112
|
+
return false; // category not enabled or subcategory not found
|
|
86113
|
+
const curOvr = this.getSubCategoryOverride(subCategoryId);
|
|
86114
|
+
const isAlreadyVisible = undefined !== curOvr && undefined !== curOvr.invisible ? !curOvr.invisible : !app.invisible;
|
|
86115
|
+
if (isAlreadyVisible === visible)
|
|
86116
|
+
return false;
|
|
86117
|
+
// Preserve existing overrides - just flip the visibility flag.
|
|
86118
|
+
const json = undefined !== curOvr ? curOvr.toJSON() : {};
|
|
86119
|
+
json.invisible = !visible;
|
|
86120
|
+
this.overrideSubCategory(subCategoryId, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.SubCategoryOverride.fromJSON(json));
|
|
86121
|
+
return true;
|
|
86122
|
+
}
|
|
86055
86123
|
/** Returns true if solar shadow display is enabled by this display style. */
|
|
86056
86124
|
get wantShadows() {
|
|
86057
86125
|
return this.is3d() && this.viewFlags.shadows && false !== _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.renderSystem.options.displaySolarShadows;
|
|
@@ -89755,9 +89823,7 @@ class IModelApp {
|
|
|
89755
89823
|
static get quantityFormatter() { return this._quantityFormatter; }
|
|
89756
89824
|
/** The [[ToolAdmin]] for this session. */
|
|
89757
89825
|
static get toolAdmin() { return this._toolAdmin; }
|
|
89758
|
-
/** The [[AccuDraw]] for this session.
|
|
89759
|
-
* @internal
|
|
89760
|
-
*/
|
|
89826
|
+
/** The [[AccuDraw]] for this session. */
|
|
89761
89827
|
static get accuDraw() { return this._accuDraw; }
|
|
89762
89828
|
/** The [[AccuSnap]] for this session. */
|
|
89763
89829
|
static get accuSnap() { return this._accuSnap; }
|
|
@@ -96473,6 +96539,9 @@ class SubCategoriesCache {
|
|
|
96473
96539
|
if (undefined === this._byCategoryId.get(id))
|
|
96474
96540
|
this._byCategoryId.set(id, invalidCategoryIdEntry);
|
|
96475
96541
|
}
|
|
96542
|
+
/** Exposed strictly for tests.
|
|
96543
|
+
* @internal
|
|
96544
|
+
*/
|
|
96476
96545
|
add(categoryId, subCategoryId, appearance) {
|
|
96477
96546
|
let set = this._byCategoryId.get(categoryId);
|
|
96478
96547
|
if (undefined === set)
|
|
@@ -97220,6 +97289,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
97220
97289
|
|
|
97221
97290
|
/** Provides context for producing [[RenderGraphic]]s for drawing within a [[Viewport]].
|
|
97222
97291
|
* @public
|
|
97292
|
+
* @extensions
|
|
97223
97293
|
*/
|
|
97224
97294
|
class RenderContext {
|
|
97225
97295
|
constructor(vp, frustum) {
|
|
@@ -97297,6 +97367,7 @@ class DynamicsContext extends RenderContext {
|
|
|
97297
97367
|
}
|
|
97298
97368
|
/** Provides context for a [[ViewportDecorator]] to add [[Decorations]] to be rendered within a [[Viewport]].
|
|
97299
97369
|
* @public
|
|
97370
|
+
* @extensions
|
|
97300
97371
|
*/
|
|
97301
97372
|
class DecorateContext extends RenderContext {
|
|
97302
97373
|
/** The [[ScreenViewport]] in which this context's [[Decorations]] will be drawn. */
|
|
@@ -97952,6 +98023,8 @@ class ViewCreator3d {
|
|
|
97952
98023
|
}
|
|
97953
98024
|
if (options?.standardViewId)
|
|
97954
98025
|
viewState.setStandardRotation(options.standardViewId);
|
|
98026
|
+
if (options?.allSubCategoriesVisible)
|
|
98027
|
+
viewState.displayStyle.enableAllLoadedSubCategories(viewState.categorySelector.categories);
|
|
97955
98028
|
const range = viewState.computeFitRange();
|
|
97956
98029
|
viewState.lookAtVolume(range, options?.vpAspect);
|
|
97957
98030
|
return viewState;
|
|
@@ -101520,6 +101593,7 @@ const ELEMENT_MARKED_FOR_REMOVAL = Symbol.for("@bentley/imodeljs/Viewport/__elem
|
|
|
101520
101593
|
*
|
|
101521
101594
|
* @see [[ViewManager]]
|
|
101522
101595
|
* @public
|
|
101596
|
+
* @extensions
|
|
101523
101597
|
*/
|
|
101524
101598
|
class Viewport {
|
|
101525
101599
|
/** @internal */
|
|
@@ -101844,13 +101918,8 @@ class Viewport {
|
|
|
101844
101918
|
});
|
|
101845
101919
|
}
|
|
101846
101920
|
enableAllSubCategories(categoryIds) {
|
|
101847
|
-
|
|
101848
|
-
|
|
101849
|
-
if (undefined !== subCategoryIds) {
|
|
101850
|
-
for (const subCategoryId of subCategoryIds)
|
|
101851
|
-
this.changeSubCategoryDisplay(subCategoryId, true);
|
|
101852
|
-
}
|
|
101853
|
-
}
|
|
101921
|
+
if (this.displayStyle.enableAllLoadedSubCategories(categoryIds))
|
|
101922
|
+
this.maybeInvalidateScene();
|
|
101854
101923
|
}
|
|
101855
101924
|
/** @internal */
|
|
101856
101925
|
getSubCategories(categoryId) { return this.iModel.subcategories.getSubCategories(categoryId); }
|
|
@@ -101859,18 +101928,8 @@ class Viewport {
|
|
|
101859
101928
|
* @param display: True to make geometry belonging to the subcategory visible within this viewport, false to make it invisible.
|
|
101860
101929
|
*/
|
|
101861
101930
|
changeSubCategoryDisplay(subCategoryId, display) {
|
|
101862
|
-
|
|
101863
|
-
|
|
101864
|
-
return; // category not enabled or subcategory not found
|
|
101865
|
-
const curOvr = this.getSubCategoryOverride(subCategoryId);
|
|
101866
|
-
const isAlreadyVisible = undefined !== curOvr && undefined !== curOvr.invisible ? !curOvr.invisible : !app.invisible;
|
|
101867
|
-
if (isAlreadyVisible === display)
|
|
101868
|
-
return;
|
|
101869
|
-
// Preserve existing overrides - just flip the visibility flag.
|
|
101870
|
-
const json = undefined !== curOvr ? curOvr.toJSON() : {};
|
|
101871
|
-
json.invisible = !display;
|
|
101872
|
-
this.overrideSubCategory(subCategoryId, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.SubCategoryOverride.fromJSON(json)); // will set the ChangeFlag appropriately
|
|
101873
|
-
this.maybeInvalidateScene();
|
|
101931
|
+
if (this.displayStyle.setSubCategoryVisible(subCategoryId, display))
|
|
101932
|
+
this.maybeInvalidateScene();
|
|
101874
101933
|
}
|
|
101875
101934
|
/** The settings controlling how a background map is displayed within a view.
|
|
101876
101935
|
* @see [[ViewFlags.backgroundMap]] for toggling display of the map on or off.
|
|
@@ -103714,6 +103773,7 @@ Viewport.undoDelay = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeDuration
|
|
|
103714
103773
|
* 5b. Otherwise, it is disposed of by invoking its dispose() method directly.
|
|
103715
103774
|
* ```
|
|
103716
103775
|
* @public
|
|
103776
|
+
* @extensions
|
|
103717
103777
|
*/
|
|
103718
103778
|
class ScreenViewport extends Viewport {
|
|
103719
103779
|
/** Create a new ScreenViewport that shows a View of an iModel into an HTMLDivElement. This method will create a new HTMLCanvasElement as a child of the supplied parentDiv.
|
|
@@ -104337,6 +104397,7 @@ function _clear2dCanvas(canvas) {
|
|
|
104337
104397
|
* Offscreen viewports can be useful for, e.g., producing an image from the contents of a view (see [[Viewport.readImageBuffer]] and [[Viewport.readImageToCanvas]])
|
|
104338
104398
|
* without drawing to the screen.
|
|
104339
104399
|
* @public
|
|
104400
|
+
* @extensions
|
|
104340
104401
|
*/
|
|
104341
104402
|
class OffScreenViewport extends Viewport {
|
|
104342
104403
|
constructor() {
|
|
@@ -105766,6 +105827,7 @@ const extensionExports = {
|
|
|
105766
105827
|
CoordSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.CoordSource,
|
|
105767
105828
|
CoordSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.CoordSystem,
|
|
105768
105829
|
CoordinateLockOverrides: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.CoordinateLockOverrides,
|
|
105830
|
+
DecorateContext: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DecorateContext,
|
|
105769
105831
|
Decorations: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Decorations,
|
|
105770
105832
|
DisclosedTileTreeSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DisclosedTileTreeSet,
|
|
105771
105833
|
DisplayStyle2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DisplayStyle2dState,
|
|
@@ -105845,6 +105907,7 @@ const extensionExports = {
|
|
|
105845
105907
|
NotificationManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.NotificationManager,
|
|
105846
105908
|
NotifyMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.NotifyMessageDetails,
|
|
105847
105909
|
Npc: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.Npc,
|
|
105910
|
+
OffScreenViewport: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OffScreenViewport,
|
|
105848
105911
|
OrthographicViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OrthographicViewState,
|
|
105849
105912
|
OutputMessageAlert: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OutputMessageAlert,
|
|
105850
105913
|
OutputMessagePriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OutputMessagePriority,
|
|
@@ -105870,11 +105933,13 @@ const extensionExports = {
|
|
|
105870
105933
|
QueryRowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QueryRowFormat,
|
|
105871
105934
|
Rank: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.Rank,
|
|
105872
105935
|
RenderClipVolume: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderClipVolume,
|
|
105936
|
+
RenderContext: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderContext,
|
|
105873
105937
|
RenderGraphic: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderGraphic,
|
|
105874
105938
|
RenderGraphicOwner: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderGraphicOwner,
|
|
105875
105939
|
RenderMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.RenderMode,
|
|
105876
105940
|
RenderSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderSystem,
|
|
105877
105941
|
Scene: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Scene,
|
|
105942
|
+
ScreenViewport: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ScreenViewport,
|
|
105878
105943
|
SectionDrawingModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SectionDrawingModelState,
|
|
105879
105944
|
SectionType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.SectionType,
|
|
105880
105945
|
SelectionMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SelectionMethod,
|
|
@@ -105952,6 +106017,7 @@ const extensionExports = {
|
|
|
105952
106017
|
ViewStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewStatus,
|
|
105953
106018
|
ViewTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewTool,
|
|
105954
106019
|
ViewingSpace: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewingSpace,
|
|
106020
|
+
Viewport: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Viewport,
|
|
105955
106021
|
canvasToImageBuffer: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.canvasToImageBuffer,
|
|
105956
106022
|
canvasToResizedCanvasWithBars: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.canvasToResizedCanvasWithBars,
|
|
105957
106023
|
connectViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.connectViewportFrusta,
|
|
@@ -105968,6 +106034,7 @@ const extensionExports = {
|
|
|
105968
106034
|
imageElementFromUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.imageElementFromUrl,
|
|
105969
106035
|
queryTerrainElevationOffset: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.queryTerrainElevationOffset,
|
|
105970
106036
|
readElementGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.readElementGraphics,
|
|
106037
|
+
readGltfGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.readGltfGraphics,
|
|
105971
106038
|
synchronizeViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.synchronizeViewportFrusta,
|
|
105972
106039
|
synchronizeViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.synchronizeViewportViews,
|
|
105973
106040
|
};
|
|
@@ -145417,6 +145484,7 @@ class GltfReader {
|
|
|
145417
145484
|
* @see [Example decorator]($docs/learning/frontend/ViewDecorations#gltf-decorations) for an example of a decorator that reads and displays a glTF asset.
|
|
145418
145485
|
* @see [[readGltf]] to obtain more information about the glTF model.
|
|
145419
145486
|
* @public
|
|
145487
|
+
* @extensions
|
|
145420
145488
|
*/
|
|
145421
145489
|
async function readGltfGraphics(args) {
|
|
145422
145490
|
const result = await readGltf(args);
|
|
@@ -281328,7 +281396,7 @@ class TestContext {
|
|
|
281328
281396
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
281329
281397
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
281330
281398
|
await core_frontend_1.NoRenderApp.startup({
|
|
281331
|
-
applicationVersion: "4.0.0-dev.
|
|
281399
|
+
applicationVersion: "4.0.0-dev.63",
|
|
281332
281400
|
applicationId: this.settings.gprid,
|
|
281333
281401
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
281334
281402
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -300901,7 +300969,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
300901
300969
|
/***/ ((module) => {
|
|
300902
300970
|
|
|
300903
300971
|
"use strict";
|
|
300904
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.
|
|
300972
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.63","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","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 ES2020 --outDir lib/esm","clean":"rimraf 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","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"./node_modules/@itwin/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/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:^4.0.0-dev.63","@itwin/core-bentley":"workspace:^4.0.0-dev.63","@itwin/core-common":"workspace:^4.0.0-dev.63","@itwin/core-geometry":"workspace:^4.0.0-dev.63","@itwin/core-orbitgt":"workspace:^4.0.0-dev.63","@itwin/core-quantity":"workspace:^4.0.0-dev.63"},"//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":{"@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/certa":"workspace:*","@itwin/eslint-plugin":"^4.0.0-dev.32","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~5.0.2","webpack":"^5.76.0"},"//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/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","qs":"^6.5.3","semver":"^7.3.5","superagent":"^7.1.5","wms-capabilities":"0.4.0","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
|
|
300905
300973
|
|
|
300906
300974
|
/***/ }),
|
|
300907
300975
|
|