@itwin/ecschema-rpcinterface-tests 5.0.0-dev.49 → 5.0.0-dev.50

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.
@@ -40820,7 +40820,7 @@ __webpack_require__.r(__webpack_exports__);
40820
40820
 
40821
40821
  /** Represents a texture image applied to a surface during rendering.
40822
40822
  * A RenderTexture is typically - but not always - associated with a [[RenderMaterial]].
40823
- * @see [RenderSystem.createTextureFromImage]($frontend) to obtain a texture from an HTML image.
40823
+ * @see [RenderSystem.createTexture]($frontend) to obtain a texture.
40824
40824
  * @see [RenderSystem.createTextureFromElement]($frontend) to obtain a texture from a [Texture]($backend) element.
40825
40825
  * @public
40826
40826
  */
@@ -77259,12 +77259,9 @@ class BriefcaseConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_5__
77259
77259
  */
77260
77260
  async pullChanges(toIndex, options) {
77261
77261
  const removeListeners = [];
77262
- // eslint-disable-next-line @typescript-eslint/no-deprecated
77263
- const shouldReportProgress = !!options?.progressCallback || !!options?.downloadProgressCallback;
77262
+ const shouldReportProgress = !!options?.downloadProgressCallback;
77264
77263
  if (shouldReportProgress) {
77265
77264
  const handleProgress = (_evt, data) => {
77266
- // eslint-disable-next-line @typescript-eslint/no-deprecated
77267
- options?.progressCallback?.(data);
77268
77265
  options?.downloadProgressCallback?.(data);
77269
77266
  };
77270
77267
  const removeProgressListener = _IpcApp__WEBPACK_IMPORTED_MODULE_6__.IpcApp.addListener((0,_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.getPullChangesIpcChannel)(this.iModelId), handleProgress);
@@ -83363,7 +83360,6 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
83363
83360
  this.transientIds = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.TransientIdSequence();
83364
83361
  /** @internal Whether GCS has been disabled for this iModelConnection. */
83365
83362
  this._gcsDisabled = false;
83366
- this._extentsExpansion = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Range3d.createNull();
83367
83363
  /** The RPC routing for this connection. */
83368
83364
  this.routingContext = _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext.default;
83369
83365
  /** Event raised immediately before this IModelConnection is [[close]]d.
@@ -83389,13 +83385,6 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
83389
83385
  this.hilited = new _SelectionSet__WEBPACK_IMPORTED_MODULE_8__.HiliteSet(this);
83390
83386
  this.tiles = new _Tiles__WEBPACK_IMPORTED_MODULE_11__.Tiles(this);
83391
83387
  this.geoServices = _GeoServices__WEBPACK_IMPORTED_MODULE_4__.GeoServices.createForIModel(this);
83392
- /* eslint-disable-next-line @typescript-eslint/no-deprecated */
83393
- this.displayedExtents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Range3d.fromJSON(this.projectExtents);
83394
- this.onProjectExtentsChanged.addListener(() => {
83395
- // Compute new displayed extents as the union of the ranges we previously expanded by with the new project extents.
83396
- /* eslint-disable-next-line @typescript-eslint/no-deprecated */
83397
- this.expandDisplayedExtents(this._extentsExpansion);
83398
- });
83399
83388
  this.hilited.onModelSubCategoryModeChanged.addListener(() => {
83400
83389
  _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.viewManager.onSelectionSetChanged(this);
83401
83390
  });
@@ -83446,70 +83435,6 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
83446
83435
  async queryAllUsedSpatialSubCategories() {
83447
83436
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).queryAllUsedSpatialSubCategories(this.getRpcProps());
83448
83437
  }
83449
- /** Execute a query and stream its results
83450
- * The result of the query is async iterator over the rows. The iterator will get next page automatically once rows in current page has been read.
83451
- * [ECSQL row]($docs/learning/ECSQLRowFormat).
83452
- *
83453
- * See also:
83454
- * - [ECSQL Overview]($docs/learning/frontend/ExecutingECSQL)
83455
- * - [Code Examples]($docs/learning/frontend/ECSQLCodeExamples)
83456
- *
83457
- * @param ecsql The ECSQL statement to execute
83458
- * @param params The values to bind to the parameters (if the ECSQL has any).
83459
- * @param options Allow to specify certain flags which control how query is executed.
83460
- * @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
83461
- * See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
83462
- * @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
83463
- * @deprecated in 3.7. Use [[createQueryReader]] instead; it accepts the same parameters.
83464
- */
83465
- async *query(ecsql, params, options) {
83466
- const builder = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryOptionsBuilder(options);
83467
- const reader = this.createQueryReader(ecsql, params, builder.getOptions());
83468
- while (await reader.step())
83469
- yield reader.formatCurrentRow();
83470
- }
83471
- /** Compute number of rows that would be returned by the ECSQL.
83472
- *
83473
- * See also:
83474
- * - [ECSQL Overview]($docs/learning/frontend/ExecutingECSQL)
83475
- * - [Code Examples]($docs/learning/frontend/ECSQLCodeExamples)
83476
- *
83477
- * @param ecsql The ECSQL statement to execute
83478
- * @param params The values to bind to the parameters (if the ECSQL has any).
83479
- * See "[iTwin.js Types used in ECSQL Parameter Bindings]($docs/learning/ECSQLParameterTypes)" for details.
83480
- * @returns Return row count.
83481
- * @throws [IModelError]($common) If the statement is invalid
83482
- * @deprecated in 3.7. Count the number of results using `count(*)` where the original query is a subquery instead. E.g., `SELECT count(*) FROM (<query-whose-rows-to-count>)`.
83483
- */
83484
- async queryRowCount(ecsql, params) {
83485
- for await (const row of this.createQueryReader(`select count(*) from (${ecsql})`, params)) {
83486
- return row[0];
83487
- }
83488
- throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR, "Failed to get row count");
83489
- }
83490
- /** Cancel any previous query with same token and run execute the current specified query.
83491
- * The result of the query is async iterator over the rows. The iterator will get next page automatically once rows in current page has been read.
83492
- * [ECSQL row]($docs/learning/ECSQLRowFormat).
83493
- *
83494
- * See also:
83495
- * - [ECSQL Overview]($docs/learning/frontend/ExecutingECSQL)
83496
- * - [Code Examples]($docs/learning/frontend/ECSQLCodeExamples)
83497
- *
83498
- * @param ecsql The ECSQL statement to execute
83499
- * @param token None empty restart token. The previous query with same token would be cancelled. This would cause
83500
- * exception which user code must handle.
83501
- * @param params The values to bind to the parameters (if the ECSQL has any).
83502
- * @param options Allow to specify certain flags which control how query is executed.
83503
- * @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
83504
- * See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
83505
- * @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
83506
- * @deprecated in 3.7. Use [[createQueryReader]] instead. Pass in the restart token as part of the `config` argument; e.g., `{ restartToken: myToken }` or `new QueryOptionsBuilder().setRestartToken(myToken).getOptions()`.
83507
- */
83508
- async *restartQuery(token, ecsql, params, options) {
83509
- for await (const row of this.createQueryReader(ecsql, params, new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryOptionsBuilder(options).setRestartToken(token).getOptions())) {
83510
- yield row;
83511
- }
83512
- }
83513
83438
  /** Query for a set of element ids that satisfy the supplied query params
83514
83439
  * @param params The query parameters. The `limit` and `offset` members should be used to page results.
83515
83440
  * @throws [IModelError]($common) If the generated statement is invalid or would return too many rows.
@@ -83739,18 +83664,6 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
83739
83664
  }
83740
83665
  });
83741
83666
  }
83742
- /** Expand this iModel's [[displayedExtents]] to include the specified range.
83743
- * This is done automatically when reality models are added to a spatial view. In some cases a [[TiledGraphicsProvider]] may wish to expand
83744
- * the extents explicitly to include its geometry.
83745
- * @deprecated in 3.6. See [[displayedExtents]].
83746
- */
83747
- expandDisplayedExtents(range) {
83748
- this._extentsExpansion.extendRange(range);
83749
- /* eslint-disable-next-line @typescript-eslint/no-deprecated */
83750
- this.displayedExtents.setFrom(this.projectExtents);
83751
- /* eslint-disable-next-line @typescript-eslint/no-deprecated */
83752
- this.displayedExtents.extendRange(this._extentsExpansion);
83753
- }
83754
83667
  /** @internal */
