@itwin/rpcinterface-full-stack-tests 5.9.0-dev.4 → 5.9.0-dev.5

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.
@@ -72325,6 +72325,7 @@ __webpack_require__.r(__webpack_exports__);
72325
72325
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
72326
72326
  /* harmony export */ ChannelControlError: () => (/* binding */ ChannelControlError),
72327
72327
  /* harmony export */ CloudSqliteError: () => (/* binding */ CloudSqliteError),
72328
+ /* harmony export */ EditTxnError: () => (/* binding */ EditTxnError),
72328
72329
  /* harmony export */ ITwinSettingsError: () => (/* binding */ ITwinSettingsError),
72329
72330
  /* harmony export */ SqliteError: () => (/* binding */ SqliteError),
72330
72331
  /* harmony export */ ViewStoreError: () => (/* binding */ ViewStoreError),
@@ -72432,6 +72433,22 @@ var ChannelControlError;
72432
72433
  }
72433
72434
  ChannelControlError.isError = isError;
72434
72435
  })(ChannelControlError || (ChannelControlError = {}));
72436
+ /** @beta */
72437
+ var EditTxnError;
72438
+ (function (EditTxnError) {
72439
+ /** the ITwinError scope for `EditTxnError`s. */
72440
+ EditTxnError.scope = "itwin-EditTxn";
72441
+ /** Instantiate and throw an EditTxnError */
72442
+ function throwError(key, message, iModelKey, description) {
72443
+ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.ITwinError.throwError({ iTwinErrorId: { scope: EditTxnError.scope, key }, message, iModelKey, description });
72444
+ }
72445
+ EditTxnError.throwError = throwError;
72446
+ /** Determine whether an error object is an EditTxnError */
72447
+ function isError(error, key) {
72448
+ return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.ITwinError.isError(error, EditTxnError.scope, key);
72449
+ }
72450
+ EditTxnError.isError = isError;
72451
+ })(EditTxnError || (EditTxnError = {}));
72435
72452
 
72436
72453
 
72437
72454
  /***/ }),
@@ -80080,6 +80097,13 @@ var TxnAction;
80080
80097
 
80081
80098
  "use strict";
80082
80099
  __webpack_require__.r(__webpack_exports__);
80100
+ /*---------------------------------------------------------------------------------------------
80101
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
80102
+ * See LICENSE.md in the project root for license terms and full copyright notice.
80103
+ *--------------------------------------------------------------------------------------------*/
80104
+ /** @packageDocumentation
80105
+ * @module iModels
80106
+ */
80083
80107
 
80084
80108
 
80085
80109
 
@@ -82098,6 +82122,7 @@ __webpack_require__.r(__webpack_exports__);
82098
82122
  /* harmony export */ Easing: () => (/* reexport safe */ _Tween__WEBPACK_IMPORTED_MODULE_121__.Easing),
82099
82123
  /* harmony export */ EcefLocation: () => (/* reexport safe */ _IModel__WEBPACK_IMPORTED_MODULE_70__.EcefLocation),
82100
82124
  /* harmony export */ EdgeArgs: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_164__.EdgeArgs),
82125
+ /* harmony export */ EditTxnError: () => (/* reexport safe */ _ITwinCoreErrors__WEBPACK_IMPORTED_MODULE_73__.EditTxnError),
82101
82126
  /* harmony export */ ElementGeometry: () => (/* reexport safe */ _geometry_ElementGeometry__WEBPACK_IMPORTED_MODULE_49__.ElementGeometry),
82102
82127
  /* harmony export */ ElementGeometryChange: () => (/* reexport safe */ _ModelGeometryChanges__WEBPACK_IMPORTED_MODULE_94__.ElementGeometryChange),
82103
82128
  /* harmony export */ ElementGeometryOpcode: () => (/* reexport safe */ _geometry_ElementGeometry__WEBPACK_IMPORTED_MODULE_49__.ElementGeometryOpcode),
@@ -119332,13 +119357,16 @@ class BriefcaseConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_5__
119332
119357
  }
119333
119358
  /** Commit pending changes to this briefcase.
119334
119359
  * @param description Optional description of the changes.
119360
+ * @deprecated Use methods on EditCommand instead.
119335
119361
  */
119336
119362
  async saveChanges(description) {
119337
- await _IpcApp__WEBPACK_IMPORTED_MODULE_6__.IpcApp.appFunctionIpc.saveChanges(this.key, description);
119363
+ await _IpcApp__WEBPACK_IMPORTED_MODULE_6__.IpcApp.appFunctionIpc.saveChanges(this.key, description); // eslint-disable-line @typescript-eslint/no-deprecated
119338
119364
  }
119339
- /** Abandon pending changes to this briefcase. */
119365
+ /** Abandon pending changes to this briefcase.
119366
+ * @deprecated Use methods on EditCommand instead.
119367
+ */
119340
119368
  async abandonChanges() {
119341
- await _IpcApp__WEBPACK_IMPORTED_MODULE_6__.IpcApp.appFunctionIpc.abandonChanges(this.key);
119369
+ await _IpcApp__WEBPACK_IMPORTED_MODULE_6__.IpcApp.appFunctionIpc.abandonChanges(this.key); // eslint-disable-line @typescript-eslint/no-deprecated
119342
119370
  }
119343
119371
  /** Pull (and potentially merge if there are local changes) up to a specified changeset from iModelHub into this briefcase
119344
119372
  * @param toIndex The changeset index to pull changes to. If `undefined`, pull all changes.
@@ -120392,6 +120420,10 @@ class ContextRealityModelState extends _itwin_core_common__WEBPACK_IMPORTED_MODU
120392
120420
  }
120393
120421
  /** The tile tree reference responsible for drawing the reality model into a [[Viewport]]. */
120394
120422
  get treeRef() { return this._treeRef; }
120423
+ /** @internal */
120424
+ detachLayerListeners() {
120425
+ this._treeRef.detachLayerListeners();
120426
+ }
120395
120427
  /** The set of available [[ActiveSpatialClassifier]]s that can be used to classify the reality model. */
120396
120428
  get classifiers() {
120397
120429
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(super.classifiers instanceof _SpatialClassifiersState__WEBPACK_IMPORTED_MODULE_4__.SpatialClassifiersState);
@@ -131271,9 +131303,10 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_6__.ViewState2d
131271
131303
  }
131272
131304
  }
131273
131305
  if (reload) {
131274
- await this._viewAttachments.reload(this.baseModelId, iModel);
131275
- this._onViewAttachmentsReloaded();
131276
- this.onViewAttachmentsReloaded.raiseEvent();
131306
+ if (await this._viewAttachments.reload(this.baseModelId, iModel)) {
131307
+ this._onViewAttachmentsReloaded();
131308
+ this.onViewAttachmentsReloaded.raiseEvent();
131309
+ }
131277
131310
  }
131278
131311
  });
131279
131312
  }
@@ -137157,36 +137190,37 @@ __webpack_require__.r(__webpack_exports__);
137157
137190
  /* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
137158
137191
  /* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
137159
137192
  /* harmony import */ var _ChangeFlags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ChangeFlags */ "../../core/frontend/lib/esm/ChangeFlags.js");