83755
83668
  getMapEcefToDb(bimElevationBias) {
83756
83669
  if (!this.ecefLocation)
@@ -84688,10 +84601,6 @@ class IpcApp {
84688
84601
  },
84689
84602
  });
84690
84603
  }
84691
- /** @deprecated in 3.x. use [[appFunctionIpc]] */
84692
- static async callIpcHost(methodName, ...args) {
84693
- return this[_common_internal_Symbols__WEBPACK_IMPORTED_MODULE_3__._callIpcChannel](_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ipcAppChannels.functions, methodName, ...args);
84694
- }
84695
84604
  /** A Proxy to call one of the [IpcAppFunctions]($common) functions via IPC. */
84696
84605
  static { this.appFunctionIpc = IpcApp.makeIpcProxy(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ipcAppChannels.functions); }
84697
84606
  /** start an IpcApp.
@@ -85706,7 +85615,6 @@ __webpack_require__.r(__webpack_exports__);
85706
85615
  /* harmony import */ var _common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./common/FrontendLoggerCategory */ "../../core/frontend/lib/esm/common/FrontendLoggerCategory.js");
85707
85616
  /* harmony import */ var _IpcApp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IpcApp */ "../../core/frontend/lib/esm/IpcApp.js");
85708
85617
  /* harmony import */ var _NativeAppLogger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NativeAppLogger */ "../../core/frontend/lib/esm/NativeAppLogger.js");
85709
- /* harmony import */ var _common_internal_Symbols__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./common/internal/Symbols */ "../../core/frontend/lib/esm/common/internal/Symbols.js");
85710
85618
  /*---------------------------------------------------------------------------------------------
85711
85619
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
85712
85620
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -85719,7 +85627,6 @@ __webpack_require__.r(__webpack_exports__);
85719
85627
 
85720
85628
 
85721
85629
 
85722
-
85723
85630
  /** NativeApp notifications from backend */
85724
85631
  class NativeAppNotifyHandler extends _IpcApp__WEBPACK_IMPORTED_MODULE_3__.NotificationHandler {
85725
85632
  get channelName() { return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.nativeAppIpcStrings.notifyChannel; }
@@ -85734,10 +85641,6 @@ class NativeAppNotifyHandler extends _IpcApp__WEBPACK_IMPORTED_MODULE_3__.Notifi
85734
85641
  * @public
85735
85642
  */
85736
85643
  class NativeApp {
85737
- /** @deprecated in 3.x. use nativeAppIpc */
85738
- static async callNativeHost(methodName, ...args) {
85739
- return _IpcApp__WEBPACK_IMPORTED_MODULE_3__.IpcApp[_common_internal_Symbols__WEBPACK_IMPORTED_MODULE_5__._callIpcChannel](_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.nativeAppIpcStrings.channelName, methodName, ...args);
85740
- }
85741
85644
  /** A Proxy to call one of the [NativeAppFunctions]($common) functions via IPC. */
85742
85645
  static { this.nativeAppIpc = _IpcApp__WEBPACK_IMPORTED_MODULE_3__.IpcApp.makeIpcProxy(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.nativeAppIpcStrings.channelName); }
85743
85646
  static { this._storages = new Map(); }
@@ -85798,12 +85701,11 @@ class NativeApp {
85798
85701
  await _IpcApp__WEBPACK_IMPORTED_MODULE_3__.IpcApp.shutdown();
85799
85702
  this._isValid = false;
85800
85703
  }
85801
- static async requestDownloadBriefcase(iTwinId, iModelId, downloadOptions, asOf = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelVersion.latest(), progress) {
85802
- const shouldReportProgress = !!progress || !!downloadOptions.progressCallback;
85704
+ static async requestDownloadBriefcase(iTwinId, iModelId, downloadOptions, asOf = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelVersion.latest()) {
85705
+ const shouldReportProgress = !!downloadOptions.progressCallback;
85803
85706
  let stopProgressEvents = () => { };
85804
85707
  if (shouldReportProgress) {
85805
85708
  const handleProgress = (_evt, data) => {
85806
- progress?.(data);
85807
85709
  downloadOptions.progressCallback?.(data);
85808
85710
  };
85809
85711
  stopProgressEvents = _IpcApp__WEBPACK_IMPORTED_MODULE_3__.IpcApp.addListener(`nativeApp.progress-${iModelId}`, handleProgress);
@@ -89192,16 +89094,6 @@ class SpatialViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_6__.ViewState
89192
89094
  markModelSelectorChanged() {
89193
89095
  this._treeRefs.update();
89194
89096
  }
89195
- /** Get world-space viewed extents based on the iModel's project extents.
89196
- * @deprecated in 3.6. These extents are based on [[IModelConnection.displayedExtents]], which is deprecated. Consider using [[computeFitRange]] or [[getViewedExtents]] instead.
89197
- */
89198
- getDisplayedExtents() {
89199
- /* eslint-disable-next-line @typescript-eslint/no-deprecated */
89200
- const extents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.fromJSON(this.iModel.displayedExtents);
89201
- extents.scaleAboutCenterInPlace(1.0001); // projectExtents. lying smack up against the extents is not excluded by frustum...
89202
- extents.extendRange(this.getGroundExtents());
89203
- return extents;
89204
- }
89205
89097
  computeBaseExtents() {
89206
89098
  const extents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.fromJSON(this.iModel.projectExtents);
89207
89099
  // Ensure geometry coincident with planes of the project extents is not clipped.
@@ -96726,18 +96618,6 @@ class Viewport {
96726
96618
  return false; // Reality Models not selectable
96727
96619
  return (0 === this.mapLayerFromIds(pixel.modelId, pixel.elementId).length); // Maps no selectable.
96728
96620
  }
96729
- /** Read the current image from this viewport from the rendering system. If a "null" rectangle is supplied (@see [[ViewRect.isNull]]), the entire view is captured.
96730
- * @param rect The area of the view to read. The origin of a viewRect must specify the upper left corner.
96731
- * @param targetSize The size of the image to be returned. The size can be larger or smaller than the original view.
96732
- * @param flipVertically If true, the image is flipped along the x-axis.
96733
- * @returns The contents of the viewport within the specified rectangle as a bitmap image, or undefined if the image could not be read.
96734
- * @note By default the image is returned with the coordinate (0,0) referring to the bottom-most pixel. Pass `true` for `flipVertically` to flip it along the x-axis.
96735
- * @deprecated in 3.x. Use readImageBuffer.
96736
- */
96737
- readImage(rect = new _common_ViewRect__WEBPACK_IMPORTED_MODULE_27__.ViewRect(1, 1, 0, 0), targetSize = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d.createZero(), flipVertically = false) {
96738
- // eslint-disable-next-line @typescript-eslint/no-deprecated
96739
- return this.target.readImage(rect, targetSize, flipVertically);
96740
- }
96741
96621
  /** Capture the image currently rendered in this viewport, or a subset thereof.
96742
96622
  * @param args Describes the region to capture and optional resizing. By default the entire image is captured with no resizing.
96743
96623
  * @returns The image, or `undefined` if the specified capture rect is not fully contained in [[viewRect], a 2d context could not be obtained, or the resultant image consists entirely
@@ -97194,14 +97074,6 @@ class ScreenViewport extends Viewport {
97194
97074
  mouseMovementFromEvent(ev) {
97195
97075
  return { x: ev.movementX, y: ev.movementY };
97196
97076
  }
97197
- /** Set the event controller for this Viewport. Destroys previous controller, if one was defined.
97198
- * @deprecated in 3.x. this was intended for internal use only.
97199
- */
97200
- setEventController(controller) {
97201
- if (this._evController)
97202
- this._evController.destroy();
97203
- this._evController = controller;
97204
- }
97205
97077
  /** Invoked by ViewManager.addViewport.
97206
97078
  * @internal
97207
97079
  */
@@ -109710,13 +109582,6 @@ class GraphicBuilder extends _common_render_GraphicAssembler__WEBPACK_IMPORTED_M
109710
109582
  return pixelSize * 0.25;
109711
109583
  };
109712
109584
  }
109713
- /** The Id to be associated with the graphic for picking.
109714
- * @see [[GraphicBuilderOptions.pickable]] for more options.
109715
- * @deprecated in 3.x. This provides only the **first** pickable Id for this graphic - you should keep track of the **current** pickable Id yourself.
109716
- */
109717
- get pickId() {
109718
- return this.pickable?.id;
109719
- }
109720
109585
  }
109721
109586
 
109722
109587
 
@@ -111342,16 +111207,6 @@ class RenderSystem {
111342
111207
  * @returns A previously-created material matching the specified ID, or undefined if no such material exists.
111343
111208
  */
111344
111209
  findMaterial(_key, _imodel) { return undefined; }
111345
- /** Create a [RenderMaterial]($common) from parameters
111346
- * If the parameters include a non-empty key, and no previously-created material already exists with that key, the newly-created material will be cached on the IModelConnection such
111347
- * that it can later be retrieved by the same key using [[RenderSystem.findMaterial]].
111348
- * @param _params A description of the material's properties.
111349
- * @param _imodel The IModelConnection associated with the material.
111350
- * @returns the newly-created material, or undefined if the material could not be created or if a material with the same key as that specified in the params already exists.
111351
- * @deprecated in 3.x. Use [[createRenderMaterial]].
111352
- */
111353
- // eslint-disable-next-line @typescript-eslint/no-deprecated
111354
- createMaterial(_params, _imodel) { return undefined; }
111355
111210
  /** Create a [RenderMaterial]($common).
111356
111211
  * @see [[CreateRenderMaterialArgs]] for a description of the material parameters.
111357
111212
  */
@@ -111632,49 +111487,6 @@ class RenderSystem {
111632
111487
  getGradientTexture(_symb, _imodel) {
111633
111488
  return undefined;
111634
111489
  }
111635
- /** Create a new texture from an [[ImageBuffer]].
111636
- * @deprecated in 3.x. Use [[createTexture]].
111637
- */
111638
- // eslint-disable-next-line @typescript-eslint/no-deprecated
111639
- createTextureFromImageBuffer(image, iModel, params) {
111640
- const ownership = params.key ? { key: params.key, iModel } : (params.isOwned ? "external" : undefined);
111641
- return this.createTexture({
111642
- type: params.type,
111643
- ownership,
111644
- image: {
111645
- source: image,
111646
- transparency: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ImageBufferFormat.Rgba === image.format ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.TextureTransparency.Mixed : _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.TextureTransparency.Opaque,
111647
- },
111648
- });
111649
- }
111650
- /** Create a new texture from an HTML image. Typically the image was extracted from a binary representation of a jpeg or png via [[imageElementFromImageSource]].
111651
- * @deprecated in 3.x. Use [[createTexture]].
111652
- */
111653
- // eslint-disable-next-line @typescript-eslint/no-deprecated
111654
- createTextureFromImage(image, hasAlpha, iModel, params) {
111655
- const ownership = params.key && iModel ? { key: params.key, iModel } : (params.isOwned ? "external" : undefined);
111656
- return this.createTexture({
111657
- type: params.type,
111658
- ownership,
111659
- image: {
111660
- source: image,
111661
- transparency: hasAlpha ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.TextureTransparency.Mixed : _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.TextureTransparency.Opaque,
111662
- },
111663
- });
111664
- }
111665
- /** Create a new texture from an ImageSource.
111666
- * @deprecated in 3.x. Use RenderSystem.createTextureFromSource.
111667
- */
111668
- // eslint-disable-next-line @typescript-eslint/no-deprecated
111669
- async createTextureFromImageSource(source, iModel, params) {
111670
- const ownership = iModel && params.key ? { iModel, key: params.key } : (params.isOwned ? "external" : undefined);
111671
- return this.createTextureFromSource({
111672
- type: params.type,
111673
- source,
111674
- ownership,
111675
- transparency: source.format === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ImageSourceFormat.Jpeg ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.TextureTransparency.Opaque : _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.TextureTransparency.Mixed,
111676
- });
111677
- }
111678
111490
  /** Create a texture from an ImageSource. */
111679
111491
  async createTextureFromSource(args) {
111680
111492
  try {
@@ -111919,10 +111731,6 @@ class RenderTarget {
111919
111731
  onBeforeRender(_viewport, _setSceneNeedRedraw) { }
111920
111732
  /** @internal */
111921
111733
  onResized() { }
111922
- /** @deprecated in 3.x. use readImageBuffer
111923
- * @internal
111924
- */
111925
- readImage(_rect, _targetSize, _flipVertically) { return undefined; }
111926
111734
  /** @internal */
111927
111735
  readImageBuffer(_args) { return undefined; }
111928
111736
  /** @internal */
@@ -128935,13 +128743,6 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_9__.RenderSystem {
128935
128743
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(idMap);
128936
128744
  this.resourceCache.delete(imodel);
128937
128745
  }
128938
- /** Attempt to create a material for the given iModel using a set of material parameters. */
128939
- // eslint-disable-next-line @typescript-eslint/no-deprecated
128940
- createMaterial(params, imodel) {
128941
- const idMap = this.getIdMap(imodel);
128942
- const material = idMap.getMaterial(params);
128943
- return material;
128944
- }
128945
128746
  createRenderMaterial(args) {
128946
128747
  if (args.source) {
128947
128748
  const cached = this.findMaterial(args.source.id, args.source.iModel);
@@ -130051,79 +129852,6 @@ class Target extends _RenderTarget__WEBPACK_IMPORTED_MODULE_7__.RenderTarget {
130051
129852
  const bestRatio = Math.min(widthRatio, heightRatio);
130052
129853
  return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d(curSize.x * bestRatio, curSize.y * bestRatio);
130053
129854
  }
130054
- /** wantRectIn is in CSS pixels. Output ImageBuffer will be in device pixels.
130055
- * If wantRect is null, that means "read the entire image".
130056
- */
130057
- readImage(wantRectIn, targetSizeIn, flipVertically) {
130058
- if (!this.assignDC())
130059
- return undefined;
130060
- // Determine capture rect and validate
130061
- const actualViewRect = this.renderRect; // already has device pixel ratio applied
130062
- const wantRect = wantRectIn.isNull ? actualViewRect : this.cssViewRectToDeviceViewRect(wantRectIn);
130063
- const lowerRight = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d.create(wantRect.right - 1, wantRect.bottom - 1);
130064
- if (!actualViewRect.containsPoint(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d.create(wantRect.left, wantRect.top)) || !actualViewRect.containsPoint(lowerRight))
130065
- return undefined;
130066
- // Read pixels. Note ViewRect thinks (0,0) = top-left. gl.readPixels expects (0,0) = bottom-left.
130067
- const bytesPerPixel = 4;
130068
- const imageData = new Uint8Array(bytesPerPixel * wantRect.width * wantRect.height);
130069
- const isValidImageData = this.readImagePixels(imageData, wantRect.left, wantRect.top, wantRect.width, wantRect.height);
130070
- if (!isValidImageData)
130071
- return undefined;
130072
- let image = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ImageBuffer.create(imageData, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ImageBufferFormat.Rgba, wantRect.width);
130073
- if (!image)
130074
- return undefined;
130075
- const targetSize = targetSizeIn.clone();
130076
- if (targetSize.x === 0 || targetSize.y === 0) { // Indicates image should have same dimensions as rect (no scaling)
130077
- targetSize.x = wantRect.width;
130078
- targetSize.y = wantRect.height;
130079
- }
130080
- if (targetSize.x === wantRect.width && targetSize.y === wantRect.height) {
130081
- // No need to scale image.
130082
- // Some callers want background pixels to be treated as fully-transparent
130083
- // They indicate this by supplying a background color with full transparency
130084
- // Any other pixels are treated as fully-opaque as alpha has already been blended
130085
- // ###TODO: This introduces a defect in that we are not preserving alpha of translucent pixels, and therefore the returned image cannot be blended
130086
- const preserveBGAlpha = 0.0 === this.uniforms.style.backgroundAlpha;
130087
- // Optimization for view attachments: if image consists entirely of background pixels, return an undefined
130088
- let isEmptyImage = true;
130089
- for (let i = 3; i < image.data.length; i += 4) {
130090
- const a = image.data[i];
130091
- if (!preserveBGAlpha || 0 < a) {
130092
- image.data[i] = 0xff;
130093
- isEmptyImage = false;
130094
- }
130095
- }
130096
- if (isEmptyImage)
130097
- return undefined;
130098
- }
130099
- else {
130100
- // Need to scale image.
130101
- const canvas = (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_4__.imageBufferToCanvas)(image, false); // retrieve a canvas of the image we read, throwing away alpha channel.
130102
- if (undefined === canvas)
130103
- return undefined;
130104
- const adjustedTargetSize = Target._applyAspectRatioCorrection(new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d(wantRect.width, wantRect.height), targetSize);
130105
- const resizedCanvas = (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_4__.canvasToResizedCanvasWithBars)(canvas, adjustedTargetSize, new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d(targetSize.x - adjustedTargetSize.x, targetSize.y - adjustedTargetSize.y), this.uniforms.style.backgroundHexString);
130106
- const resizedImage = (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_4__.canvasToImageBuffer)(resizedCanvas);
130107
- if (undefined !== resizedImage)
130108
- image = resizedImage;
130109
- }
130110
- if (flipVertically) {
130111
- const halfHeight = Math.floor(image.height / 2);
130112
- const numBytesPerRow = image.width * 4;
130113
- for (let loY = 0; loY < halfHeight; loY++) {
130114
- for (let x = 0; x < image.width; x++) {
130115
- const hiY = (image.height - 1) - loY;
130116
- const loIdx = loY * numBytesPerRow + x * 4;
130117
- const hiIdx = hiY * numBytesPerRow + x * 4;
130118
- swapImageByte(image, loIdx, hiIdx);
130119
- swapImageByte(image, loIdx + 1, hiIdx + 1);
130120
- swapImageByte(image, loIdx + 2, hiIdx + 2);
130121
- swapImageByte(image, loIdx + 3, hiIdx + 3);
130122
- }
130123
- }
130124
- }
130125
- return image;
130126
- }
130127
129855
  readImageBuffer(args) {
130128
129856
  if (!this.assignDC())
130129
129857
  return undefined;
@@ -146255,8 +145983,13 @@ function getMaterial(mat, options) {
146255
145983
  params.ambient = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.JsonUtils.asDouble(json.ambient);
146256
145984
  if (undefined !== json.textureMapping)
146257
145985
  params.textureMapping = textureMappingFromJson(json.textureMapping.texture, options);
146258
- // eslint-disable-next-line @typescript-eslint/no-deprecated
146259
- return options.system.createMaterial(params, options.iModel);
145986
+ return options.system.createRenderMaterial({
145987
+ diffuse: { color: params.diffuseColor, weight: params.diffuse },
145988
+ specular: { color: params.specularColor, weight: params.specular, exponent: params.specularExponent },
145989
+ alpha: params.alpha,
145990
+ textureMapping: params.textureMapping
145991
+ });
145992
+ ;
146260
145993
  }
146261
145994
  function getModifiers(primitive) {
146262
145995
  const mod = primitive.modifier;
@@ -147555,9 +147288,6 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_9__.TileTree {
147555
147288
  this._ecefTransform = _ecefTransform;
147556
147289
  this.viewFlagOverrides = {};
147557
147290
  this._tileGraphics = new Map();
147558
- const worldContentRange = this.iModelTransform.multiplyRange(cloudRange);
147559
- /* eslint-disable-next-line @typescript-eslint/no-deprecated */
147560
- this.iModel.expandDisplayedExtents(worldContentRange);
147561
147291
  this._tileParams = { contentId: "0", range: cloudRange, maximumSize: 256 };
147562
147292
  this.rootTile = new OrbitGtRootTile(this._tileParams, this);
147563
147293
  }
@@ -149111,11 +148841,6 @@ class RealityModelTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.Realit
149111
148841
  constructor(params) {
149112
148842
  super(params);
149113
148843
  this._isContentUnbounded = this.rootTile.contentRange.diagonal().magnitude() > 2 * _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Constant.earthRadiusWGS84.equator;
149114
- if (!this.isContentUnbounded && !this.rootTile.contentRange.isNull) {
149115
- const worldContentRange = this.iModelTransform.multiplyRange(this.rootTile.contentRange);
149116
- /* eslint-disable-next-line @typescript-eslint/no-deprecated */
149117
- this.iModel.expandDisplayedExtents(worldContentRange);
149118
- }
149119
148844
  }
149120
148845
  get isContentUnbounded() { return this._isContentUnbounded; }
149121
148846
  }
@@ -164383,8 +164108,6 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
164383
164108
  button: {
164384
164109
  /** Background color of locked buttons. */
164385
164110
  pressedColor: "rgba(50, 50, 50, 0.75)",
164386
- /** Padding to use on left and right of label and affects overall width. */
164387
- padding: "0.25em",
164388
164111
  /** Margin to use on left and right to position relative to text input field. */
164389
164112
  margin: "0.25em",
164390
164113
  /** Width of border outline. */
@@ -164832,7 +164555,7 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
164832
164555
  this.initializeItemStyle(style, true);
164833
164556
  this.updateItemFieldLock(itemLock, item);
164834
164557
  const button = AccuDrawViewportUI.controlProps.button;
164835
- style.paddingLeft = style.paddingRight = button.padding;
164558
+ style.paddingLeft = style.paddingRight = "0";
164836
164559
  style.marginLeft = style.marginRight = button.margin;
164837
164560
  style.outlineWidth = button.outlineWidth;
164838
164561
  return itemLock;
@@ -164888,11 +164611,9 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
164888
164611
  const itemLock = itemLocks[item] = this.createItemFieldLock(item);
164889
164612
  itemLock.style.top = itemField.style.top;
164890
164613
  itemLock.style.left = isHorizontalLayout ? `${columnOffset + itemWidth}px` : `${itemWidth}px`;
164614
+ itemLock.style.width = itemLock.style.height = `${itemHeight}px`; // Make square of same height as text field...
164891
164615
  div.appendChild(itemLock);
164892
- if (0 === lockWidth)
164893
- lockWidth = itemLock.offsetWidth;
164894
- else
164895
- itemLock.style.width = `${lockWidth}px`;
164616
+ lockWidth = itemLock.offsetWidth;
164896
164617
  if (is3dLayout || _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.ItemField.Z_Item !== item)
164897
164618
  columnOffset += (itemWidth + lockWidth) * AccuDrawViewportUI.controlProps.columnSpacingFactor;
164898
164619
  };
@@ -305786,7 +305507,7 @@ var loadLanguages = instance.loadLanguages;
305786
305507
  /***/ ((module) => {
305787
305508
 
305788
305509
  "use strict";
305789
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.0.0-dev.49","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","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 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","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","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","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 --coverage","test:debug":"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:*"},"//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/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.0","@vitest/coverage-v8":"^2.1.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^2.1.0","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","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/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.2.5","@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
305510
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.0.0-dev.50","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","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 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","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","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","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 --coverage","test:debug":"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:*"},"//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/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.0","@vitest/coverage-v8":"^2.1.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^2.1.0","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","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/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.2.5","@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
305790
305511
 
305791
305512
  /***/ })
305792
305513