137160
- /* harmony import */ var _CoordSystem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CoordSystem */ "../../core/frontend/lib/esm/CoordSystem.js");
137161
- /* harmony import */ var _DecorationsCache__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DecorationsCache */ "../../core/frontend/lib/esm/DecorationsCache.js");
137162
- /* harmony import */ var _ElementLocateManager__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ElementLocateManager */ "../../core/frontend/lib/esm/ElementLocateManager.js");
137163
- /* harmony import */ var _FrustumAnimator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FrustumAnimator */ "../../core/frontend/lib/esm/FrustumAnimator.js");
137164
- /* harmony import */ var _GlobeAnimator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./GlobeAnimator */ "../../core/frontend/lib/esm/GlobeAnimator.js");
137165
- /* harmony import */ var _HitDetail__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./HitDetail */ "../../core/frontend/lib/esm/HitDetail.js");
137166
- /* harmony import */ var _IModelApp__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./IModelApp */ "../../core/frontend/lib/esm/IModelApp.js");
137167
- /* harmony import */ var _LinePlaneIntersect__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./LinePlaneIntersect */ "../../core/frontend/lib/esm/LinePlaneIntersect.js");
137168
- /* harmony import */ var _PerModelCategoryVisibility__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./PerModelCategoryVisibility */ "../../core/frontend/lib/esm/PerModelCategoryVisibility.js");
137169
- /* harmony import */ var _render_Decorations__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./render/Decorations */ "../../core/frontend/lib/esm/render/Decorations.js");
137170
- /* harmony import */ var _render_FeatureSymbology__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./render/FeatureSymbology */ "../../core/frontend/lib/esm/render/FeatureSymbology.js");
137171
- /* harmony import */ var _internal_render_FrameStatsCollector__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./internal/render/FrameStatsCollector */ "../../core/frontend/lib/esm/internal/render/FrameStatsCollector.js");
137172
- /* harmony import */ var _internal_render_AnimationBranchState__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./internal/render/AnimationBranchState */ "../../core/frontend/lib/esm/internal/render/AnimationBranchState.js");
137173
- /* harmony import */ var _render_Pixel__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./render/Pixel */ "../../core/frontend/lib/esm/render/Pixel.js");
137174
- /* harmony import */ var _internal_render_RenderPlan__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./internal/render/RenderPlan */ "../../core/frontend/lib/esm/internal/render/RenderPlan.js");
137175
- /* harmony import */ var _StandardView__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./StandardView */ "../../core/frontend/lib/esm/StandardView.js");
137176
- /* harmony import */ var _SubCategoriesCache__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./SubCategoriesCache */ "../../core/frontend/lib/esm/SubCategoriesCache.js");
137177
- /* harmony import */ var _tile_internal__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./tile/internal */ "../../core/frontend/lib/esm/tile/internal.js");
137178
- /* harmony import */ var _tools_EventController__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./tools/EventController */ "../../core/frontend/lib/esm/tools/EventController.js");
137179
- /* harmony import */ var _tools_ToolSettings__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./tools/ToolSettings */ "../../core/frontend/lib/esm/tools/ToolSettings.js");
137180
- /* harmony import */ var _ViewContext__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./ViewContext */ "../../core/frontend/lib/esm/ViewContext.js");
137181
- /* harmony import */ var _ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ViewGlobalLocation */ "../../core/frontend/lib/esm/ViewGlobalLocation.js");
137182
- /* harmony import */ var _ViewingSpace__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./ViewingSpace */ "../../core/frontend/lib/esm/ViewingSpace.js");
137183
- /* harmony import */ var _common_ViewRect__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./common/ViewRect */ "../../core/frontend/lib/esm/common/ViewRect.js");
137184
- /* harmony import */ var _ViewStatus__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./ViewStatus */ "../../core/frontend/lib/esm/ViewStatus.js");
137185
- /* harmony import */ var _internal_render_QueryVisibileFeatures__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./internal/render/QueryVisibileFeatures */ "../../core/frontend/lib/esm/internal/render/QueryVisibileFeatures.js");
137186
- /* harmony import */ var _FlashSettings__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./FlashSettings */ "../../core/frontend/lib/esm/FlashSettings.js");
137187
- /* harmony import */ var _ModelState__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./ModelState */ "../../core/frontend/lib/esm/ModelState.js");
137188
- /* harmony import */ var _common_render_GraphicType__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./common/render/GraphicType */ "../../core/frontend/lib/esm/common/render/GraphicType.js");
137189
- /* harmony import */ var _internal_render_webgl_MapLayerParams__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./internal/render/webgl/MapLayerParams */ "../../core/frontend/lib/esm/internal/render/webgl/MapLayerParams.js");
137193
+ /* harmony import */ var _ContextRealityModelState__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ContextRealityModelState */ "../../core/frontend/lib/esm/ContextRealityModelState.js");
137194
+ /* harmony import */ var _CoordSystem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CoordSystem */ "../../core/frontend/lib/esm/CoordSystem.js");
137195
+ /* harmony import */ var _DecorationsCache__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DecorationsCache */ "../../core/frontend/lib/esm/DecorationsCache.js");
137196
+ /* harmony import */ var _ElementLocateManager__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ElementLocateManager */ "../../core/frontend/lib/esm/ElementLocateManager.js");
137197
+ /* harmony import */ var _FrustumAnimator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FrustumAnimator */ "../../core/frontend/lib/esm/FrustumAnimator.js");
137198
+ /* harmony import */ var _GlobeAnimator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./GlobeAnimator */ "../../core/frontend/lib/esm/GlobeAnimator.js");
137199
+ /* harmony import */ var _HitDetail__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./HitDetail */ "../../core/frontend/lib/esm/HitDetail.js");
137200
+ /* harmony import */ var _IModelApp__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./IModelApp */ "../../core/frontend/lib/esm/IModelApp.js");
137201
+ /* harmony import */ var _LinePlaneIntersect__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./LinePlaneIntersect */ "../../core/frontend/lib/esm/LinePlaneIntersect.js");
137202
+ /* harmony import */ var _PerModelCategoryVisibility__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./PerModelCategoryVisibility */ "../../core/frontend/lib/esm/PerModelCategoryVisibility.js");
137203
+ /* harmony import */ var _render_Decorations__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./render/Decorations */ "../../core/frontend/lib/esm/render/Decorations.js");
137204
+ /* harmony import */ var _render_FeatureSymbology__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./render/FeatureSymbology */ "../../core/frontend/lib/esm/render/FeatureSymbology.js");
137205
+ /* harmony import */ var _internal_render_FrameStatsCollector__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./internal/render/FrameStatsCollector */ "../../core/frontend/lib/esm/internal/render/FrameStatsCollector.js");
137206
+ /* harmony import */ var _internal_render_AnimationBranchState__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./internal/render/AnimationBranchState */ "../../core/frontend/lib/esm/internal/render/AnimationBranchState.js");
137207
+ /* harmony import */ var _render_Pixel__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./render/Pixel */ "../../core/frontend/lib/esm/render/Pixel.js");
137208
+ /* harmony import */ var _internal_render_RenderPlan__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./internal/render/RenderPlan */ "../../core/frontend/lib/esm/internal/render/RenderPlan.js");
137209
+ /* harmony import */ var _StandardView__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./StandardView */ "../../core/frontend/lib/esm/StandardView.js");
137210
+ /* harmony import */ var _SubCategoriesCache__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./SubCategoriesCache */ "../../core/frontend/lib/esm/SubCategoriesCache.js");
137211
+ /* harmony import */ var _tile_internal__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./tile/internal */ "../../core/frontend/lib/esm/tile/internal.js");
137212
+ /* harmony import */ var _tools_EventController__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./tools/EventController */ "../../core/frontend/lib/esm/tools/EventController.js");
137213
+ /* harmony import */ var _tools_ToolSettings__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./tools/ToolSettings */ "../../core/frontend/lib/esm/tools/ToolSettings.js");
137214
+ /* harmony import */ var _ViewContext__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ViewContext */ "../../core/frontend/lib/esm/ViewContext.js");
137215
+ /* harmony import */ var _ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./ViewGlobalLocation */ "../../core/frontend/lib/esm/ViewGlobalLocation.js");
137216
+ /* harmony import */ var _ViewingSpace__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./ViewingSpace */ "../../core/frontend/lib/esm/ViewingSpace.js");
137217
+ /* harmony import */ var _common_ViewRect__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./common/ViewRect */ "../../core/frontend/lib/esm/common/ViewRect.js");
137218
+ /* harmony import */ var _ViewStatus__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./ViewStatus */ "../../core/frontend/lib/esm/ViewStatus.js");
137219
+ /* harmony import */ var _internal_render_QueryVisibileFeatures__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./internal/render/QueryVisibileFeatures */ "../../core/frontend/lib/esm/internal/render/QueryVisibileFeatures.js");
137220
+ /* harmony import */ var _FlashSettings__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./FlashSettings */ "../../core/frontend/lib/esm/FlashSettings.js");
137221
+ /* harmony import */ var _ModelState__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./ModelState */ "../../core/frontend/lib/esm/ModelState.js");
137222
+ /* harmony import */ var _common_render_GraphicType__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./common/render/GraphicType */ "../../core/frontend/lib/esm/common/render/GraphicType.js");
137223
+ /* harmony import */ var _internal_render_webgl_MapLayerParams__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./internal/render/webgl/MapLayerParams */ "../../core/frontend/lib/esm/internal/render/webgl/MapLayerParams.js");
137190
137224
  /*---------------------------------------------------------------------------------------------
137191
137225
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
137192
137226
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -137226,6 +137260,7 @@ __webpack_require__.r(__webpack_exports__);
137226
137260
 
137227
137261
 
137228
137262
 
137263
+
137229
137264
 
137230
137265
 
137231
137266
  /** Source of depth point returned by [[Viewport.pickDepthPoint]].
@@ -137394,7 +137429,7 @@ class Viewport {
137394
137429
  */
137395
137430
  invalidateDecorations() {
137396
137431
  this._decorationsValid = false;
137397
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.requestNextAnimation();
137432
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.requestNextAnimation();
137398
137433
  }
137399
137434
  /** Mark the viewport's scene as having changed, so that the next call to [[renderFrame]] will recreate it.
137400
137435
  * This method is not typically invoked directly - the scene is automatically invalidated in response to events such as moving the viewing frustum,
@@ -137432,7 +137467,7 @@ class Viewport {
137432
137467
  */
137433
137468
  requestRedraw() {
137434
137469
  this._redrawPending = true;
137435
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.requestNextAnimation();
137470
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.requestNextAnimation();
137436
137471
  }
137437
137472
  _animator;
137438
137473
  /** @internal */
@@ -137441,7 +137476,7 @@ class Viewport {
137441
137476
  _perModelCategoryVisibility;
137442
137477
  _tileSizeModifier;
137443
137478
  /** @internal */
137444
- subcategories = new _SubCategoriesCache__WEBPACK_IMPORTED_MODULE_20__.SubCategoriesCache.Queue();
137479
+ subcategories = new _SubCategoriesCache__WEBPACK_IMPORTED_MODULE_21__.SubCategoriesCache.Queue();
137445
137480
  /** Time the current flash started. */
137446
137481
  _flashUpdateTime;
137447
137482
  /** Current flash intensity from [0..this.flashSettings.maxIntensity] */
@@ -137489,7 +137524,7 @@ class Viewport {
137489
137524
  }
137490
137525
  /** Don't allow entries in the view undo buffer unless they're separated by more than this amount of time. */
137491
137526
  static undoDelay = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeDuration.fromSeconds(.5);
137492
- _debugBoundingBoxes = _tile_internal__WEBPACK_IMPORTED_MODULE_21__.TileBoundingBoxes.None;
137527
+ _debugBoundingBoxes = _tile_internal__WEBPACK_IMPORTED_MODULE_22__.TileBoundingBoxes.None;
137493
137528
  _freezeScene = false;
137494
137529
  _viewingSpace;
137495
137530
  _target;
@@ -137502,7 +137537,7 @@ class Viewport {
137502
137537
  _mapTiledGraphicsProvider;
137503
137538
  _hilite = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Hilite.Settings();
137504
137539
  _emphasis = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Hilite.Settings(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorDef.black, 0, 0, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Hilite.Silhouette.Thick);
137505
- _flash = new _FlashSettings__WEBPACK_IMPORTED_MODULE_30__.FlashSettings();
137540
+ _flash = new _FlashSettings__WEBPACK_IMPORTED_MODULE_31__.FlashSettings();
137506
137541
  /** See [DisplayStyle3dSettings.lights]($common) */
137507
137542
  get lightSettings() {
137508
137543
  return this.displayStyle.is3d() ? this.displayStyle.settings.lights : undefined;
@@ -137546,7 +137581,7 @@ class Viewport {
137546
137581
  this.displayStyle.settings.timePoint = time;
137547
137582
  }
137548
137583
  /** @internal */
137549
- _viewRange = new _common_ViewRect__WEBPACK_IMPORTED_MODULE_27__.ViewRect();
137584
+ _viewRange = new _common_ViewRect__WEBPACK_IMPORTED_MODULE_28__.ViewRect();
137550
137585
  /** @internal */
137551
137586
  get isAspectRatioLocked() { return false; }
137552
137587
  /** @internal */
@@ -137792,7 +137827,7 @@ class Viewport {
137792
137827
  if (treeRef) {
137793
137828
  return treeRef.getMapLayerScaleRangeVisibility(mapLayerIndex.index);
137794
137829
  }
137795
- return _tile_internal__WEBPACK_IMPORTED_MODULE_21__.MapTileTreeScaleRangeVisibility.Unknown;
137830
+ return _tile_internal__WEBPACK_IMPORTED_MODULE_22__.MapTileTreeScaleRangeVisibility.Unknown;
137796
137831
  }
137797
137832
  /** Return a list of map-layers indexes matching a given MapTile tree Id and a layer imagery tree id.
137798
137833
  * Note: A imagery tree can be shared for multiple map-layers.
@@ -137815,18 +137850,18 @@ class Viewport {
137815
137850
  if (!ecefTransform)
137816
137851
  return undefined;
137817
137852
  const model = this.iModel.models.getLoaded(mapLayerSettings.modelId);
137818
- if (!model || !(model instanceof _ModelState__WEBPACK_IMPORTED_MODULE_31__.GeometricModelState))
137853
+ if (!model || !(model instanceof _ModelState__WEBPACK_IMPORTED_MODULE_32__.GeometricModelState))
137819
137854
  return undefined;
137820
137855
  const modelRange = await model.queryModelRange();
137821
137856
  const cartoRange = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.CartographicRange(modelRange, ecefTransform).getLongitudeLatitudeBoundingBox();
137822
- return _tile_internal__WEBPACK_IMPORTED_MODULE_21__.MapCartoRectangle.fromRadians(cartoRange.low.x, cartoRange.low.y, cartoRange.high.x, cartoRange.high.y);
137857
+ return _tile_internal__WEBPACK_IMPORTED_MODULE_22__.MapCartoRectangle.fromRadians(cartoRange.low.x, cartoRange.low.y, cartoRange.high.x, cartoRange.high.y);
137823
137858
  }
137824
137859
  const imageryProvider = this.getMapLayerImageryProvider(mapLayerIndex);
137825
137860
  if (undefined === imageryProvider)
137826
137861
  return undefined;
137827
137862
  const tileTreeRef = mapLayerIndex.isOverlay ? this.overlayMap : this.backgroundMap;
137828
137863
  const imageryTreeRef = tileTreeRef?.getLayerImageryTreeRef(mapLayerIndex.index);
137829
- if (imageryTreeRef?.treeOwner.loadStatus === _tile_internal__WEBPACK_IMPORTED_MODULE_21__.TileTreeLoadStatus.Loaded) {
137864
+ if (imageryTreeRef?.treeOwner.loadStatus === _tile_internal__WEBPACK_IMPORTED_MODULE_22__.TileTreeLoadStatus.Loaded) {
137830
137865
  return imageryProvider.cartoRange;
137831
137866
  }
137832
137867
  else {
@@ -137842,9 +137877,9 @@ class Viewport {
137842
137877
  if (!range)
137843
137878
  return false;
137844
137879
  if (range.xLength() > 1.5 * _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Angle.piRadians)
137845
- (0,_ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_25__.viewGlobalLocation)(vp, true, _ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_25__.ViewGlobalLocationConstants.satelliteHeightAboveEarthInMeters, undefined, undefined);
137880
+ (0,_ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_26__.viewGlobalLocation)(vp, true, _ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_26__.ViewGlobalLocationConstants.satelliteHeightAboveEarthInMeters, undefined, undefined);
137846
137881
  else
137847
- (0,_ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_25__.viewGlobalLocation)(vp, true, undefined, undefined, range.globalLocation);
137882
+ (0,_ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_26__.viewGlobalLocation)(vp, true, undefined, undefined, range.globalLocation);
137848
137883
  return true;
137849
137884
  }
137850
137885
  /** Fully reset a map-layer tile tree; by calling this, the map-layer will to go through initialize process again, and all previously fetched tile will be lost.
@@ -137960,9 +137995,9 @@ class Viewport {
137960
137995
  /** @internal */
137961
137996
  get isPointAdjustmentRequired() { return this.view.is3d(); }
137962
137997
  /** @internal */
137963
- get isSnapAdjustmentRequired() { return _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.toolAdmin.acsPlaneSnapLock && this.view.is3d(); }
137998
+ get isSnapAdjustmentRequired() { return _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.toolAdmin.acsPlaneSnapLock && this.view.is3d(); }
137964
137999
  /** @internal */
137965
- get isContextRotationRequired() { return _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.toolAdmin.acsContextLock; }
138000
+ get isContextRotationRequired() { return _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.toolAdmin.acsContextLock; }
137966
138001
  /** Enables or disables "fade-out" mode. When this mode is enabled, transparent graphics are rendered with a flat alpha weight,
137967
138002
  * causing them to appear de-emphasized. This is typically used in contexts in which a handful of elements are to be emphasized in the view,
137968
138003
  * while the rest of the graphics are drawn transparently.
@@ -138023,7 +138058,7 @@ class Viewport {
138023
138058
  * @alpha
138024
138059
  */
138025
138060
  onFrameStats = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
138026
- _frameStatsCollector = new _internal_render_FrameStatsCollector__WEBPACK_IMPORTED_MODULE_15__.FrameStatsCollector(this.onFrameStats);
138061
+ _frameStatsCollector = new _internal_render_FrameStatsCollector__WEBPACK_IMPORTED_MODULE_16__.FrameStatsCollector(this.onFrameStats);
138027
138062
  /** A function invoked once, after the constructor, to initialize the viewport's state.
138028
138063
  * Subclasses can use this perform additional initialization, as the viewport's constructor is not directly invokable.
138029
138064
  */
@@ -138033,16 +138068,16 @@ class Viewport {
138033
138068
  constructor(target) {
138034
138069
  this._target = target;
138035
138070
  target.assignFrameStatsCollector(this._frameStatsCollector);
138036
- this._viewportId = _tile_internal__WEBPACK_IMPORTED_MODULE_21__.TileUser.generateId();
138037
- this._perModelCategoryVisibility = _PerModelCategoryVisibility__WEBPACK_IMPORTED_MODULE_12__.PerModelCategoryVisibility.createOverrides(this);
138038
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.registerUser(this);
138071
+ this._viewportId = _tile_internal__WEBPACK_IMPORTED_MODULE_22__.TileUser.generateId();
138072
+ this._perModelCategoryVisibility = _PerModelCategoryVisibility__WEBPACK_IMPORTED_MODULE_13__.PerModelCategoryVisibility.createOverrides(this);
138073
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.tileAdmin.registerUser(this);
138039
138074
  }
138040
138075
  [Symbol.dispose]() {
138041
138076
  if (this.isDisposed)
138042
138077
  return;
138043
138078
  this._target = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this._target);
138044
138079
  this.subcategories[Symbol.dispose]();
138045
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.forgetUser(this);
138080
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.tileAdmin.forgetUser(this);
138046
138081
  this.onDisposed.raiseEvent(this);
138047
138082
  this.detachFromView();
138048
138083
  }
@@ -138068,7 +138103,7 @@ class Viewport {
138068
138103
  this.registerDisplayStyleListeners(this.view.displayStyle);
138069
138104
  this.registerViewListeners();
138070
138105
  this.view.attachToViewport(this);
138071
- this._mapTiledGraphicsProvider = new _tile_internal__WEBPACK_IMPORTED_MODULE_21__.MapTiledGraphicsProvider(this.viewportId, this.displayStyle);
138106
+ this._mapTiledGraphicsProvider = new _tile_internal__WEBPACK_IMPORTED_MODULE_22__.MapTiledGraphicsProvider(this.viewportId, this.displayStyle);
138072
138107
  // ViewState.load loads all the subcategories for the categories in its category selector.
138073
138108
  // But the set of categories may have changed since loading the view.
138074
138109
  // Ensure we fill the cache for the current set of categories.
@@ -138091,7 +138126,7 @@ class Viewport {
138091
138126
  this.setFeatureOverrideProviderChanged();
138092
138127
  this.invalidateRenderPlan();
138093
138128
  this.detachFromDisplayStyle();
138094
- this._mapTiledGraphicsProvider = new _tile_internal__WEBPACK_IMPORTED_MODULE_21__.MapTiledGraphicsProvider(this.viewportId, newStyle);
138129
+ this._mapTiledGraphicsProvider = new _tile_internal__WEBPACK_IMPORTED_MODULE_22__.MapTiledGraphicsProvider(this.viewportId, newStyle);
138095
138130
  this.registerDisplayStyleListeners(newStyle);
138096
138131
  }));
138097
138132
  if (view.isSpatialView()) {
@@ -138138,7 +138173,12 @@ class Viewport {
138138
138173
  removals.push(settings.contextRealityModels.onDisplaySettingsChanged.addListener(displayStyleChanged));
138139
138174
  removals.push(settings.contextRealityModels.onInvisibleChanged.addListener(invalidateControllerAndDisplayStyleChanged));
138140
138175
  removals.push(settings.onRealityModelDisplaySettingsChanged.addListener(displayStyleChanged));
138141
- removals.push(settings.contextRealityModels.onChanged.addListener(displayStyleChanged));
138176
+ removals.push(settings.contextRealityModels.onChanged.addListener((previousModel, _newModel) => {
138177
+ displayStyleChanged();
138178
+ // When a reality model is removed or replaced, detach its layer listeners to prevent leaks.
138179
+ if (previousModel instanceof _ContextRealityModelState__WEBPACK_IMPORTED_MODULE_4__.ContextRealityModelState)
138180
+ previousModel.detachLayerListeners();
138181
+ }));
138142
138182
  removals.push(style.onOSMBuildingDisplayChanged.addListener(() => {
138143
138183
  displayStyleChanged();
138144
138184
  this.synchWithView({ noSaveInUndo: true }); // May change frustum depth.
@@ -138146,7 +138186,7 @@ class Viewport {
138146
138186
  const analysisChanged = () => {
138147
138187
  this._changeFlags.setDisplayStyle();
138148
138188
  this._analysisFractionValid = false;
138149
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.requestNextAnimation();
138189
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.requestNextAnimation();
138150
138190
  };
138151
138191
  const analysisStyleChanged = () => {
138152
138192
  this.invalidateRenderPlan();
@@ -138158,7 +138198,7 @@ class Viewport {
138158
138198
  this._timePointValid = false;
138159
138199
  this._changeFlags.setDisplayStyle();
138160
138200
  this.setFeatureOverrideProviderChanged();
138161
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.requestNextAnimation();
138201
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.requestNextAnimation();
138162
138202
  };
138163
138203
  const scriptChanged = () => {
138164
138204
  scheduleChanged();
@@ -138229,6 +138269,13 @@ class Viewport {
138229
138269
  detachFromDisplayStyle() {
138230
138270
  this._detachFromDisplayStyle.forEach((f) => f());
138231
138271
  this._detachFromDisplayStyle.length = 0;
138272
+ // Detach layer listeners from reality model tree refs to prevent leaks.
138273
+ if (this._view) {
138274
+ for (const model of this.displayStyle.settings.contextRealityModels.models) {
138275
+ if (model instanceof _ContextRealityModelState__WEBPACK_IMPORTED_MODULE_4__.ContextRealityModelState)
138276
+ model.detachLayerListeners();
138277
+ }
138278
+ }
138232
138279
  if (this._mapTiledGraphicsProvider) {
138233
138280
  this._mapTiledGraphicsProvider.detachFromDisplayStyle();
138234
138281
  this._mapTiledGraphicsProvider = undefined;
@@ -138249,7 +138296,7 @@ class Viewport {
138249
138296
  if (contRend !== this._doContinuousRendering) {
138250
138297
  this._doContinuousRendering = contRend;
138251
138298
  if (contRend)
138252
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.requestNextAnimation();
138299
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.requestNextAnimation();
138253
138300
  }
138254
138301
  }
138255
138302
  /** A unique integer Id assigned to this Viewport upon construction.
@@ -138422,7 +138469,7 @@ class Viewport {
138422
138469
  /** @internal */
138423
138470
  *tiledGraphicsProviderRefs() {
138424
138471
  for (const provider of this.tiledGraphicsProviders) {
138425
- yield* _tile_internal__WEBPACK_IMPORTED_MODULE_21__.TiledGraphicsProvider.getTileTreeRefs(provider, this);
138472
+ yield* _tile_internal__WEBPACK_IMPORTED_MODULE_22__.TiledGraphicsProvider.getTileTreeRefs(provider, this);
138426
138473
  }
138427
138474
  }
138428
138475
  /** Apply a function to every tile tree reference associated with the map layers displayed by this viewport.
@@ -138457,10 +138504,10 @@ class Viewport {
138457
138504
  get areAllTileTreesLoaded() {
138458
138505
  if (!this.view.areAllTileTreesLoaded)
138459
138506
  return false;
138460
- if (this._mapTiledGraphicsProvider && !_tile_internal__WEBPACK_IMPORTED_MODULE_21__.TiledGraphicsProvider.isLoadingComplete(this._mapTiledGraphicsProvider, this))
138507
+ if (this._mapTiledGraphicsProvider && !_tile_internal__WEBPACK_IMPORTED_MODULE_22__.TiledGraphicsProvider.isLoadingComplete(this._mapTiledGraphicsProvider, this))
138461
138508
  return false;
138462
138509
  for (const provider of this._tiledGraphicsProviders)
138463
- if (!_tile_internal__WEBPACK_IMPORTED_MODULE_21__.TiledGraphicsProvider.isLoadingComplete(provider, this))
138510
+ if (!_tile_internal__WEBPACK_IMPORTED_MODULE_22__.TiledGraphicsProvider.isLoadingComplete(provider, this))
138464
138511
  return false;
138465
138512
  return true;
138466
138513
  }
@@ -138568,7 +138615,7 @@ class Viewport {
138568
138615
  /** The number of outstanding requests for tiles to be displayed in this viewport.
138569
138616
  * @see Viewport.numSelectedTiles
138570
138617
  */
138571
- get numRequestedTiles() { return _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getNumRequestsForUser(this); }
138618
+ get numRequestedTiles() { return _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.tileAdmin.getNumRequestsForUser(this); }
138572
138619
  /** The number of tiles selected for display in the view as of the most recently-drawn frame.
138573
138620
  * The tiles selected may not meet the desired level-of-detail for the view, instead being temporarily drawn while
138574
138621
  * tiles of more appropriate level-of-detail are loaded asynchronously.
@@ -138576,7 +138623,7 @@ class Viewport {
138576
138623
  * @see Viewport.numReadyTiles
138577
138624
  */
138578
138625
  get numSelectedTiles() {
138579
- const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(this);
138626
+ const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.tileAdmin.getTilesForUser(this);
138580
138627
  return undefined !== tiles ? tiles.selected.size + tiles.external.selected : 0;
138581
138628
  }
138582
138629
  /** The number of tiles which were ready and met the desired level-of-detail for display in the view as of the most recently-drawn frame.
@@ -138587,7 +138634,7 @@ class Viewport {
138587
138634
  * @see Viewport.numRequestedTiles
138588
138635
  */
138589
138636
  get numReadyTiles() {
138590
- const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(this);
138637
+ const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.tileAdmin.getTilesForUser(this);
138591
138638
  return undefined !== tiles ? tiles.ready.size + tiles.external.ready : 0;
138592
138639
  }
138593
138640
  /** @internal */
@@ -138603,7 +138650,7 @@ class Viewport {
138603
138650
  this.updateChangeFlags(view);
138604
138651
  this.doSetupFromView(view);
138605
138652
  this.invalidateController();
138606
- const isMapLayerChanged = undefined !== prevView && (0,_internal_render_webgl_MapLayerParams__WEBPACK_IMPORTED_MODULE_33__.compareMapLayer)(prevView, view);
138653
+ const isMapLayerChanged = undefined !== prevView && (0,_internal_render_webgl_MapLayerParams__WEBPACK_IMPORTED_MODULE_34__.compareMapLayer)(prevView, view);
138607
138654
  this.target.reset(isMapLayerChanged); // Handle Reality Map Tile Map Layer changes & update logic
138608
138655
  if (undefined !== prevView && prevView !== view) {
138609
138656
  this.onChangeView.raiseEvent(this, prevView);
@@ -138615,17 +138662,17 @@ class Viewport {
138615
138662
  * @param coordSys the coordinate system of the specified point
138616
138663
  * @param borderPaddingFactor optional border for testing with inset view rectangle.
138617
138664
  */
138618
- isPointVisibleXY(point, coordSys = _CoordSystem__WEBPACK_IMPORTED_MODULE_4__.CoordSystem.World, borderPaddingFactor = 0.0) {
138665
+ isPointVisibleXY(point, coordSys = _CoordSystem__WEBPACK_IMPORTED_MODULE_5__.CoordSystem.World, borderPaddingFactor = 0.0) {
138619
138666
  let testPtView = point;
138620
138667
  switch (coordSys) {
138621
- case _CoordSystem__WEBPACK_IMPORTED_MODULE_4__.CoordSystem.Npc:
138668
+ case _CoordSystem__WEBPACK_IMPORTED_MODULE_5__.CoordSystem.Npc:
138622
138669
  testPtView = this.npcToView(point);
138623
138670
  break;
138624
- case _CoordSystem__WEBPACK_IMPORTED_MODULE_4__.CoordSystem.World:
138671
+ case _CoordSystem__WEBPACK_IMPORTED_MODULE_5__.CoordSystem.World:
138625
138672
  testPtView = this.worldToView(point);
138626
138673
  break;
138627
138674
  }
138628
- const frustum = this.getFrustum(_CoordSystem__WEBPACK_IMPORTED_MODULE_4__.CoordSystem.View);
138675
+ const frustum = this.getFrustum(_CoordSystem__WEBPACK_IMPORTED_MODULE_5__.CoordSystem.View);
138629
138676
  const screenRangeX = frustum.points[_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Npc._000].distance(frustum.points[_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Npc._100]);
138630
138677
  const screenRangeY = frustum.points[_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Npc._000].distance(frustum.points[_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Npc._010]);
138631
138678
  const xBorder = screenRangeX * borderPaddingFactor;
@@ -138649,7 +138696,7 @@ class Viewport {
138649
138696
  if (undefined === readRect)
138650
138697
  return undefined;
138651
138698
  let retVal;
138652
- this.readPixels(readRect, _render_Pixel__WEBPACK_IMPORTED_MODULE_17__.Pixel.Selector.GeometryAndDistance, (pixels) => {
138699
+ this.readPixels(readRect, _render_Pixel__WEBPACK_IMPORTED_MODULE_18__.Pixel.Selector.GeometryAndDistance, (pixels) => {
138653
138700
  if (!pixels)
138654
138701
  return;
138655
138702
  readRect.left = this.cssPixelsToDevicePixels(readRect.left);
@@ -138700,7 +138747,7 @@ class Viewport {
138700
138747
  turnCameraOn(lensAngle) {
138701
138748
  const view = this.view;
138702
138749
  if (!view.is3d() || !view.supportsCamera())
138703
- return _ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.InvalidViewport;
138750
+ return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.InvalidViewport;
138704
138751
  if (!lensAngle)
138705
138752
  lensAngle = view.camera.lens;
138706
138753
  _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Camera.validateLensAngle(lensAngle);
@@ -138728,7 +138775,7 @@ class Viewport {
138728
138775
  const frontDistance = view.minimumFrontDistance();
138729
138776
  status = view.lookAt({ eyePoint, targetPoint, upVector: view.getYVector(), lensAngle, frontDistance, backDistance });
138730
138777
  }
138731
- if (_ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.Success === status)
138778
+ if (_ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success === status)
138732
138779
  this.setupFromView();
138733
138780
  return status;
138734
138781
  }
@@ -138739,20 +138786,20 @@ class Viewport {
138739
138786
  }
138740
138787
  doSetupFromView(view) {
138741
138788
  if (this._inViewChangedEvent)
138742
- return _ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.Success; // ignore echos
138789
+ return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success; // ignore echos
138743
138790
  if (!this.isAspectRatioLocked)
138744
138791
  view.fixAspectRatio(this.viewRect.aspect);
138745
138792
  this.setView(view);
138746
- const viewSpace = _ViewingSpace__WEBPACK_IMPORTED_MODULE_26__.ViewingSpace.createFromViewport(this);
138793
+ const viewSpace = _ViewingSpace__WEBPACK_IMPORTED_MODULE_27__.ViewingSpace.createFromViewport(this);
138747
138794
  if (undefined === viewSpace)
138748
- return _ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.InvalidViewport;
138795
+ return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.InvalidViewport;
138749
138796
  this._viewingSpace = viewSpace;
138750
138797
  this.invalidateRenderPlan();
138751
138798
  this._controllerValid = true;
138752
138799
  this._inViewChangedEvent = true;
138753
138800
  this.onViewChanged.raiseEvent(this);
138754
138801
  this._inViewChangedEvent = false;
138755
- return _ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.Success;
138802
+ return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success;
138756
138803
  }
138757
138804
  /** Establish the parameters of this Viewport from the current information in its ViewState */
138758
138805
  setupFromView(pose) {
@@ -138838,9 +138885,9 @@ class Viewport {
138838
138885
  * @return the view frustum
138839
138886
  * @note The "adjusted" box may be either larger or smaller than the "unadjusted" box.
138840
138887
  */
138841
- getFrustum(sys = _CoordSystem__WEBPACK_IMPORTED_MODULE_4__.CoordSystem.World, adjustedBox = true, box) { return this._viewingSpace.getFrustum(sys, adjustedBox, box); }
138888
+ getFrustum(sys = _CoordSystem__WEBPACK_IMPORTED_MODULE_5__.CoordSystem.World, adjustedBox = true, box) { return this._viewingSpace.getFrustum(sys, adjustedBox, box); }
138842
138889
  /** Get a copy of the current (unadjusted) frustum of this viewport, in world coordinates. */
138843
- getWorldFrustum(box) { return this.getFrustum(_CoordSystem__WEBPACK_IMPORTED_MODULE_4__.CoordSystem.World, false, box); }
138890
+ getWorldFrustum(box) { return this.getFrustum(_CoordSystem__WEBPACK_IMPORTED_MODULE_5__.CoordSystem.World, false, box); }
138844
138891
  /** Scroll the view by a given number of pixels.
138845
138892
  * @param screenDist distance to scroll, in pixels
138846
138893
  */
@@ -138850,7 +138897,7 @@ class Viewport {
138850
138897
  return;
138851
138898
  const distXYZ = new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d(screenDist.x, screenDist.y, 0);
138852
138899
  if (view.is3d() && view.isCameraOn) {
138853
- const frust = this.getFrustum(_CoordSystem__WEBPACK_IMPORTED_MODULE_4__.CoordSystem.View, false);
138900
+ const frust = this.getFrustum(_CoordSystem__WEBPACK_IMPORTED_MODULE_5__.CoordSystem.View, false);
138854
138901
  frust.translate(distXYZ);
138855
138902
  this.viewToWorldArray(frust.points);
138856
138903
  view.setupFromFrustum(frust);
@@ -138872,7 +138919,7 @@ class Viewport {
138872
138919
  zoom(newCenter, factor, options) {
138873
138920
  const view = this.view;
138874
138921
  if (undefined === view)
138875
- return _ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.InvalidViewport;
138922
+ return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.InvalidViewport;
138876
138923
  if (view.is3d() && view.isCameraOn) {
138877
138924
  const eyePoint = view.getEyePoint().clone();
138878
138925
  const targetPoint = view.getTargetPoint();
@@ -138886,7 +138933,7 @@ class Viewport {
138886
138933
  transform.multiplyPoint3d(eyePoint, eyePoint);
138887
138934
  targetPoint.setFrom(eyePoint.plusScaled(zDir, zDir.dotProduct(eyePoint.vectorTo(targetPoint))));
138888
138935
  const status = view.lookAt({ eyePoint, targetPoint, upVector: view.getYVector(), lensAngle: view.camera.lens });
138889
- if (_ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.Success !== status)
138936
+ if (_ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success !== status)
138890
138937
  return status;
138891
138938
  }
138892
138939
  else {
@@ -138897,7 +138944,7 @@ class Viewport {
138897
138944
  const center = rot.multiplyVector(newCenter ? newCenter : view.getCenter());
138898
138945
  // fix for min/max delta
138899
138946
  const stat = view.adjustViewDelta(delta, center, rot, this.viewRect.aspect, options);
138900
- if (_ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.Success !== stat)
138947
+ if (_ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success !== stat)
138901
138948
  return stat;
138902
138949
  if (!view.allow3dManipulations())
138903
138950
  center.z = 0.0;
@@ -138905,7 +138952,7 @@ class Viewport {
138905
138952
  view.setExtents(delta);
138906
138953
  }
138907
138954
  this.synchWithView(options);
138908
- return _ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.Success;
138955
+ return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success;
138909
138956
  }
138910
138957
  /** See [[zoomToPlacements]]. */
138911
138958
  zoomToPlacementProps(placementProps, options) {
@@ -138929,7 +138976,7 @@ class Viewport {
138929
138976
  view.setStandardRotation(options.standardViewId);
138930
138977
  }
138931
138978
  else if (undefined !== options.placementRelativeId) {
138932
- const viewRotation = _StandardView__WEBPACK_IMPORTED_MODULE_19__.StandardView.getStandardRotation(options.placementRelativeId).clone();
138979
+ const viewRotation = _StandardView__WEBPACK_IMPORTED_MODULE_20__.StandardView.getStandardRotation(options.placementRelativeId).clone();
138933
138980
  viewRotation.multiplyMatrixMatrixTranspose(placements[0].transform.matrix, viewRotation);
138934
138981
  view.setRotation(viewRotation);
138935
138982
  }
@@ -138944,7 +138991,7 @@ class Viewport {
138944
138991
  viewRange.extendArray(placement.getWorldCorners(frust).points, viewTransform);
138945
138992
  const ignoreError = {
138946
138993
  ...options,
138947
- onExtentsError: () => _ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.Success,
138994
+ onExtentsError: () => _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success,
138948
138995
  };
138949
138996
  view.lookAtViewAlignedVolume(viewRange, this.viewRect.aspect, ignoreError);
138950
138997
  this.synchWithView(options);
@@ -138994,7 +139041,7 @@ class Viewport {
138994
139041
  setupViewFromFrustum(inFrustum) {
138995
139042
  const validSize = this.view.setupFromFrustum(inFrustum);
138996
139043
  // note: always call setupFromView, even if setupFromFrustum failed
138997
- return (_ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.Success === this.setupFromView() && _ViewStatus__WEBPACK_IMPORTED_MODULE_28__.ViewStatus.Success === validSize);
139044
+ return (_ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success === this.setupFromView() && _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success === validSize);
138998
139045
  }
138999
139046
  /** Compute the range of all geometry to be displayed in this viewport. */
139000
139047
  computeViewRange() {
@@ -139095,7 +139142,7 @@ class Viewport {
139095
139142
  else
139096
139143
  eyeVec = this._viewingSpace.rotation.getRow(2);
139097
139144
  eyeVec.normalizeInPlace();
139098
- (0,_LinePlaneIntersect__WEBPACK_IMPORTED_MODULE_11__.linePlaneIntersect)(point, point, eyeVec, origin, planeNormal, false);
139145
+ (0,_LinePlaneIntersect__WEBPACK_IMPORTED_MODULE_12__.linePlaneIntersect)(point, point, eyeVec, origin, planeNormal, false);
139099
139146
  // // get origin and point in view coordinate system
139100
139147
  const pointView = point.clone();
139101
139148
  const originView = origin.clone();
@@ -139174,7 +139221,7 @@ class Viewport {
139174
139221
  }
139175
139222
  /** Create a context appropriate for producing the scene to be rendered by this viewport, e.g., by [[createScene]]. */
139176
139223
  createSceneContext() {
139177
- return new _ViewContext__WEBPACK_IMPORTED_MODULE_24__.SceneContext(this);
139224
+ return new _ViewContext__WEBPACK_IMPORTED_MODULE_25__.SceneContext(this);
139178
139225
  }
139179
139226
  /** Populate the context with the scene to be rendered by this viewport.
139180
139227
  * @note This method is not typically invoked directly - [[renderFrame]] invokes it as needed to recreate the scene.
@@ -139182,9 +139229,9 @@ class Viewport {
139182
139229
  createScene(context) {
139183
139230
  this.view.createScene(context);
139184
139231
  if (this._mapTiledGraphicsProvider)
139185
- _tile_internal__WEBPACK_IMPORTED_MODULE_21__.TiledGraphicsProvider.addToScene(this._mapTiledGraphicsProvider, context);
139232
+ _tile_internal__WEBPACK_IMPORTED_MODULE_22__.TiledGraphicsProvider.addToScene(this._mapTiledGraphicsProvider, context);
139186
139233
  for (const provider of this._tiledGraphicsProviders)
139187
- _tile_internal__WEBPACK_IMPORTED_MODULE_21__.TiledGraphicsProvider.addToScene(provider, context);
139234
+ _tile_internal__WEBPACK_IMPORTED_MODULE_22__.TiledGraphicsProvider.addToScene(provider, context);
139188
139235
  }
139189
139236
  /** Called when the visible contents of the viewport are redrawn.
139190
139237
  * @note Due to the frequency of this event, avoid performing expensive work inside event listeners.
@@ -139192,7 +139239,7 @@ class Viewport {
139192
139239
  onRender = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
139193
139240
  /** @internal */
139194
139241
  validateRenderPlan() {
139195
- this.target.changeRenderPlan((0,_internal_render_RenderPlan__WEBPACK_IMPORTED_MODULE_18__.createRenderPlanFromViewport)(this));
139242
+ this.target.changeRenderPlan((0,_internal_render_RenderPlan__WEBPACK_IMPORTED_MODULE_19__.createRenderPlanFromViewport)(this));
139196
139243
  this._renderPlanValid = true;
139197
139244
  }
139198
139245
  animate() {
@@ -139240,7 +139287,7 @@ class Viewport {
139240
139287
  isRedrawNeeded = true;
139241
139288
  const scheduleScript = view.displayStyle.scheduleScript;
139242
139289
  if (scheduleScript) {
139243
- target.animationBranches = _internal_render_AnimationBranchState__WEBPACK_IMPORTED_MODULE_16__.AnimationBranchStates.fromScript(scheduleScript, this.timePoint ?? scheduleScript.duration.low);
139290
+ target.animationBranches = _internal_render_AnimationBranchState__WEBPACK_IMPORTED_MODULE_17__.AnimationBranchStates.fromScript(scheduleScript, this.timePoint ?? scheduleScript.duration.low);
139244
139291
  if (scheduleScript.containsFeatureOverrides)
139245
139292
  overridesNeeded = true;
139246
139293
  if (scheduleScript.containsTransform && !this._freezeScene)
@@ -139249,15 +139296,15 @@ class Viewport {
139249
139296
  this._timePointValid = true;
139250
139297
  }
139251
139298
  if (overridesNeeded) {
139252
- const ovr = new _render_FeatureSymbology__WEBPACK_IMPORTED_MODULE_14__.FeatureSymbology.Overrides(this);
139299
+ const ovr = new _render_FeatureSymbology__WEBPACK_IMPORTED_MODULE_15__.FeatureSymbology.Overrides(this);
139253
139300
  target.overrideFeatureSymbology(ovr);
139254
139301
  isRedrawNeeded = true;
139255
139302
  }
139256
139303
  if (!this._sceneValid) {
139257
139304
  if (!this._freezeScene) {
139258
139305
  this._frameStatsCollector.beginTime("createChangeSceneTime");
139259
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.clearTilesForUser(this);
139260
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.clearUsageForUser(this);
139306
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.tileAdmin.clearTilesForUser(this);
139307
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.tileAdmin.clearUsageForUser(this);
139261
139308
  const context = this.createSceneContext();
139262
139309
  this.createScene(context);
139263
139310
  context.requestMissingTiles();
@@ -139276,7 +139323,7 @@ class Viewport {
139276
139323
  }
139277
139324
  if (!this._decorationsValid) {
139278
139325
  this._frameStatsCollector.beginTime("decorationsTime");
139279
- const decorations = new _render_Decorations__WEBPACK_IMPORTED_MODULE_13__.Decorations();
139326
+ const decorations = new _render_Decorations__WEBPACK_IMPORTED_MODULE_14__.Decorations();
139280
139327
  this.addDecorations(decorations);
139281
139328
  target.changeDecorations(decorations);
139282
139329
  this._decorationsValid = true;
@@ -139325,7 +139372,7 @@ class Viewport {
139325
139372
  }
139326
139373
  }
139327
139374
  if (requestNextAnimation || undefined !== this._animator || this.continuousRendering)
139328
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.requestNextAnimation();
139375
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.requestNextAnimation();
139329
139376
  }
139330
139377
  /** Populate a set of decoration graphics to be displayed in this viewport.
139331
139378
  * This base implementation produces no graphics.
@@ -139333,13 +139380,13 @@ class Viewport {
139333
139380
  addDecorations(_decorations) { }
139334
139381
  /** @internal */
139335
139382
  readPixels(arg0, selector, receiver, excludeNonLocatable) {
139336
- if (arg0 instanceof _common_ViewRect__WEBPACK_IMPORTED_MODULE_27__.ViewRect) {
139383
+ if (arg0 instanceof _common_ViewRect__WEBPACK_IMPORTED_MODULE_28__.ViewRect) {
139337
139384
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== selector && undefined !== receiver);
139338
139385
  return this._readPixels(arg0, selector, receiver, excludeNonLocatable);
139339
139386
  }
139340
139387
  // { rect, receiver, selector, excludeNonLocatable, excludedElements } = arg0;
139341
139388
  // this._readPixels(rect ?? this.viewRect, receiver, selector ?? Pixel.Selector.All, excludeNonLocatable, excludedElements);
139342
- this._readPixels(arg0.rect ?? this.viewRect, arg0.selector ?? _render_Pixel__WEBPACK_IMPORTED_MODULE_17__.Pixel.Selector.All, arg0.receiver, arg0.excludeNonLocatable, arg0.excludedElements);
139389
+ this._readPixels(arg0.rect ?? this.viewRect, arg0.selector ?? _render_Pixel__WEBPACK_IMPORTED_MODULE_18__.Pixel.Selector.All, arg0.receiver, arg0.excludeNonLocatable, arg0.excludedElements);
139343
139390
  }
139344
139391
  _readPixels(rect, selector, receiver, excludeNonLocatable, excludedElements) {
139345
139392
  if (this.isDisposed || rect.isNull || !rect.isContained(this.viewRect)) {
@@ -139376,7 +139423,7 @@ class Viewport {
139376
139423
  * @internal
139377
139424
  */
139378
139425
  hasAdditionalTiles() {
139379
- const tilesThisVp = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(this);
139426
+ const tilesThisVp = _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.tileAdmin.getTilesForUser(this);
139380
139427
  const ext = tilesThisVp?.external;
139381
139428
  if ((ext?.requested ?? 0) > 0)
139382
139429
  return true;
@@ -139385,7 +139432,7 @@ class Viewport {
139385
139432
  if (vp.numRequestedTiles > 0) {
139386
139433
  return true;
139387
139434
  }
139388
- const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(vp);
139435
+ const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.tileAdmin.getTilesForUser(vp);
139389
139436
  if (tiles && tiles.external.requested > 0) {
139390
139437
  return true;
139391
139438
  }
@@ -139415,7 +139462,7 @@ class Viewport {
139415
139462
  haveNewTiles = this.hasAdditionalTiles();
139416
139463
  // Since the viewport is not being managed by the ViewManager, we must manually pump the TileAdmin to initiate further tile requests each tick of the tile-wait loop.
139417
139464
  if (haveNewTiles)
139418
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.process();
139465
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.tileAdmin.process();
139419
139466
  await _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeDuration.wait(100);
139420
139467
  }
139421
139468
  }
@@ -139473,11 +139520,11 @@ class Viewport {
139473
139520
  * @note This function may be slow, especially if the features are being queried from screen pixels. Avoid calling it repeatedly in rapid succession.
139474
139521
  */
139475
139522
  queryVisibleFeatures(options, callback) {
139476
- return (0,_internal_render_QueryVisibileFeatures__WEBPACK_IMPORTED_MODULE_29__.queryVisibleFeatures)(this, options, callback);
139523
+ return (0,_internal_render_QueryVisibileFeatures__WEBPACK_IMPORTED_MODULE_30__.queryVisibleFeatures)(this, options, callback);
139477
139524
  }
139478
139525
  /** Record graphics memory consumed by this viewport. */
139479
139526
  collectStatistics(stats) {
139480
- const trees = new _tile_internal__WEBPACK_IMPORTED_MODULE_21__.DisclosedTileTreeSet();
139527
+ const trees = new _tile_internal__WEBPACK_IMPORTED_MODULE_22__.DisclosedTileTreeSet();
139481
139528
  this.discloseTileTrees(trees);
139482
139529
  for (const tree of trees)
139483
139530
  tree.collectStatistics(stats);
@@ -139497,7 +139544,7 @@ class Viewport {
139497
139544
  * @alpha
139498
139545
  */
139499
139546
  get tileSizeModifier() {
139500
- return undefined !== this._tileSizeModifier ? this._tileSizeModifier : _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.defaultTileSizeModifier;
139547
+ return undefined !== this._tileSizeModifier ? this._tileSizeModifier : _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.tileAdmin.defaultTileSizeModifier;
139501
139548
  }
139502
139549
  /** Controls this Viewport's [[tileSizeModifier]].
139503
139550
  * @param modifier If defined, overrides [[TileAdmin.defaultTileSizeModifier]]; otherwise, resets it to that default. Must be greater than zero.
@@ -139679,7 +139726,7 @@ class ScreenViewport extends Viewport {
139679
139726
  _lastPose; // the pose the last time this view was rendered
139680
139727
  _webglCanvas;
139681
139728
  _logo;
139682
- _decorationCache = new _DecorationsCache__WEBPACK_IMPORTED_MODULE_5__.DecorationsCache();
139729
+ _decorationCache = new _DecorationsCache__WEBPACK_IMPORTED_MODULE_6__.DecorationsCache();
139683
139730
  /** The parent HTMLDivElement of the canvas. */
139684
139731
  parentDiv;
139685
139732
  /** The div created to hold all viewport elements. */
@@ -139704,7 +139751,7 @@ class ScreenViewport extends Viewport {
139704
139751
  if (0 === parentDiv.clientWidth || 0 === parentDiv.clientHeight)
139705
139752
  throw new Error("viewport cannot be created from a div with zero width or height");
139706
139753
  const canvas = document.createElement("canvas");
139707
- const vp = new this(canvas, parentDiv, _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.renderSystem.createTarget(canvas));
139754
+ const vp = new this(canvas, parentDiv, _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.renderSystem.createTarget(canvas));
139708
139755
  vp.initialize();
139709
139756
  vp.changeView(view);
139710
139757
  return vp;
@@ -139780,23 +139827,23 @@ class ScreenViewport extends Viewport {
139780
139827
  get logo() { return this._logo; }
139781
139828
  /** @internal */
139782
139829
  addLogo() {
139783
- const logo = this._logo = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.makeHTMLElement("img", { parent: this.vpDiv, className: "imodeljs-icon" });
139784
- logo.src = `${_IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.publicPath}images/imodeljs-icon.svg`;
139830
+ const logo = this._logo = _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.makeHTMLElement("img", { parent: this.vpDiv, className: "imodeljs-icon" });
139831
+ logo.src = `${_IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.publicPath}images/imodeljs-icon.svg`;
139785
139832
  logo.alt = "";
139786
139833
  const showLogos = async (ev) => {
139787
- const aboutBox = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.makeModalDiv({ autoClose: true, width: 460, closeBox: true, rootDiv: this.vpDiv.ownerDocument.body }).modal;
139834
+ const aboutBox = _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.makeModalDiv({ autoClose: true, width: 460, closeBox: true, rootDiv: this.vpDiv.ownerDocument.body }).modal;
139788
139835
  aboutBox.className += " imodeljs-about"; // only added so the CSS knows this is the about dialog
139789
- const logos = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.makeHTMLElement("table", { parent: aboutBox, className: "logo-cards" });
139790
- if (undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.applicationLogoCard) {
139791
- logos.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.applicationLogoCard());
139836
+ const logos = _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.makeHTMLElement("table", { parent: aboutBox, className: "logo-cards" });
139837
+ if (undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.applicationLogoCard) {
139838
+ logos.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.applicationLogoCard());
139792
139839
  }
139793
- logos.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.makeIModelJsLogoCard());
139840
+ logos.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.makeIModelJsLogoCard());
139794
139841
  const promises = new Array();
139795
139842
  for (const ref of this.getTileTreeRefs()) {
139796
139843
  promises.push(ref.addAttributions(logos, this));
139797
139844
  }
139798
- if (undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.applicationLogoCardFooter) {
139799
- logos.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.applicationLogoCardFooter());
139845
+ if (undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.applicationLogoCardFooter) {
139846
+ logos.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.applicationLogoCardFooter());
139800
139847
  }
139801
139848
  await Promise.all(promises);
139802
139849
  ev.stopPropagation();
@@ -139811,7 +139858,7 @@ class ScreenViewport extends Viewport {
139811
139858
  this.parentDiv = parentDiv;
139812
139859
  // first remove all children of the parent Div
139813
139860
  ScreenViewport.removeAllChildren(parentDiv);
139814
- const div = this.vpDiv = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.makeHTMLElement("div", { className: "imodeljs-vp" });
139861
+ const div = this.vpDiv = _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.makeHTMLElement("div", { className: "imodeljs-vp" });
139815
139862
  this.addChildDiv(this.parentDiv, div, 0);
139816
139863
  this.addChildDiv(this.vpDiv, canvas, 10);
139817
139864
  this.target.updateViewRect();
@@ -139828,7 +139875,7 @@ class ScreenViewport extends Viewport {
139828
139875
  * @note There is only one ToolTip window, so calling this method more than once will move the toolTip and show the second message.
139829
139876
  */
139830
139877
  openToolTip(message, location, options) {
139831
- _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.notifications.openToolTip(this.toolTipDiv, message, location, options);
139878
+ _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.notifications.openToolTip(this.toolTipDiv, message, location, options);
139832
139879
  }
139833
139880
  /** @internal */
139834
139881
  mousePosFromEvent(ev) {
@@ -139844,7 +139891,7 @@ class ScreenViewport extends Viewport {
139844
139891
  */
139845
139892
  onViewManagerAdd() {
139846
139893
  this.onViewManagerDrop();
139847
- this._evController = new _tools_EventController__WEBPACK_IMPORTED_MODULE_22__.EventController(this);
139894
+ this._evController = new _tools_EventController__WEBPACK_IMPORTED_MODULE_23__.EventController(this);
139848
139895
  this._resizeObserver = new ResizeObserver(() => {
139849
139896
  this.requestRedraw();
139850
139897
  });
@@ -139889,7 +139936,7 @@ class ScreenViewport extends Viewport {
139889
139936
  return result;
139890
139937
  }
139891
139938
  /** @internal */
139892
- picker = new _ElementLocateManager__WEBPACK_IMPORTED_MODULE_6__.ElementPicker(); // Picker used in pickDepthPoint below so it hangs around and can be queried later.
139939
+ picker = new _ElementLocateManager__WEBPACK_IMPORTED_MODULE_7__.ElementPicker(); // Picker used in pickDepthPoint below so it hangs around and can be queried later.
139893
139940
  /** Find a point on geometry visible in this Viewport, within a radius of supplied pick point.
139894
139941
  * If no geometry is selected, return the point projected to the most appropriate reference plane.
139895
139942
  * @param pickPoint Point to search about, in world coordinates
@@ -139902,9 +139949,9 @@ class ScreenViewport extends Viewport {
139902
139949
  if (!this.view.is3d())
139903
139950
  return { plane: _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Plane3dByOriginAndUnitNormal.createXYPlane(pickPoint), source: DepthPointSource.ACS };
139904
139951
  if (undefined === radius)
139905
- radius = this.pixelsFromInches(_tools_ToolSettings__WEBPACK_IMPORTED_MODULE_23__.ToolSettings.viewToolPickRadiusInches);
139952
+ radius = this.pixelsFromInches(_tools_ToolSettings__WEBPACK_IMPORTED_MODULE_24__.ToolSettings.viewToolPickRadiusInches);
139906
139953
  this.picker.empty();
139907
- const locateOpts = new _ElementLocateManager__WEBPACK_IMPORTED_MODULE_6__.LocateOptions();
139954
+ const locateOpts = new _ElementLocateManager__WEBPACK_IMPORTED_MODULE_7__.LocateOptions();
139908
139955
  locateOpts.allowNonLocatable = (undefined === options || !options.excludeNonLocatable);
139909
139956
  locateOpts.allowDecorations = (undefined === options || !options.excludeDecorations);
139910
139957
  locateOpts.allowExternalIModels = (undefined === options || !options.excludeExternalIModels);
@@ -139968,7 +140015,7 @@ class ScreenViewport extends Viewport {
139968
140015
  */
139969
140016
  animateFrustumChange(options) {
139970
140017
  if (this._lastPose && this._currentBaseline)
139971
- this.setAnimator(new _FrustumAnimator__WEBPACK_IMPORTED_MODULE_7__.FrustumAnimator(options ? options : {}, this, this._lastPose, this.view.savePose()));
140018
+ this.setAnimator(new _FrustumAnimator__WEBPACK_IMPORTED_MODULE_8__.FrustumAnimator(options ? options : {}, this, this._lastPose, this.view.savePose()));
139972
140019
  }
139973
140020
  /** Animate the view frustum from a starting frustum to the current view frustum. In other words,
139974
140021
  * save a starting frustum (presumably what the user is currently looking at), then adjust the view to
@@ -139982,7 +140029,7 @@ class ScreenViewport extends Viewport {
139982
140029
  }
139983
140030
  /** Animate the view frustum to a destination location the earth from the current frustum. */
139984
140031
  async animateFlyoverToGlobalLocation(destination) {
139985
- const animator = await _GlobeAnimator__WEBPACK_IMPORTED_MODULE_8__.GlobeAnimator.create(this, destination);
140032
+ const animator = await _GlobeAnimator__WEBPACK_IMPORTED_MODULE_9__.GlobeAnimator.create(this, destination);
139986
140033
  this.setAnimator(animator);
139987
140034
  }
139988
140035
  /** @internal */
@@ -140000,7 +140047,7 @@ class ScreenViewport extends Viewport {
140000
140047
  addDecorations(decorations) {
140001
140048
  // SEE: decorationDiv doc comment
140002
140049
  ScreenViewport.markAllChildrenForRemoval(this.decorationDiv);
140003
- const context = new _ViewContext__WEBPACK_IMPORTED_MODULE_24__.DecorateContext(this, decorations, this._decorationCache);
140050
+ const context = new _ViewContext__WEBPACK_IMPORTED_MODULE_25__.DecorateContext(this, decorations, this._decorationCache);
140004
140051
  try {
140005
140052
  // It is an error to try to remove cached decorations while we are decorating.
140006
140053
  // Some naughty decorators unwittingly do so by e.g. invalidating the scene in their decorate method.
@@ -140009,7 +140056,7 @@ class ScreenViewport extends Viewport {
140009
140056
  for (const ref of this.getTileTreeRefs()) {
140010
140057
  context.addFromDecorator(ref);
140011
140058
  }
140012
- for (const decorator of _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.viewManager.decorators)
140059
+ for (const decorator of _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.viewManager.decorators)
140013
140060
  context.addFromDecorator(decorator);
140014
140061
  ScreenViewport.removeMarkedChildren(this.decorationDiv);
140015
140062
  }
@@ -140135,9 +140182,9 @@ class ScreenViewport extends Viewport {
140135
140182
  static drawLocateHitDetail(context, aperture, hit) {
140136
140183
  if (!context.viewport.view.is3d())
140137
140184
  return; // Not valuable feedback in 2d...
140138
- if (!(hit instanceof _HitDetail__WEBPACK_IMPORTED_MODULE_9__.SnapDetail) || !hit.normal || hit.isPointAdjusted)
140185
+ if (!(hit instanceof _HitDetail__WEBPACK_IMPORTED_MODULE_10__.SnapDetail) || !hit.normal || hit.isPointAdjusted)
140139
140186
  return; // AccuSnap will flash edge/segment geometry if not a surface hit or snap location has been adjusted...
140140
- const builder = context.createGraphicBuilder(_common_render_GraphicType__WEBPACK_IMPORTED_MODULE_32__.GraphicType.WorldOverlay);
140187
+ const builder = context.createGraphicBuilder(_common_render_GraphicType__WEBPACK_IMPORTED_MODULE_33__.GraphicType.WorldOverlay);
140141
140188
  const color = context.viewport.hilite.color.inverse().withTransparency(100); // Invert hilite color for good contrast
140142
140189
  const colorFill = color.withTransparency(200);
140143
140190
  builder.setSymbology(color, colorFill, 1);
@@ -140226,14 +140273,14 @@ class ScreenViewport extends Viewport {
140226
140273
  }
140227
140274
  /** Overrides [[Viewport.waitForSceneCompletion]] to allow the render loop to load graphics until the scene is complete. */
140228
140275
  async waitForSceneCompletion() {
140229
- if (!_IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.viewManager.hasViewport(this))
140276
+ if (!_IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.viewManager.hasViewport(this))
140230
140277
  return super.waitForSceneCompletion();
140231
140278
  const system = this.target.renderSystem;
140232
140279
  // Let the ViewManager/TileAdmin initiate all further requests for tiles until no more requests are pending.
140233
140280
  // We will latch onto the onRender event in order to know when tile requests are finished and the promise is fulfilled.
140234
140281
  const promise = new Promise((resolve, _reject) => {
140235
140282
  const removeOnRender = this.onRender.addListener(() => {
140236
- const removeOnViewClose = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.viewManager.onViewClose.addListener((vp) => {
140283
+ const removeOnViewClose = _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.viewManager.onViewClose.addListener((vp) => {
140237
140284
  if (vp === this) {
140238
140285
  removeOnViewClose();
140239
140286
  removeOnRender();
@@ -140305,7 +140352,7 @@ class OffScreenViewport extends Viewport {
140305
140352
  this.attachToView();
140306
140353
  }
140307
140354
  static create(options) {
140308
- return this.createViewport(options.view, _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.renderSystem.createOffscreenTarget(options.viewRect), options.lockAspectRatio);
140355
+ return this.createViewport(options.view, _IModelApp__WEBPACK_IMPORTED_MODULE_11__.IModelApp.renderSystem.createOffscreenTarget(options.viewRect), options.lockAspectRatio);
140309
140356
  }
140310
140357
  /** @internal because RenderTarget is internal */
140311
140358
  static createViewport(view, target, lockAspectRatio = false) {
@@ -150700,7 +150747,9 @@ class SheetViewAttachments {
150700
150747
  // We are attached to a Viewport - reload the renderers.
150701
150748
  this.loadRenderers();
150702
150749
  }
150750
+ return true;
150703
150751
  }
150752
+ return false;
150704
150753
  }
150705
150754
  attachToViewport(args) {
150706
150755
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_1__.assert)(undefined === this._renderers);
@@ -186528,31 +186577,35 @@ class LayerTileTreeReferenceHandler {
186528
186577
  this._layerTrees.push(tree);
186529
186578
  }
186530
186579
  }
186580
+ detachFromDisplayStyle() {
186581
+ this._detachFromDisplayStyle.forEach((f) => f());
186582
+ this._detachFromDisplayStyle.length = 0;
186583
+ }
186531
186584
  initializeLayers(context) {
186532
186585
  // Map tiles handle refresh logic differently
186533
186586
  if (!this._mapTile) {
186534
186587
  const removals = this._detachFromDisplayStyle;
186535
- const mapImagery = context.viewport.displayStyle.settings.mapImagery;
186536
186588
  if (0 === removals.length) {
186537
186589
  removals.push(context.viewport.displayStyle.settings.onMapImageryChanged.addListener((imagery) => {
186538
186590
  this.setBaseLayerSettings(imagery.backgroundBase);
186539
186591
  this.setLayerSettings(imagery.backgroundLayers);
186540
186592
  }));
186593
+ removals.push(context.viewport.onChangeView.addListener((vp, previousViewState) => {
186594
+ if ((0,_tile_internal__WEBPACK_IMPORTED_MODULE_2__.compareMapLayer)(previousViewState, vp.view)) {
186595
+ const currentImagery = vp.displayStyle.settings.mapImagery;
186596
+ this.setBaseLayerSettings(currentImagery.backgroundBase);
186597
+ this.setLayerSettings(currentImagery.backgroundLayers);
186598
+ }
186599
+ }));
186600
+ removals.push(context.viewport.onViewedModelsChanged.addListener((viewport) => {
186601
+ const currentImagery = viewport.displayStyle.settings.mapImagery;
186602
+ if (currentImagery.backgroundLayers.length > 0) {
186603
+ this.setBaseLayerSettings(currentImagery.backgroundBase);
186604
+ this.setLayerSettings(currentImagery.backgroundLayers);
186605
+ viewport.invalidateScene();
186606
+ }
186607
+ }));
186541
186608
  }
186542
- removals.push(context.viewport.onChangeView.addListener((vp, previousViewState) => {
186543
- if ((0,_tile_internal__WEBPACK_IMPORTED_MODULE_2__.compareMapLayer)(previousViewState, vp.view)) {
186544
- this.setBaseLayerSettings(mapImagery.backgroundBase);
186545
- this.setLayerSettings(mapImagery.backgroundLayers);
186546
- }
186547
- }));
186548
- removals.push(context.viewport.onViewedModelsChanged.addListener((viewport) => {
186549
- const layers = viewport.displayStyle.settings.mapImagery.backgroundLayers;
186550
- if (layers.length > 0) {
186551
- this.setBaseLayerSettings(mapImagery.backgroundBase);
186552
- this.setLayerSettings(mapImagery.backgroundLayers);
186553
- viewport.invalidateScene();
186554
- }
186555
- }));
186556
186609
  }
186557
186610
  let hasLoadedTileTree = false;
186558
186611
  const layerHandler = this._ref.treeOwner.load()?.layerHandler;
@@ -187786,6 +187839,9 @@ class PrimaryTreeReference extends _tile_internal__WEBPACK_IMPORTED_MODULE_6__.T
187786
187839
  get isPlanProjection() {
187787
187840
  return false;
187788
187841
  }
187842
+ detachLayerListeners() {
187843
+ this._layerRefHandler.detachFromDisplayStyle();
187844
+ }
187789
187845
  discloseTileTrees(trees) {
187790
187846
  super.discloseTileTrees(trees);
187791
187847
  this._layerRefHandler.discloseTileTrees(trees);
@@ -188144,6 +188200,16 @@ class SpatialModelRefs {
188144
188200
  for (const ref of this._animatedRefs)
188145
188201
  ref.deactivated = deactivated ?? !ref.deactivated;
188146
188202
  }
188203
+ detachLayerListeners() {
188204
+ if (this._primaryRef)
188205
+ this._primaryRef.detachLayerListeners();
188206
+ else if (this._modelRef instanceof _tile_internal__WEBPACK_IMPORTED_MODULE_6__.RealityModelTileTree.Reference)
188207
+ this._modelRef.detachLayerListeners();
188208
+ for (const ref of this._animatedRefs)
188209
+ ref.detachLayerListeners();
188210
+ if (this._sectionCutRef)
188211
+ this._sectionCutRef.detachLayerListeners();
188212
+ }
188147
188213
  get _primaryRef() {
188148
188214
  if (!this._isPrimaryRef)
188149
188215
  return undefined;
@@ -188173,7 +188239,16 @@ class SpatialRefs {
188173
188239
  this._allLoaded = false;
188174
188240
  }
188175
188241
  attachToViewport() { }
188176
- detachFromViewport() { }
188242
+ detachFromViewport() {
188243
+ for (const refs of this._refs.values())
188244
+ refs.detachLayerListeners();
188245
+ for (const refs of this._swapRefs.values())
188246
+ refs.detachLayerListeners();
188247
+ for (const refs of this._sectionCutOnlyRefs.values())
188248
+ refs.detachLayerListeners();
188249
+ for (const refs of this._swapSectionCutOnlyRefs.values())
188250
+ refs.detachLayerListeners();
188251
+ }
188177
188252
  *[Symbol.iterator]() {
188178
188253
  this.load();
188179
188254
  for (const modelRef of this._refs.values())
@@ -188259,7 +188334,10 @@ class SpatialRefs {
188259
188334
  prev = this._swapRefs;
188260
188335
  }
188261
188336
  let modelRefs = prev.get(modelId);
188262
- if (!modelRefs) {
188337
+ if (modelRefs) {
188338
+ prev.delete(modelId);
188339
+ }
188340
+ else {
188263
188341
  const model = this._view.iModel.models.getLoaded(modelId)?.asGeometricModel3d;
188264
188342
  if (model) {
188265
188343
  modelRefs = new SpatialModelRefs(model, this._view, excluded);
@@ -188270,6 +188348,11 @@ class SpatialRefs {
188270
188348
  if (modelRefs)
188271
188349
  cur.set(modelId, modelRefs);
188272
188350
  }
188351
+ // Detach event listeners from model refs that are no longer in the selector.
188352
+ for (const dropped of this._swapRefs.values())
188353
+ dropped.detachLayerListeners();
188354
+ for (const dropped of this._swapSectionCutOnlyRefs.values())
188355
+ dropped.detachLayerListeners();
188273
188356
  }
188274
188357
  }
188275
188358
 
@@ -188787,6 +188870,9 @@ class RealityModelTileTree extends _tile_internal__WEBPACK_IMPORTED_MODULE_8__.R
188787
188870
  _getDisplaySettings;
188788
188871
  _layerRefHandler;
188789
188872
  iModel;
188873
+ detachLayerListeners() {
188874
+ this._layerRefHandler.detachFromDisplayStyle();
188875
+ }
188790
188876
  get planarClipMask() { return this._planarClipMask; }
188791
188877
  set planarClipMask(planarClipMask) { this._planarClipMask = planarClipMask; }
188792
188878
  get planarClipMaskPriority() {
@@ -217706,10 +217792,13 @@ class PrimitiveTool extends _Tool__WEBPACK_IMPORTED_MODULE_4__.InteractiveTool {
217706
217792
  _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.toolAdmin.updateDynamics(undefined, undefined, true); // Don't wait for motion to update dynamics...
217707
217793
  return true;
217708
217794
  }
217709
- /** If this tool is editing a briefcase, commits any elements that the tool has changed, supplying the tool flyover for the undo description. */
217795
+ /**
217796
+ * If this tool is editing a briefcase, commits any elements that the tool has changed, supplying the tool flyover for the undo description.
217797
+ * @deprecated Use methods on [[EditCommand]] IPC instead.
217798
+ */
217710
217799
  async saveChanges() {
217711
217800
  if (this.iModel.isBriefcaseConnection())
217712
- return this.iModel.saveChanges(this.flyover);
217801
+ return this.iModel.saveChanges(this.flyover); // eslint-disable-line @typescript-eslint/no-deprecated
217713
217802
  }
217714
217803
  }
217715
217804
 
@@ -348875,7 +348964,7 @@ class TestContext {
348875
348964
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
348876
348965
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
348877
348966
  await core_frontend_1.NoRenderApp.startup({
348878
- applicationVersion: "5.9.0-dev.4",
348967
+ applicationVersion: "5.9.0-dev.5",
348879
348968
  applicationId: this.settings.gprid,
348880
348969
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
348881
348970
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -376056,7 +376145,7 @@ var loadLanguages = instance.loadLanguages;
376056
376145
  /***/ ((module) => {
376057
376146
 
376058
376147
  "use strict";
376059
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.9.0-dev.4","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.9","@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/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","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":"^3.0.6","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"}}');
376148
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.9.0-dev.5","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.9","@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/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","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":"^3.0.6","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"}}');
376060
376149
 
376061
376150
  /***/ }),
376062
376151