@itwin/ecschema-rpcinterface-tests 4.10.0-dev.31 → 4.10.0-dev.33

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.
@@ -11,9 +11,9 @@
11
11
 
12
12
  /***/ }),
13
13
 
14
- /***/ "../../common/temp/node_modules/.pnpm/dotenv@10.0.0/node_modules/dotenv/lib/main.js":
14
+ /***/ "../../common/temp/node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js":
15
15
  /*!******************************************************************************************!*\
16
- !*** ../../common/temp/node_modules/.pnpm/dotenv@10.0.0/node_modules/dotenv/lib/main.js ***!
16
+ !*** ../../common/temp/node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js ***!
17
17
  \******************************************************************************************/
18
18
  /***/ (() => {
19
19
 
@@ -20925,7 +20925,6 @@ var DbOpcode;
20925
20925
  /** Values for return codes from BeSQLite functions. Consult SQLite documentation for further explanations.
20926
20926
  * @public
20927
20927
  */
20928
- /* eslint-disable @typescript-eslint/naming-convention */
20929
20928
  // Disabling for the rest of the file since eslint does not correctly parse the entire enum, only parts of it
20930
20929
  var DbResult;
20931
20930
  (function (DbResult) {
@@ -21076,7 +21075,6 @@ var DbResult;
21076
21075
  DbResult[DbResult["BE_SQLITE_CONSTRAINT_UNIQUE"] = 2067] = "BE_SQLITE_CONSTRAINT_UNIQUE";
21077
21076
  DbResult[DbResult["BE_SQLITE_CONSTRAINT_VTAB"] = 2323] = "BE_SQLITE_CONSTRAINT_VTAB";
21078
21077
  })(DbResult || (DbResult = {}));
21079
- /* eslint-enable @typescript-eslint/naming-convention */
21080
21078
 
21081
21079
 
21082
21080
  /***/ }),
@@ -21862,14 +21860,14 @@ class ByteStream {
21862
21860
  */
21863
21861
  static fromUint8Array(bytes) {
21864
21862
  const { byteOffset, byteLength } = bytes;
21865
- return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line deprecation/deprecation
21863
+ return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line @typescript-eslint/no-deprecated
21866
21864
  }
21867
21865
  /** Construct a new ByteStream with the read position set to the beginning.
21868
21866
  * @param buffer The underlying buffer from which data is to be extracted.
21869
21867
  * @param subView If defined, specifies the subset of the underlying buffer's data to use.
21870
21868
  */
21871
21869
  static fromArrayBuffer(buffer, subView) {
21872
- return new ByteStream(buffer, subView); // eslint-disable-line deprecation/deprecation
21870
+ return new ByteStream(buffer, subView); // eslint-disable-line @typescript-eslint/no-deprecated
21873
21871
  }
21874
21872
  /** The number of bytes in this stream */
21875
21873
  get length() {
@@ -22789,7 +22787,6 @@ __webpack_require__.r(__webpack_exports__);
22789
22787
  * @public
22790
22788
  */
22791
22789
  function isIDisposable(obj) {
22792
- // eslint-disable-next-line @typescript-eslint/unbound-method
22793
22790
  return !!obj && (obj instanceof Object) && !!obj.dispose && (typeof obj.dispose === "function");
22794
22791
  }
22795
22792
  /** Convenience function for disposing of a disposable object that may be undefined.
@@ -23213,7 +23210,7 @@ var Id64;
23213
23210
  Id64.iterable = iterable;
23214
23211
  /** Return the first [[Id64String]] of an [[Id64Arg]]. */
23215
23212
  function getFirst(arg) {
23216
- return typeof arg === "string" ? arg : (Array.isArray(arg) ? arg[0] : arg.values().next().value);
23213
+ return typeof arg === "string" ? arg : (Array.isArray(arg) ? arg[0] : arg.values().next().value) ?? Id64.invalid;
23217
23214
  }
23218
23215
  Id64.getFirst = getFirst;
23219
23216
  /** Return the number of [[Id64String]]s represented by an [[Id64Arg]]. */
@@ -25249,7 +25246,7 @@ class ProcessDetector {
25249
25246
  * @note This method will return `true` for any frontend running on an iPad, whether it is a user-launched web browser (e.g. Safari) or the frontend of a mobile app.
25250
25247
  */
25251
25248
  static get isIPadBrowser() {
25252
- return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line deprecation/deprecation */
25249
+ return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line @typescript-eslint/no-deprecated */
25253
25250
  }
25254
25251
  /** Is this process running in a browser on an iPhone?
25255
25252
  * @note This method will return `true` for any frontend running on an iPhone, whether it is a user-launched web browser (e.g. Safari) or the frontend of a mobile app.
@@ -26137,7 +26134,7 @@ function utf8ToString(utf8) {
26137
26134
  * @public
26138
26135
  */
26139
26136
  function base64StringToUint8Array(base64) {
26140
- return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0))); // eslint-disable-line deprecation/deprecation
26137
+ return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0)));
26141
26138
  }
26142
26139
 
26143
26140
 
@@ -26387,7 +26384,7 @@ function* getFlatEntries(obj, path = "") {
26387
26384
  function flattenObject(obj) {
26388
26385
  return Object.fromEntries(getFlatEntries(obj));
26389
26386
  }
26390
- /* eslint-disable deprecation/deprecation -- lots of self-references here... */
26387
+ /* eslint-disable @typescript-eslint/no-deprecated -- lots of self-references here... */
26391
26388
  /**
26392
26389
  * Enables OpenTelemetry tracing in addition to traditional logging.
26393
26390
  * @public
@@ -26459,7 +26456,7 @@ class Tracing {
26459
26456
  loggerCategory: category,
26460
26457
  });
26461
26458
  }
26462
- catch (_e) { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work
26459
+ catch { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work
26463
26460
  const spanContext = Tracing._openTelemetry.trace.getSpan(oTelContext)?.spanContext();
26464
26461
  base(category, message, {
26465
26462
  ...serializedMetadata,
@@ -26479,7 +26476,7 @@ class Tracing {
26479
26476
  Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.setAttributes(attributes);
26480
26477
  }
26481
26478
  }
26482
- /* eslint-enable deprecation/deprecation */
26479
+ /* eslint-enable @typescript-eslint/no-deprecated */
26483
26480
 
26484
26481
 
26485
26482
  /***/ }),
@@ -26863,7 +26860,7 @@ class UnexpectedErrors {
26863
26860
  try {
26864
26861
  telemetry(error);
26865
26862
  }
26866
- catch (_) {
26863
+ catch {
26867
26864
  // ignore errors from telemetry trackers
26868
26865
  }
26869
26866
  });
@@ -27944,7 +27941,7 @@ class BackgroundMapProvider {
27944
27941
  }
27945
27942
  /** @internal */
27946
27943
  static fromBackgroundMapProps(props) {
27947
- // eslint-disable-next-line deprecation/deprecation
27944
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
27948
27945
  return this.fromJSON({ name: props.providerName, type: props.providerData?.mapType });
27949
27946
  }
27950
27947
  /** Return true if this provider is equivalent to `other`. */
@@ -28088,9 +28085,9 @@ class BackgroundMapSettings {
28088
28085
  const props = this.toJSON();
28089
28086
  // Preserve deprecated imagery provider properties.
28090
28087
  if ("BingProvider" !== this._provider.name)
28091
- props.providerName = this._provider.name; // eslint-disable-line deprecation/deprecation
28088
+ props.providerName = this._provider.name; // eslint-disable-line @typescript-eslint/no-deprecated
28092
28089
  if (_BackgroundMapProvider__WEBPACK_IMPORTED_MODULE_0__.BackgroundMapType.Hybrid !== this._provider.type)
28093
- props.providerData = { mapType: this._provider.type }; // eslint-disable-line deprecation/deprecation
28090
+ props.providerData = { mapType: this._provider.type }; // eslint-disable-line @typescript-eslint/no-deprecated
28094
28091
  return props;
28095
28092
  }
28096
28093
  /** Returns true if these settings are equivalent to the supplied JSON settings. */
@@ -29360,7 +29357,6 @@ class ColorDef {
29360
29357
  }
29361
29358
  break;
29362
29359
  }
29363
- // eslint-disable-next-line no-cond-assign
29364
29360
  }
29365
29361
  else if (m = /^\#([a-f0-9]+)$/.exec(val)) { // hex color
29366
29362
  const hex = m[1];
@@ -29670,7 +29666,6 @@ class ColorDef {
29670
29666
  const v = 0xff & Math.floor(dvalue * 255 + 0.5);
29671
29667
  let r = 0, b = 0, g = 0;
29672
29668
  switch (hueIntpart) {
29673
- /* eslint-disable max-statements-per-line */
29674
29669
  case 0:
29675
29670
  r = v;
29676
29671
  g = t;
@@ -29696,7 +29691,6 @@ class ColorDef {
29696
29691
  r = v, g = p;
29697
29692
  b = q;
29698
29693
  break; // magenta-ish
29699
- /* eslint-enable max-statements-per-line */
29700
29694
  }
29701
29695
  return ColorDef.from(r, g, b, transparency);
29702
29696
  }
@@ -32867,7 +32861,7 @@ function readElementMeshes(data) {
32867
32861
  if (geom instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.IndexedPolyface)
32868
32862
  polyfaces.push(geom);
32869
32863
  }
32870
- catch (_) {
32864
+ catch {
32871
32865
  //
32872
32866
  }
32873
32867
  }
@@ -37750,7 +37744,6 @@ __webpack_require__.r(__webpack_exports__);
37750
37744
  /* harmony export */ });
37751
37745
  /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
37752
37746
  /* harmony import */ var _BackgroundMapProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BackgroundMapProvider */ "../../core/common/lib/esm/BackgroundMapProvider.js");
37753
- /* eslint-disable deprecation/deprecation */
37754
37747
  /*---------------------------------------------------------------------------------------------
37755
37748
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
37756
37749
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -40130,9 +40123,9 @@ class RenderMaterial {
40130
40123
  this._alpha = undefined !== alpha ? clampToNormalizedRange(alpha) : undefined;
40131
40124
  }
40132
40125
  /** Create a RenderMaterial params object using specified key and ColorDef values, as well as an optional texture mapping. */
40133
- // eslint-disable-next-line deprecation/deprecation
40126
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
40134
40127
  static fromColors(key, diffuseColor, specularColor, emissiveColor, reflectColor, textureMap) {
40135
- // eslint-disable-next-line deprecation/deprecation
40128
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
40136
40129
  const materialParams = new Params();
40137
40130
  materialParams.key = key;
40138
40131
  materialParams.diffuseColor = diffuseColor;
@@ -40144,11 +40137,11 @@ class RenderMaterial {
40144
40137
  }
40145
40138
  }
40146
40139
  /** Obtain an immutable instance of a RenderMaterial with all default properties. */
40147
- // eslint-disable-next-line deprecation/deprecation
40140
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
40148
40141
  Params.defaults = new Params();
40149
40142
  RenderMaterial.Params = Params;
40150
40143
  })(RenderMaterial || (RenderMaterial = {}));
40151
- // eslint-disable-next-line deprecation/deprecation
40144
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
40152
40145
  Object.freeze(RenderMaterial.Params.defaults);
40153
40146
 
40154
40147
 
@@ -41531,7 +41524,7 @@ async function handleNotFound(request, status, dispatch) {
41531
41524
  resolve(response);
41532
41525
  }
41533
41526
  catch (err) {
41534
- reject(err);
41527
+ reject(err); // eslint-disable-line @typescript-eslint/prefer-promise-reject-errors
41535
41528
  }
41536
41529
  }, reject);
41537
41530
  });
@@ -43647,7 +43640,6 @@ __webpack_require__.r(__webpack_exports__);
43647
43640
  */
43648
43641
  // cSpell:ignore tweens yoyo catmull
43649
43642
  /* eslint-disable guard-for-in */
43650
- /* eslint-disable @typescript-eslint/prefer-for-of */
43651
43643
  /* eslint-disable @typescript-eslint/naming-convention */
43652
43644
  /** A group of `Tween`s. This class is called `Group` in the tween.js library.
43653
43645
  * @note Unlike tween.js, we do NOT create any global instances of this class
@@ -55543,40 +55535,40 @@ IModelReadRpcInterface.interfaceName = "IModelReadRpcInterface";
55543
55535
  /** The semantic version of the interface. */
55544
55536
  IModelReadRpcInterface.interfaceVersion = "3.7.0";
55545
55537
  __decorate([
55546
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55538
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55547
55539
  ], IModelReadRpcInterface.prototype, "getConnectionProps", null);
55548
55540
  __decorate([
55549
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55541
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55550
55542
  ], IModelReadRpcInterface.prototype, "querySubCategories", null);
55551
55543
  __decorate([
55552
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55544
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55553
55545
  ], IModelReadRpcInterface.prototype, "queryAllUsedSpatialSubCategories", null);
55554
55546
  __decorate([
55555
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55547
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55556
55548
  ], IModelReadRpcInterface.prototype, "getModelProps", null);
55557
55549
  __decorate([
55558
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55550
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55559
55551
  ], IModelReadRpcInterface.prototype, "queryModelRanges", null);
55560
55552
  __decorate([
55561
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55553
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55562
55554
  ], IModelReadRpcInterface.prototype, "queryModelExtents", null);
55563
55555
  __decorate([
55564
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55556
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55565
55557
  ], IModelReadRpcInterface.prototype, "getClassHierarchy", null);
55566
55558
  __decorate([
55567
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55559
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55568
55560
  ], IModelReadRpcInterface.prototype, "getViewStateData", null);
55569
55561
  __decorate([
55570
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55562
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55571
55563
  ], IModelReadRpcInterface.prototype, "getDefaultViewId", null);
55572
55564
  __decorate([
55573
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55565
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55574
55566
  ], IModelReadRpcInterface.prototype, "getCustomViewState3dData", null);
55575
55567
  __decorate([
55576
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55568
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55577
55569
  ], IModelReadRpcInterface.prototype, "hydrateViewState", null);
55578
55570
  __decorate([
55579
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55571
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
55580
55572
  ], IModelReadRpcInterface.prototype, "getGeoCoordinatesFromIModelCoordinates", null);
55581
55573
 
55582
55574
 
@@ -55670,7 +55662,7 @@ IModelTileRpcInterface.interfaceName = "IModelTileRpcInterface";
55670
55662
  /** The semantic version of the interface. */
55671
55663
  IModelTileRpcInterface.interfaceVersion = "3.2.0";
55672
55664
  __decorate([
55673
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55665
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
55674
55666
  ], IModelTileRpcInterface.prototype, "requestTileTreeProps", null);
55675
55667
 
55676
55668
 
@@ -55761,7 +55753,6 @@ __webpack_require__.r(__webpack_exports__);
55761
55753
  * @module RpcInterface
55762
55754
  */
55763
55755
 
55764
- /* eslint-disable deprecation/deprecation */
55765
55756
  /** An RpcManager that uses RpcDefaultConfiguration/RpcDirectProtocol to make client stubs invoke
55766
55757
  * registered server impls as direct method calls within the same JavaScript context. In other words,
55767
55758
  * TestRpcManager sets up a protocol that uses our remoting mechanism but cuts out the communication
@@ -55826,7 +55817,7 @@ __webpack_require__.r(__webpack_exports__);
55826
55817
  */
55827
55818
  class WipRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__.RpcInterface {
55828
55819
  /** Returns the IModelReadRpcInterface instance for the frontend. */
55829
- static getClient() { return _RpcManager__WEBPACK_IMPORTED_MODULE_1__.RpcManager.getClientForInterface(WipRpcInterface); } // eslint-disable-line deprecation/deprecation
55820
+ static getClient() { return _RpcManager__WEBPACK_IMPORTED_MODULE_1__.RpcManager.getClientForInterface(WipRpcInterface); } // eslint-disable-line @typescript-eslint/no-deprecated
55830
55821
  /*===========================================================================================
55831
55822
  NOTE: Any add/remove/change to the methods below requires an update of the interface version.
55832
55823
  NOTE: Please consult the README in this folder for the semantic versioning rules.
@@ -56041,7 +56032,7 @@ class RpcDirectRequest extends _RpcRequest__WEBPACK_IMPORTED_MODULE_4__.RpcReque
56041
56032
  resolve(this.fulfillment.status);
56042
56033
  }
56043
56034
  catch (err) {
56044
- reject(err);
56035
+ reject(err); // eslint-disable-line @typescript-eslint/prefer-promise-reject-errors
56045
56036
  }
56046
56037
  });
56047
56038
  }
@@ -56080,7 +56071,7 @@ __webpack_require__.r(__webpack_exports__);
56080
56071
  /** @packageDocumentation
56081
56072
  * @module RpcInterface
56082
56073
  */
56083
- /* eslint-disable deprecation/deprecation */
56074
+ /* eslint-disable @typescript-eslint/no-deprecated */
56084
56075
  /** Describes available options for RPC response caching.
56085
56076
  * @public
56086
56077
  */
@@ -56220,7 +56211,6 @@ var __setFunctionName = (undefined && undefined.__setFunctionName) || function (
56220
56211
 
56221
56212
 
56222
56213
 
56223
- /* eslint-disable deprecation/deprecation */
56224
56214
  /** An RPC operation control response.
56225
56215
  * @public
56226
56216
  */
@@ -56588,7 +56578,7 @@ class RpcInvocation {
56588
56578
  impl[_RpcRegistry__WEBPACK_IMPORTED_MODULE_10__.CURRENT_INVOCATION] = undefined;
56589
56579
  }
56590
56580
  }
56591
- catch (_err) { }
56581
+ catch { }
56592
56582
  return fulfillment;
56593
56583
  }
56594
56584
  lookupOperationFunction(implementation) {
@@ -56652,7 +56642,7 @@ __webpack_require__.r(__webpack_exports__);
56652
56642
  */
56653
56643
 
56654
56644
  // cspell:ignore unmarshal
56655
- /* eslint-disable deprecation/deprecation */
56645
+ /* eslint-disable @typescript-eslint/no-deprecated */
56656
56646
  function isBuffer(val) {
56657
56647
  return val && typeof (val.constructor) !== "undefined" && typeof (val.constructor.isBuffer) === "function" && val.constructor.isBuffer(val);
56658
56648
  }
@@ -56825,7 +56815,6 @@ __webpack_require__.r(__webpack_exports__);
56825
56815
 
56826
56816
 
56827
56817
 
56828
- /* eslint-disable deprecation/deprecation */
56829
56818
  /** The policy for an RPC operation.
56830
56819
  * @internal
56831
56820
  */
@@ -56969,7 +56958,7 @@ __webpack_require__.r(__webpack_exports__);
56969
56958
  */
56970
56959
 
56971
56960
 
56972
- /* eslint-disable deprecation/deprecation */
56961
+ /* eslint-disable @typescript-eslint/no-deprecated */
56973
56962
  /** Manages pending RPC requests and responses.
56974
56963
  * @internal
56975
56964
  */
@@ -57381,7 +57370,6 @@ __webpack_require__.r(__webpack_exports__);
57381
57370
 
57382
57371
 
57383
57372
 
57384
- /* eslint-disable deprecation/deprecation */
57385
57373
  /** @internal */
57386
57374
  const REGISTRY = Symbol.for("@itwin/core-common/RpcRegistry");
57387
57375
  /** @internal */
@@ -57524,7 +57512,6 @@ class RpcRegistry {
57524
57512
  }
57525
57513
  interceptOperation(proxy, operation) {
57526
57514
  const clientFunction = proxy[operation];
57527
- // eslint-disable-next-line prefer-arrow/prefer-arrow-functions
57528
57515
  proxy[operation] = function () {
57529
57516
  const args = Array.from(arguments);
57530
57517
  args.push(operation);
@@ -57602,7 +57589,7 @@ __webpack_require__.r(__webpack_exports__);
57602
57589
 
57603
57590
  /* eslint-disable @typescript-eslint/naming-convention */
57604
57591
  // cspell:ignore csrf
57605
- /* eslint-disable deprecation/deprecation */
57592
+ /* eslint-disable @typescript-eslint/no-deprecated */
57606
57593
  /** @internal */
57607
57594
  const aggregateLoad = { lastRequest: 0, lastResponse: 0 };
57608
57595
  /** @internal */
@@ -57631,7 +57618,6 @@ class Cancellable {
57631
57618
  cancel() { }
57632
57619
  constructor(task) {
57633
57620
  this.promise = new Promise((resolve, reject) => {
57634
- // eslint-disable-next-line @typescript-eslint/unbound-method
57635
57621
  this.cancel = () => resolve(undefined);
57636
57622
  task.then(resolve, reject);
57637
57623
  });
@@ -58095,7 +58081,6 @@ __webpack_require__.r(__webpack_exports__);
58095
58081
  /** @packageDocumentation
58096
58082
  * @module RpcInterface
58097
58083
  */
58098
- /* eslint-disable deprecation/deprecation */
58099
58084
  /** @beta */
58100
58085
  class RpcRoutingToken {
58101
58086
  static generate(debugLabel = "") {
@@ -58142,7 +58127,7 @@ __webpack_require__.r(__webpack_exports__);
58142
58127
 
58143
58128
 
58144
58129
 
58145
- /* eslint-disable deprecation/deprecation */
58130
+ /* eslint-disable @typescript-eslint/no-deprecated */
58146
58131
  class SessionConfiguration extends _RpcConfiguration__WEBPACK_IMPORTED_MODULE_0__.RpcConfiguration {
58147
58132
  constructor() {
58148
58133
  super(...arguments);
@@ -58310,7 +58295,6 @@ __webpack_require__.r(__webpack_exports__);
58310
58295
 
58311
58296
 
58312
58297
 
58313
- /* eslint-disable deprecation/deprecation */
58314
58298
  var AppMode;
58315
58299
  (function (AppMode) {
58316
58300
  AppMode["MilestoneReview"] = "1";
@@ -58604,7 +58588,7 @@ __webpack_require__.r(__webpack_exports__);
58604
58588
 
58605
58589
 
58606
58590
 
58607
- /* eslint-disable deprecation/deprecation */
58591
+ /* eslint-disable @typescript-eslint/no-deprecated */
58608
58592
  /** @internal */
58609
58593
  const BACKEND = Symbol.for("@itwin.WebAppRpcLogging.Backend");
58610
58594
  const FRONTEND = Symbol.for("@itwin.WebAppRpcLogging.Frontend");
@@ -59088,7 +59072,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_4__.Rpc
59088
59072
  }
59089
59073
  setupTextTransport(parameters) {
59090
59074
  if (this.operation.policy.allowResponseCaching(this)) {
59091
- const encodedBody = btoa(parameters.objects); // eslint-disable-line deprecation/deprecation
59075
+ const encodedBody = btoa(parameters.objects);
59092
59076
  if (encodedBody.length <= _a.maxUrlComponentSize) {
59093
59077
  this._request.method = "get";
59094
59078
  this._request.body = undefined;
@@ -59170,7 +59154,6 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
59170
59154
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
59171
59155
  */
59172
59156
 
59173
- /* eslint-disable deprecation/deprecation */
59174
59157
  const START = 0;
59175
59158
  const START_BOUNDARY = 1;
59176
59159
  const HEADER_FIELD_START = 2;
@@ -60225,7 +60208,7 @@ class Parser {
60225
60208
  try {
60226
60209
  parsedContentId = ContentIdProvider.create(true, options).specFromId(contentId);
60227
60210
  }
60228
- catch (e) {
60211
+ catch {
60229
60212
  this.reject("Invalid content Id");
60230
60213
  }
60231
60214
  if (Object.keys(parsedContentId).some((key) => parsedContentId.hasOwnProperty(key) && typeof parsedContentId[key] === "number" && !Number.isFinite(parsedContentId[key])))
@@ -63913,7 +63896,9 @@ class XmlParser extends _AbstractParser__WEBPACK_IMPORTED_MODULE_4__.AbstractPar
63913
63896
  return structObj;
63914
63897
  }
63915
63898
  readPrimitivePropertyValue(propElement, primitiveType) {
63916
- if (!propElement.textContent)
63899
+ if (undefined === propElement.textContent || null === propElement.textContent)
63900
+ throw new _Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsStatus.InvalidSchemaXML, `Primitive property '${propElement.tagName}' has an invalid property value.`);
63901
+ if (propElement.textContent === "" && primitiveType !== _ECObjects__WEBPACK_IMPORTED_MODULE_1__.PrimitiveType.String)
63917
63902
  throw new _Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsStatus.InvalidSchemaXML, `Primitive property '${propElement.tagName}' has an invalid property value.`);
63918
63903
  // TODO: Mapping all primitive types to string, number and boolean
63919
63904
  // for now. Need to review with IModelJs.
@@ -66990,7 +66975,7 @@ class OverrideFormat {
66990
66975
  let prevPos = 1; // Initial position is the character directly after the opening '(' in the override string.
66991
66976
  let currPos;
66992
66977
  // TODO need to include `,` as a valid search argument.
66993
- while (-1 !== (currPos = overrideString.indexOf(")", prevPos))) { // eslint-disable-line
66978
+ while (-1 !== (currPos = overrideString.indexOf(")", prevPos))) {
66994
66979
  tokens.push(overrideString.substring(prevPos, currPos));
66995
66980
  prevPos = currPos + 1;
66996
66981
  }
@@ -70623,12 +70608,12 @@ class SchemaUnitProvider {
70623
70608
  try {
70624
70609
  foundUnit = await this.findUnitByDisplayLabel(findLabel, findSchema, findPhenomenon, findUnitSystem);
70625
70610
  }
70626
- catch (err) {
70611
+ catch {
70627
70612
  // If there is no Unit with display label that matches label, then check for alternate display labels that may match
70628
70613
  foundUnit = await this.findUnitByAltDisplayLabel(findLabel, findSchema, findPhenomenon, findUnitSystem);
70629
70614
  }
70630
70615
  }
70631
- catch (err) {
70616
+ catch {
70632
70617
  throw new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, "Cannot find unit with label", () => {
70633
70618
  return { unitLabel };
70634
70619
  });
@@ -71180,10 +71165,10 @@ ECSchemaRpcInterface.version = "2.0.0";
71180
71165
  ECSchemaRpcInterface.interfaceName = "ECSchemaRpcInterface";
71181
71166
  ECSchemaRpcInterface.interfaceVersion = ECSchemaRpcInterface.version;
71182
71167
  __decorate([
71183
- core_common_1.RpcOperation.allowResponseCaching(core_common_1.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
71168
+ core_common_1.RpcOperation.allowResponseCaching(core_common_1.RpcResponseCacheControl.Immutable)
71184
71169
  ], ECSchemaRpcInterface.prototype, "getSchemaKeys", null);
71185
71170
  __decorate([
71186
- core_common_1.RpcOperation.allowResponseCaching(core_common_1.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
71171
+ core_common_1.RpcOperation.allowResponseCaching(core_common_1.RpcResponseCacheControl.Immutable)
71187
71172
  ], ECSchemaRpcInterface.prototype, "getSchemaJSON", null);
71188
71173
 
71189
71174
 
@@ -71906,7 +71891,6 @@ class AccuDraw {
71906
71891
  let rMatrix;
71907
71892
  let myAxes;
71908
71893
  const vecP = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createZero();
71909
- /* eslint-disable max-statements-per-line */
71910
71894
  switch (this.flags.baseRotation) {
71911
71895
  case RotationMode.Top:
71912
71896
  switch (whichVec) {
@@ -71986,7 +71970,6 @@ class AccuDraw {
71986
71970
  }
71987
71971
  break;
71988
71972
  }
71989
- /* eslint-enable max-statements-per-line */
71990
71973
  return vecP;
71991
71974
  }
71992
71975
  getBestViewedRotationFromXVector(rotation, vp) {
@@ -74674,7 +74657,7 @@ class AccuSnap {
74674
74657
  if (this._toolTipPromise === promise) // have we abandoned this request while awaiting getToolTip?
74675
74658
  this.showLocateMessage(viewPt, vp, msg);
74676
74659
  }
74677
- catch (error) { } // happens if getToolTip was canceled
74660
+ catch { } // happens if getToolTip was canceled
74678
74661
  });
74679
74662
  }
74680
74663
  showLocateMessage(viewPt, vp, msg) {
@@ -74906,7 +74889,11 @@ class AccuSnap {
74906
74889
  return realitySnap;
74907
74890
  }
74908
74891
  }
74909
- const hitVp = thisHit.viewAttachment ? thisHit.viewAttachment.viewport : thisHit.viewport;
74892
+ let hitVp;
74893
+ if (thisHit.path) {
74894
+ hitVp = thisHit.path.sectionDrawingAttachment?.viewport ?? thisHit.path.viewAttachment?.viewport;
74895
+ }
74896
+ hitVp = hitVp ?? thisHit.viewport;
74910
74897
  if (undefined !== thisHit.subCategoryId && !thisHit.isExternalIModelHit) {
74911
74898
  const appearance = hitVp.getSubCategoryAppearance(thisHit.subCategoryId);
74912
74899
  if (appearance.dontSnap) {
@@ -74983,7 +74970,8 @@ class AccuSnap {
74983
74970
  displayTransform = thisHit.viewport.view.computeDisplayTransform({
74984
74971
  modelId: thisHit.modelId,
74985
74972
  elementId: thisHit.sourceId,
74986
- viewAttachmentId: thisHit.viewAttachment?.id,
74973
+ viewAttachmentId: thisHit.path?.viewAttachment?.id,
74974
+ inSectionDrawingAttachment: undefined !== thisHit.path?.sectionDrawingAttachment,
74987
74975
  });
74988
74976
  }
74989
74977
  const snapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.fromJSON(result.snapPoint);
@@ -75013,7 +75001,7 @@ class AccuSnap {
75013
75001
  const intersect = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__.IntersectDetail(snap, snap.heat, snap.snapPoint, otherPrimitive, result.intersectId);
75014
75002
  return intersect;
75015
75003
  }
75016
- catch (_err) {
75004
+ catch {
75017
75005
  if (out)
75018
75006
  out.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.Aborted;
75019
75007
  return undefined;
@@ -76393,7 +76381,7 @@ class BingLocationProvider {
76393
76381
  },
76394
76382
  };
76395
76383
  }
76396
- catch (error) {
76384
+ catch {
76397
76385
  return undefined;
76398
76386
  }
76399
76387
  }
@@ -76666,11 +76654,11 @@ class BriefcaseConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_5__
76666
76654
  */
76667
76655
  async pullChanges(toIndex, options) {
76668
76656
  const removeListeners = [];
76669
- // eslint-disable-next-line deprecation/deprecation
76657
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
76670
76658
  const shouldReportProgress = !!options?.progressCallback || !!options?.downloadProgressCallback;
76671
76659
  if (shouldReportProgress) {
76672
76660
  const handleProgress = (_evt, data) => {
76673
- // eslint-disable-next-line deprecation/deprecation
76661
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
76674
76662
  options?.progressCallback?.(data);
76675
76663
  options?.downloadProgressCallback?.(data);
76676
76664
  };
@@ -77343,7 +77331,7 @@ class CheckpointConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_4_
77343
77331
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace(loggerCategory, `IModelConnection.open`, iModelToken);
77344
77332
  const startTime = Date.now();
77345
77333
  const removeListener = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcRequest.events.addListener((type, request) => {
77346
- if (type !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcRequestEvent.PendingUpdateReceived) // eslint-disable-line deprecation/deprecation
77334
+ if (type !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcRequestEvent.PendingUpdateReceived) // eslint-disable-line @typescript-eslint/no-deprecated
77347
77335
  return;
77348
77336
  if (!(openForReadOperation && request.operation === openForReadOperation))
77349
77337
  return;
@@ -77797,11 +77785,11 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
77797
77785
  if (script)
77798
77786
  newState = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderSchedule.ScriptReference(this.id, script);
77799
77787
  }
77800
- catch (_) {
77788
+ catch {
77801
77789
  // schedule state is undefined.
77802
77790
  }
77803
77791
  if (newState !== this._scriptReference) {
77804
- this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line deprecation/deprecation
77792
+ this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line @typescript-eslint/no-deprecated
77805
77793
  this.onScheduleScriptChanged.raiseEvent(newState?.script);
77806
77794
  this._scriptReference = newState;
77807
77795
  }
@@ -77822,13 +77810,13 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
77822
77810
  newState = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderSchedule.ScriptReference(timelineId, script);
77823
77811
  }
77824
77812
  }
77825
- catch (_) {
77813
+ catch {
77826
77814
  // schedule state is undefined.
77827
77815
  }
77828
77816
  }
77829
77817
  this._queryRenderTimelinePropsPromise = undefined;
77830
77818
  if (newState !== this._scriptReference) {
77831
- this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line deprecation/deprecation
77819
+ this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line @typescript-eslint/no-deprecated
77832
77820
  this.onScheduleScriptChanged.raiseEvent(newState?.script);
77833
77821
  this._scriptReference = newState;
77834
77822
  }
@@ -77839,7 +77827,7 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
77839
77827
  const omitScriptElementIds = !_IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.tileAdmin.enableFrontendScheduleScripts;
77840
77828
  return await this.iModel.elements.loadProps(timelineId, { renderTimeline: { omitScriptElementIds } });
77841
77829
  }
77842
- catch (_) {
77830
+ catch {
77843
77831
  return undefined;
77844
77832
  }
77845
77833
  }
@@ -77962,7 +77950,7 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
77962
77950
  return;
77963
77951
  try {
77964
77952
  const scriptRef = script ? new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderSchedule.ScriptReference(script) : undefined;
77965
- this.onScheduleScriptReferenceChanged.raiseEvent(scriptRef); // eslint-disable-line deprecation/deprecation
77953
+ this.onScheduleScriptReferenceChanged.raiseEvent(scriptRef); // eslint-disable-line @typescript-eslint/no-deprecated
77966
77954
  this.onScheduleScriptChanged.raiseEvent(script);
77967
77955
  this._scriptReference = scriptRef;
77968
77956
  this._assigningScript = true;
@@ -78685,7 +78673,7 @@ class SectionAttachment {
78685
78673
  this._branchOptions = {
78686
78674
  clipVolume,
78687
78675
  hline: view.getDisplayStyle3d().settings.hiddenLineSettings,
78688
- viewAttachmentId: view.id,
78676
+ inSectionDrawingAttachment: true,
78689
78677
  frustum: {
78690
78678
  is3d: true,
78691
78679
  scale: { x: 1, y: 1 },
@@ -78835,7 +78823,7 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
78835
78823
  break;
78836
78824
  }
78837
78825
  }
78838
- catch (_ex) {
78826
+ catch {
78839
78827
  // The version of BisCore ECSchema in the iModel is probably too old to contain the SectionDrawing ECClass.
78840
78828
  }
78841
78829
  return { spatialView, displaySpatialView, drawingToSpatialTransform };
@@ -78917,15 +78905,16 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
78917
78905
  return this._attachment ? [this._attachment.viewport] : super.secondaryViewports;
78918
78906
  }
78919
78907
  /** @internal */
78920
- getAttachmentViewport(id) {
78921
- return id === this._attachment?.view.id ? this._attachment.viewport : undefined;
78908
+ getAttachmentViewport(args) {
78909
+ const attach = args.inSectionDrawingAttachment ? this._attachment : undefined;
78910
+ return attach?.viewport;
78922
78911
  }
78923
- /** @internal */
78912
+ /** @beta */
78924
78913
  computeDisplayTransform(args) {
78925
- if (args.viewAttachmentId === undefined || args.viewAttachmentId !== this._attachment?.view.id) {
78926
- return undefined;
78927
- }
78928
- return this._attachment.toDrawing;
78914
+ // ###TODO we're currently ignoring model and element Id in args, assuming irrelevant for drawings.
78915
+ // Should probably call super or have super call us.
78916
+ const attach = args.inSectionDrawingAttachment ? this._attachment : undefined;
78917
+ return attach?.toDrawing.clone(args.output);
78929
78918
  }
78930
78919
  }
78931
78920
  /** Exposed strictly for testing and debugging. Indicates that when loading the view, the spatial view should be displayed even
@@ -80202,7 +80191,7 @@ class EnvironmentDecorations {
80202
80191
  else
80203
80192
  idToImage.set(spec, image);
80204
80193
  }
80205
- // eslint-disable-next-line deprecation/deprecation
80194
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
80206
80195
  const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderTexture.Params(key, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderTexture.Type.SkyBox);
80207
80196
  const txImgs = [
80208
80197
  idToImage.get(sky.images.front), idToImage.get(sky.images.back), idToImage.get(sky.images.top),
@@ -81591,6 +81580,7 @@ var HitDetailType;
81591
81580
  HitDetailType[HitDetailType["Snap"] = 2] = "Snap";
81592
81581
  HitDetailType[HitDetailType["Intersection"] = 3] = "Intersection";
81593
81582
  })(HitDetailType || (HitDetailType = {}));
81583
+ ;
81594
81584
  /** A HitDetail stores the result when locating geometry displayed in a view.
81595
81585
  * It holds an approximate location on an element (or decoration) from a *pick*.
81596
81586
  * @public
@@ -81633,10 +81623,15 @@ class HitDetail {
81633
81623
  * @alpha
81634
81624
  */
81635
81625
  get isClassifier() { return this._props.isClassifier; }
81636
- /** Information about the attached view within which the hit geometry resides, if any.
81626
+ /** Information about the [ViewAttachment]($backend) within which the hit geometry resides, if any.
81627
+ * @note Only [[SheetViewState]]s can have view attachments.
81628
+ * @beta
81629
+ */
81630
+ get viewAttachment() { return this._props.path?.viewAttachment; }
81631
+ /** Describes the path by which the hit was located through a series of attached views.
81637
81632
  * @beta
81638
81633
  */
81639
- get viewAttachment() { return this._props.viewAttachment; }
81634
+ get path() { return this._props.path; }
81640
81635
  /** @internal */
81641
81636
  constructor(arg0, viewport, hitSource, hitPoint, sourceId, priority, distXY, distFraction, subCategoryId, geometryClass, modelId, sourceIModel, tileId, isClassifier) {
81642
81637
  if (arg0 instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d) {
@@ -81660,6 +81655,8 @@ class HitDetail {
81660
81655
  };
81661
81656
  }
81662
81657
  else {
81658
+ // Ignore an empty path.
81659
+ const path = arg0.path?.sectionDrawingAttachment || arg0.path?.viewAttachment ? arg0.path : undefined;
81663
81660
  // Tempting to use { ...arg0 } but spread operator omits getters so, e.g., if input is a HitDetail we would lose all the properties.
81664
81661
  this._props = {
81665
81662
  testPoint: arg0.testPoint,
@@ -81677,7 +81674,7 @@ class HitDetail {
81677
81674
  transformFromSourceIModel: arg0.transformFromSourceIModel,
81678
81675
  tileId: arg0.tileId,
81679
81676
  isClassifier: arg0.isClassifier,
81680
- viewAttachment: arg0.viewAttachment,
81677
+ path,
81681
81678
  };
81682
81679
  }
81683
81680
  }
@@ -82097,7 +82094,6 @@ var _a;
82097
82094
  // eslint-disable-next-line @itwin/import-within-package
82098
82095
 
82099
82096
  /** @public */
82100
- // eslint-disable-next-line @typescript-eslint/no-var-requires
82101
82097
  const ITWINJS_CORE_VERSION = _package_json__WEBPACK_IMPORTED_MODULE_0__.version;
82102
82098
  const COPYRIGHT_NOTICE = 'Copyright © 2017-2024 <a href="https://www.bentley.com" target="_blank" rel="noopener noreferrer">Bentley Systems, Inc.</a>';
82103
82099
 
@@ -82424,7 +82420,7 @@ class IModelApp {
82424
82420
  try {
82425
82421
  return (await this.authorizationClient?.getAccessToken()) ?? "";
82426
82422
  }
82427
- catch (e) {
82423
+ catch {
82428
82424
  return "";
82429
82425
  }
82430
82426
  }
@@ -82782,11 +82778,11 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
82782
82778
  this.hilited = new _SelectionSet__WEBPACK_IMPORTED_MODULE_8__.HiliteSet(this);
82783
82779
  this.tiles = new _Tiles__WEBPACK_IMPORTED_MODULE_11__.Tiles(this);
82784
82780
  this.geoServices = _GeoServices__WEBPACK_IMPORTED_MODULE_4__.GeoServices.createForIModel(this);
82785
- /* eslint-disable-next-line deprecation/deprecation */
82781
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
82786
82782
  this.displayedExtents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Range3d.fromJSON(this.projectExtents);
82787
82783
  this.onProjectExtentsChanged.addListener(() => {
82788
82784
  // Compute new displayed extents as the union of the ranges we previously expanded by with the new project extents.
82789
- /* eslint-disable-next-line deprecation/deprecation */
82785
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
82790
82786
  this.expandDisplayedExtents(this._extentsExpansion);
82791
82787
  });
82792
82788
  this.hilited.onModelSubCategoryModeChanged.addListener(() => {
@@ -83139,9 +83135,9 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
83139
83135
  */
83140
83136
  expandDisplayedExtents(range) {
83141
83137
  this._extentsExpansion.extendRange(range);
83142
- /* eslint-disable-next-line deprecation/deprecation */
83138
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
83143
83139
  this.displayedExtents.setFrom(this.projectExtents);
83144
- /* eslint-disable-next-line deprecation/deprecation */
83140
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
83145
83141
  this.displayedExtents.extendRange(this._extentsExpansion);
83146
83142
  }
83147
83143
  /** @internal */
@@ -83275,7 +83271,7 @@ class SnapshotConnection extends IModelConnection {
83275
83271
  static async openRemote(fileKey) {
83276
83272
  const routingContext = _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext.current || _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext["default"];
83277
83273
  _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcManager.setIModel({ iModelId: "undefined", key: fileKey });
83278
- const openResponse = await _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.SnapshotIModelRpcInterface.getClientForRouting(routingContext.token).openRemote(fileKey); // eslint-disable-line deprecation/deprecation
83274
+ const openResponse = await _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.SnapshotIModelRpcInterface.getClientForRouting(routingContext.token).openRemote(fileKey); // eslint-disable-line @typescript-eslint/no-deprecated
83279
83275
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace(loggerCategory, "SnapshotConnection.openRemote", () => ({ fileKey }));
83280
83276
  const connection = new SnapshotConnection(openResponse);
83281
83277
  connection.routingContext = routingContext;
@@ -83359,7 +83355,7 @@ class SnapshotConnection extends IModelConnection {
83359
83355
  const propArray = await this.getProps(notLoaded);
83360
83356
  await this.updateLoadedWithModelProps(propArray);
83361
83357
  }
83362
- catch (err) {
83358
+ catch {
83363
83359
  // ignore error, we had nothing to do.
83364
83360
  }
83365
83361
  }
@@ -83374,7 +83370,7 @@ class SnapshotConnection extends IModelConnection {
83374
83370
  }
83375
83371
  }
83376
83372
  }
83377
- catch (err) {
83373
+ catch {
83378
83374
  // ignore error, we had nothing to do.
83379
83375
  }
83380
83376
  }
@@ -83705,7 +83701,7 @@ class SnapshotConnection extends IModelConnection {
83705
83701
  * @deprecated in 3.x use ViewStore apis
83706
83702
  */
83707
83703
  async getThumbnail(_viewId) {
83708
- // eslint-disable-next-line deprecation/deprecation
83704
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
83709
83705
  const val = await _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this._iModel.routingContext.token).getViewThumbnail(this._iModel.getRpcProps(), _viewId.toString());
83710
83706
  const intValues = new Uint32Array(val.buffer, 0, 4);
83711
83707
  if (intValues[1] !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ImageSourceFormat.Jpeg && intValues[1] !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ImageSourceFormat.Png)
@@ -86419,8 +86415,7 @@ class RealityDataSourceCesiumIonAssetImpl {
86419
86415
  try {
86420
86416
  tilesetUrl = await rdSource.getServiceUrl(iTwinId);
86421
86417
  }
86422
- catch (e) {
86423
- }
86418
+ catch { }
86424
86419
  return (tilesetUrl !== undefined) ? rdSource : undefined;
86425
86420
  }
86426
86421
  get isContextShare() {
@@ -86596,8 +86591,7 @@ class RealityDataSourceContextShareImpl {
86596
86591
  await rdSource.queryRealityData(iTwinId);
86597
86592
  tilesetUrl = await rdSource.getServiceUrl(iTwinId);
86598
86593
  }
86599
- catch (e) {
86600
- }
86594
+ catch { }
86601
86595
  return (tilesetUrl !== undefined) ? rdSource : undefined;
86602
86596
  }
86603
86597
  get isContextShare() {
@@ -86674,7 +86668,7 @@ class RealityDataSourceContextShareImpl {
86674
86668
  this._tilesetUrl = await _IModelApp__WEBPACK_IMPORTED_MODULE_4__.IModelApp.realityDataAccess.getRealityDataUrl(resolvedITwinId, rdSourceKey.id);
86675
86669
  this._isUrlResolved = true;
86676
86670
  }
86677
- catch (e) {
86671
+ catch {
86678
86672
  const errMsg = `Error getting URL from ContextShare using realityDataId=${rdSourceKey.id} and iTwinId=${iTwinId}`;
86679
86673
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_1__.Logger.logError(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_3__.FrontendLoggerCategory.RealityData, errMsg);
86680
86674
  }
@@ -86879,7 +86873,7 @@ class RealityDataSourceTilesetUrlImpl {
86879
86873
  try {
86880
86874
  new URL(url);
86881
86875
  }
86882
- catch (_) {
86876
+ catch {
86883
86877
  return false;
86884
86878
  }
86885
86879
  return true;
@@ -87737,14 +87731,27 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_12__.ViewState2
87737
87731
  return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d(0, 0, -1, size.x, size.y, 1);
87738
87732
  }
87739
87733
  /** @internal */
87740
- getAttachmentViewport(id) {
87741
- return this._attachments?.findById(id)?.viewport;
87734
+ getAttachmentViewport(args) {
87735
+ const attachment = args.viewAttachmentId ? this._attachments?.findById(args.viewAttachmentId) : undefined;
87736
+ if (!attachment) {
87737
+ return undefined;
87738
+ }
87739
+ return args.inSectionDrawingAttachment ? attachment.viewport?.view.getAttachmentViewport({ inSectionDrawingAttachment: true }) : attachment.viewport;
87742
87740
  }
87743
- /** @internal */
87741
+ /** @beta */
87744
87742
  computeDisplayTransform(args) {
87745
- // ###TODO check if the attached view has a display transform...
87743
+ // ###TODO we're currently ignoring model and element Id in args, assuming irrelevant for sheets.
87744
+ // Should probably call super or have super call us.
87746
87745
  const attachment = undefined !== args.viewAttachmentId ? this._attachments?.findById(args.viewAttachmentId) : undefined;
87747
- return attachment && attachment instanceof OrthographicAttachment ? attachment.toSheet.clone() : undefined;
87746
+ if (!attachment || !(attachment instanceof OrthographicAttachment)) {
87747
+ return undefined;
87748
+ }
87749
+ const sheetTransform = attachment.toSheet;
87750
+ const sectionTransform = args.inSectionDrawingAttachment ? attachment.view.computeDisplayTransform(args) : undefined;
87751
+ if (!sectionTransform) {
87752
+ return sheetTransform.clone(args.output);
87753
+ }
87754
+ return sheetTransform.multiplyTransformTransform(sectionTransform, args.output);
87748
87755
  }
87749
87756
  }
87750
87757
  /** A mostly no-op RenderTarget for an Attachment.
@@ -88326,7 +88333,7 @@ class SpatialViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_6__.ViewState
88326
88333
  * @deprecated in 3.6. These extents are based on [[IModelConnection.displayedExtents]], which is deprecated. Consider using [[computeFitRange]] or [[getViewedExtents]] instead.
88327
88334
  */
88328
88335
  getDisplayedExtents() {
88329
- /* eslint-disable-next-line deprecation/deprecation */
88336
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
88330
88337
  const extents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.fromJSON(this.iModel.displayedExtents);
88331
88338
  extents.scaleAboutCenterInPlace(1.0001); // projectExtents. lying smack up against the extents is not excluded by frustum...
88332
88339
  extents.extendRange(this.getGroundExtents());
@@ -88783,7 +88790,7 @@ class SubCategoriesCache {
88783
88790
  this.processResults(results, new Set(), false);
88784
88791
  }
88785
88792
  }
88786
- catch (e) {
88793
+ catch {
88787
88794
  // In case of a truncated response, gracefully handle the error and exit.
88788
88795
  }
88789
88796
  }
@@ -89111,7 +89118,7 @@ class TentativePoint {
89111
89118
  showTentative() {
89112
89119
  if (this.isSnapped) {
89113
89120
  _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.viewManager.invalidateDecorationsAllViews();
89114
- _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.accuSnap.displayToolTip(this._viewPoint, this.viewport, undefined); // eslint-disable-line @typescript-eslint/no-floating-promises
89121
+ _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.accuSnap.displayToolTip(this._viewPoint, this.viewport, undefined);
89115
89122
  }
89116
89123
  else {
89117
89124
  this.viewport.invalidateDecorations();
@@ -90529,7 +90536,7 @@ class ViewCreator3d {
90529
90536
  * Get the Id of the default view.
90530
90537
  */
90531
90538
  async _getDefaultViewId() {
90532
- // eslint-disable-next-line deprecation/deprecation
90539
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
90533
90540
  const viewId = await this._imodel.views.queryDefaultViewId();
90534
90541
  if (viewId !== _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid)
90535
90542
  return viewId;
@@ -91498,7 +91505,7 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
91498
91505
  }
91499
91506
  /** @internal */
91500
91507
  get scheduleScriptReference() {
91501
- return this.displayStyle.scheduleScriptReference; // eslint-disable-line deprecation/deprecation
91508
+ return this.displayStyle.scheduleScriptReference; // eslint-disable-line @typescript-eslint/no-deprecated
91502
91509
  }
91503
91510
  /** Get the globe projection mode.
91504
91511
  * @internal
@@ -92242,6 +92249,8 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
92242
92249
  * - [PlanProjectionSettings.elevation]($common) applied to plan projection models by [DisplayStyle3dSettings.planProjectionSettings]($common);
92243
92250
  * - A per-model transform supplied by this view's [[modelDisplayTransformProvider]]; and/or
92244
92251
  * - A transform applied to an element by an [RenderSchedule.ElementTimeline]($common) defined by this view's [[scheduleScript]].
92252
+ * - A transform from the coordinate space of a [ViewAttachment]($backend)'s view to that of the [[SheetViewState]] in which it is displayed.
92253
+ * - A transform from the coordinate space of a [[SpatialViewState]] to that of the [[DrawingViewState]] in which it is displayed, where the spatial view is attached via a [SectionDrawing]($backend).
92245
92254
  * @param args A description of how to compute the transform.
92246
92255
  * @returns The computed transform, or `undefined` if no display transform is to be applied.
92247
92256
  * @beta
@@ -92317,12 +92326,10 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
92317
92326
  get secondaryViewports() {
92318
92327
  return [];
92319
92328
  }
92320
- /** Find the viewport that renders the contents of the attached view with the specified element Id into this view.
92321
- * For a sheet view, the Id refers to a ViewAttachment.
92322
- * For a section drawing, it refers to a SpatialViewDefinition.
92329
+ /** Find the viewport that renders the contents of the view attachment with the specified element Id into this view.
92323
92330
  * @internal
92324
92331
  */
92325
- getAttachmentViewport(_id) {
92332
+ getAttachmentViewport(_args) {
92326
92333
  return undefined;
92327
92334
  }
92328
92335
  }
@@ -95859,7 +95866,7 @@ class Viewport {
95859
95866
  * @deprecated in 3.x. Use readImageBuffer.
95860
95867
  */
95861
95868
  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) {
95862
- // eslint-disable-next-line deprecation/deprecation
95869
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
95863
95870
  return this.target.readImage(rect, targetSize, flipVertically);
95864
95871
  }
95865
95872
  /** Capture the image currently rendered in this viewport, or a subset thereof.
@@ -95963,6 +95970,7 @@ class Viewport {
95963
95970
  modelId,
95964
95971
  elementId: pixel.feature?.elementId,
95965
95972
  viewAttachmentId: pixel.viewAttachmentId,
95973
+ inSectionDrawingAttachment: pixel.inSectionDrawingAttachment,
95966
95974
  });
95967
95975
  transform?.multiplyInversePoint3d(npc, npc);
95968
95976
  }
@@ -96257,7 +96265,6 @@ class ScreenViewport extends Viewport {
96257
96265
  this.addChildDiv(this.vpDiv, canvas, 10);
96258
96266
  this.target.updateViewRect();
96259
96267
  // SEE: decorationDiv doc comment
96260
- // eslint-disable-next-line deprecation/deprecation
96261
96268
  this.decorationDiv = this.addNewDiv("overlay-decorators", true, 30);
96262
96269
  this.toolTipDiv = this.addNewDiv("overlay-tooltip", true, 40);
96263
96270
  this.setCursor();
@@ -96447,7 +96454,6 @@ class ScreenViewport extends Viewport {
96447
96454
  /** Populate a set of decoration graphics to be displayed in this viewport. */
96448
96455
  addDecorations(decorations) {
96449
96456
  // SEE: decorationDiv doc comment
96450
- // eslint-disable-next-line deprecation/deprecation
96451
96457
  ScreenViewport.markAllChildrenForRemoval(this.decorationDiv);
96452
96458
  const context = new _ViewContext__WEBPACK_IMPORTED_MODULE_24__.DecorateContext(this, decorations, this._decorationCache);
96453
96459
  try {
@@ -96458,7 +96464,6 @@ class ScreenViewport extends Viewport {
96458
96464
  this.forEachTiledGraphicsProviderTree((ref) => context.addFromDecorator(ref));
96459
96465
  for (const decorator of _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.viewManager.decorators)
96460
96466
  context.addFromDecorator(decorator);
96461
- // eslint-disable-next-line deprecation/deprecation
96462
96467
  ScreenViewport.removeMarkedChildren(this.decorationDiv);
96463
96468
  }
96464
96469
  finally {
@@ -98250,7 +98255,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMat
98250
98255
  const material = this.key ?? this.materialParams;
98251
98256
  return { isAtlas: false, material };
98252
98257
  }
98253
- // eslint-disable-next-line deprecation/deprecation
98258
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
98254
98259
  constructor(params, imdl) {
98255
98260
  super(params);
98256
98261
  this.materialParams = imdl ?? {
@@ -98267,7 +98272,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMat
98267
98272
  };
98268
98273
  }
98269
98274
  static create(args) {
98270
- // eslint-disable-next-line deprecation/deprecation
98275
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
98271
98276
  const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMaterial.Params();
98272
98277
  params.alpha = args.alpha;
98273
98278
  if (args.diffuse) {
@@ -99028,7 +99033,7 @@ class Parser {
99028
99033
  const materialJson = this._document.renderMaterials[key];
99029
99034
  if (!materialJson)
99030
99035
  return undefined;
99031
- // eslint-disable-next-line deprecation/deprecation
99036
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
99032
99037
  const materialParams = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMaterial.Params(key);
99033
99038
  materialParams.diffuseColor = this.colorDefFromMaterialJson(materialJson.diffuseColor);
99034
99039
  if (materialJson.diffuse !== undefined)
@@ -99048,7 +99053,6 @@ class Parser {
99048
99053
  materialParams.ambient = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.JsonUtils.asDouble(materialJson.ambient);
99049
99054
  if (undefined !== materialJson.textureMapping)
99050
99055
  materialParams.textureMapping = this.textureMappingFromJson(materialJson.textureMapping.texture);
99051
- // eslint-disable-next-line deprecation/deprecation
99052
99056
  return new Material(materialParams);
99053
99057
  }
99054
99058
  parseNamedTexture(namedTex, name) {
@@ -99205,7 +99209,7 @@ function parseImdlDocument(options) {
99205
99209
  const parser = new Parser(imdlDoc, binaryData, options, featureTable, stream);
99206
99210
  return parser.parse();
99207
99211
  }
99208
- catch (_) {
99212
+ catch {
99209
99213
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TileReadStatus.InvalidTileData;
99210
99214
  }
99211
99215
  }
@@ -106732,7 +106736,7 @@ class BaseUnitFormattingSettingsProvider {
106732
106736
  async buildQuantityFormatOverridesMap() {
106733
106737
  const overrideFormatProps = new Map();
106734
106738
  // use map and await all returned promises - overrides are stored by QuantityType
106735
- for await (const quantityTypeKey of [...this._quantityFormatter.quantityTypesRegistry.keys()]) {
106739
+ for (const quantityTypeKey of [...this._quantityFormatter.quantityTypesRegistry.keys()]) {
106736
106740
  const quantityTypeDef = this._quantityFormatter.quantityTypesRegistry.get(quantityTypeKey);
106737
106741
  if (quantityTypeDef) {
106738
106742
  const typeKey = quantityTypeDef.key;
@@ -106983,7 +106987,7 @@ class LocalUnitFormatProvider extends _BaseUnitFormattingSettingsProvider__WEBPA
106983
106987
  localStorage.setItem(this.buildUnitSystemKey(), unitSystemKey);
106984
106988
  return true;
106985
106989
  }
106986
- catch (_e) {
106990
+ catch {
106987
106991
  return false;
106988
106992
  }
106989
106993
  }
@@ -106997,7 +107001,7 @@ class LocalUnitFormatProvider extends _BaseUnitFormattingSettingsProvider__WEBPA
106997
107001
  localStorage.setItem(this.buildOverridesKey(quantityTypeKey), JSON.stringify(overrideProps));
106998
107002
  return true;
106999
107003
  }
107000
- catch (_e) {
107004
+ catch {
107001
107005
  return false;
107002
107006
  }
107003
107007
  }
@@ -109387,6 +109391,7 @@ var Pixel;
109387
109391
  this.iModel = args?.iModel;
109388
109392
  this.tileId = args?.tileId;
109389
109393
  this.viewAttachmentId = args?.viewAttachmentId;
109394
+ this.inSectionDrawingAttachment = true === args?.inSectionDrawingAttachment;
109390
109395
  this.transformFromIModel = args?.transformFromIModel;
109391
109396
  }
109392
109397
  /** The Id of the element that produced the pixel. */
@@ -109420,11 +109425,25 @@ var Pixel;
109420
109425
  * @param viewport The viewport in which the hit originated.
109421
109426
  */
109422
109427
  toHitProps(viewport) {
109423
- let viewAttachment;
109428
+ let path;
109424
109429
  if (this.viewAttachmentId) {
109425
- const attachmentViewport = viewport.view.getAttachmentViewport(this.viewAttachmentId);
109426
- if (attachmentViewport)
109427
- viewAttachment = { viewport: attachmentViewport, id: this.viewAttachmentId };
109430
+ const attachmentViewport = viewport.view.getAttachmentViewport({ viewAttachmentId: this.viewAttachmentId });
109431
+ if (attachmentViewport) {
109432
+ path = {
109433
+ viewAttachment: {
109434
+ viewport: attachmentViewport,
109435
+ id: this.viewAttachmentId,
109436
+ },
109437
+ };
109438
+ }
109439
+ }
109440
+ if (this.inSectionDrawingAttachment) {
109441
+ const checkVp = path?.viewAttachment?.viewport ?? viewport;
109442
+ const attachVp = checkVp.view.getAttachmentViewport({ inSectionDrawingAttachment: true });
109443
+ if (attachVp) {
109444
+ path = path ?? {};
109445
+ path.sectionDrawingAttachment = { viewport: attachVp };
109446
+ }
109428
109447
  }
109429
109448
  return {
109430
109449
  sourceId: this.elementId ?? _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid,
@@ -109437,7 +109456,7 @@ var Pixel;
109437
109456
  isClassifier: this.isClassifier,
109438
109457
  sourceIModel: this.iModel,
109439
109458
  transformFromSourceIModel: this.transformFromIModel,
109440
- viewAttachment,
109459
+ path,
109441
109460
  };
109442
109461
  }
109443
109462
  }
@@ -110264,7 +110283,6 @@ __webpack_require__.r(__webpack_exports__);
110264
110283
 
110265
110284
 
110266
110285
 
110267
- /* eslint-disable no-restricted-syntax */
110268
110286
  // cSpell:ignore deserializing subcat uninstanced wiremesh qorigin trimesh
110269
110287
  /** An opaque representation of a texture draped on geometry within a [[Viewport]].
110270
110288
  * @internal
@@ -110374,7 +110392,7 @@ class RenderSystem {
110374
110392
  * @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.
110375
110393
  * @deprecated in 3.x. Use [[createRenderMaterial]].
110376
110394
  */
110377
- // eslint-disable-next-line deprecation/deprecation
110395
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
110378
110396
  createMaterial(_params, _imodel) { return undefined; }
110379
110397
  /** Create a [RenderMaterial]($common).
110380
110398
  * @see [[CreateRenderMaterialArgs]] for a description of the material parameters.
@@ -110659,7 +110677,7 @@ class RenderSystem {
110659
110677
  /** Create a new texture from an [[ImageBuffer]].
110660
110678
  * @deprecated in 3.x. Use [[createTexture]].
110661
110679
  */
110662
- // eslint-disable-next-line deprecation/deprecation
110680
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
110663
110681
  createTextureFromImageBuffer(image, iModel, params) {
110664
110682
  const ownership = params.key ? { key: params.key, iModel } : (params.isOwned ? "external" : undefined);
110665
110683
  return this.createTexture({
@@ -110674,7 +110692,7 @@ class RenderSystem {
110674
110692
  /** Create a new texture from an HTML image. Typically the image was extracted from a binary representation of a jpeg or png via [[imageElementFromImageSource]].
110675
110693
  * @deprecated in 3.x. Use [[createTexture]].
110676
110694
  */
110677
- // eslint-disable-next-line deprecation/deprecation
110695
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
110678
110696
  createTextureFromImage(image, hasAlpha, iModel, params) {
110679
110697
  const ownership = params.key && iModel ? { key: params.key, iModel } : (params.isOwned ? "external" : undefined);
110680
110698
  return this.createTexture({
@@ -110689,7 +110707,7 @@ class RenderSystem {
110689
110707
  /** Create a new texture from an ImageSource.
110690
110708
  * @deprecated in 3.x. Use RenderSystem.createTextureFromSource.
110691
110709
  */
110692
- // eslint-disable-next-line deprecation/deprecation
110710
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
110693
110711
  async createTextureFromImageSource(source, iModel, params) {
110694
110712
  const ownership = iModel && params.key ? { iModel, key: params.key } : (params.isOwned ? "external" : undefined);
110695
110713
  return this.createTextureFromSource({
@@ -110721,7 +110739,7 @@ class RenderSystem {
110721
110739
  }
110722
110740
  }
110723
110741
  /** Create a new texture by its element ID. This texture will be retrieved asynchronously from the backend. A placeholder image will be associated with the texture until the requested image data loads. */
110724
- // eslint-disable-next-line deprecation/deprecation
110742
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
110725
110743
  createTextureFromElement(_id, _imodel, _params, _format) {
110726
110744
  return undefined;
110727
110745
  }
@@ -110731,7 +110749,7 @@ class RenderSystem {
110731
110749
  /** Create a new texture from a cube of HTML images.
110732
110750
  * @internal
110733
110751
  */
110734
- // eslint-disable-next-line deprecation/deprecation
110752
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
110735
110753
  createTextureFromCubeImages(_posX, _negX, _posY, _negY, _posZ, _negZ, _imodel, _params) {
110736
110754
  return undefined;
110737
110755
  }
@@ -112554,6 +112572,7 @@ class BranchState {
112554
112572
  get secondaryClassifiers() { return this._opts.secondaryClassifiers; }
112555
112573
  get realityModelDisplaySettings() { return this._opts.realityModelDisplaySettings; }
112556
112574
  get viewAttachmentId() { return this._opts.viewAttachmentId; }
112575
+ get inSectionDrawingAttachment() { return this._opts.inSectionDrawingAttachment; }
112557
112576
  get groupNodeId() { return this._opts.groupNodeId; }
112558
112577
  get disableClipStyle() { return this._opts.disableClipStyle; }
112559
112578
  get symbologyOverrides() {
@@ -112587,6 +112606,7 @@ class BranchState {
112587
112606
  appearanceProvider: branch.appearanceProvider ?? (branch.branch.symbologyOverrides ? undefined : prev.appearanceProvider),
112588
112607
  realityModelDisplaySettings: branch.branch.realityModelDisplaySettings ?? prev.realityModelDisplaySettings,
112589
112608
  viewAttachmentId: branch.viewAttachmentId ?? prev.viewAttachmentId,
112609
+ inSectionDrawingAttachment: branch.inSectionDrawingAttachment ?? prev.inSectionDrawingAttachment,
112590
112610
  groupNodeId: branch.branch.groupNodeId ?? prev.groupNodeId,
112591
112611
  disableClipStyle: branch.disableClipStyle ?? prev.disableClipStyle,
112592
112612
  });
@@ -117236,17 +117256,20 @@ class Batch extends Graphic {
117236
117256
  get batchIModel() { return this._context.iModel; }
117237
117257
  get transformFromBatchIModel() { return this._context.transformFromIModel; }
117238
117258
  get viewAttachmentId() { return this._context.viewAttachmentId; }
117259
+ get inSectionDrawingAttachment() { return this._context.inSectionDrawingAttachment; }
117239
117260
  setContext(batchId, branch) {
117240
117261
  this._context.batchId = batchId;
117241
117262
  this._context.iModel = branch.iModel;
117242
117263
  this._context.transformFromIModel = branch.transformFromIModel;
117243
117264
  this._context.viewAttachmentId = branch.viewAttachmentId;
117265
+ this._context.inSectionDrawingAttachment = branch.inSectionDrawingAttachment;
117244
117266
  }
117245
117267
  resetContext() {
117246
117268
  this._context.batchId = 0;
117247
117269
  this._context.iModel = undefined;
117248
117270
  this._context.transformFromIModel = undefined;
117249
117271
  this._context.viewAttachmentId = undefined;
117272
+ this._context.inSectionDrawingAttachment = undefined;
117250
117273
  }
117251
117274
  constructor(graphic, features, range, options) {
117252
117275
  super();
@@ -117313,6 +117336,7 @@ class Branch extends Graphic {
117313
117336
  this.iModel = opts.iModel;
117314
117337
  this.frustum = opts.frustum;
117315
117338
  this.viewAttachmentId = opts.viewAttachmentId;
117339
+ this.inSectionDrawingAttachment = opts.inSectionDrawingAttachment;
117316
117340
  this.disableClipStyle = opts.disableClipStyle;
117317
117341
  this.transformFromExternalIModel = opts.transformFromIModel;
117318
117342
  if (opts.hline)
@@ -118589,7 +118613,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.RenderMat
118589
118613
  get overridesRgb() { return this.rgba[0] >= 0; }
118590
118614
  get overridesAlpha() { return this.rgba[3] >= 0; }
118591
118615
  get hasTranslucency() { return this.overridesAlpha && this.rgba[3] < 1; }
118592
- // eslint-disable-next-line deprecation/deprecation
118616
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
118593
118617
  constructor(params) {
118594
118618
  super(params);
118595
118619
  // Used for type-switching vs MaterialAtlas
@@ -118626,7 +118650,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.RenderMat
118626
118650
  this.fragUniforms[index] = loByte + hiByte * 256;
118627
118651
  }
118628
118652
  }
118629
- // eslint-disable-next-line deprecation/deprecation
118653
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
118630
118654
  Material.default = new Material(_itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.RenderMaterial.Params.defaults);
118631
118655
  /** Strictly for testing. */
118632
118656
  Material.preserveParams = false;
@@ -123102,6 +123126,7 @@ class PixelBuffer {
123102
123126
  transformFromIModel: batch.transformFromBatchIModel,
123103
123127
  tileId: batch.tileId,
123104
123128
  viewAttachmentId: batch.viewAttachmentId,
123129
+ inSectionDrawingAttachment: batch.inSectionDrawingAttachment,
123105
123130
  };
123106
123131
  }
123107
123132
  }
@@ -123173,13 +123198,14 @@ class PixelBuffer {
123173
123198
  }
123174
123199
  }
123175
123200
  }
123176
- let featureTable, iModel, transformToIModel, tileId, viewAttachmentId;
123201
+ let featureTable, iModel, transformToIModel, tileId, viewAttachmentId, inSectionDrawingAttachment;
123177
123202
  if (undefined !== batchInfo) {
123178
123203
  featureTable = batchInfo.featureTable;
123179
123204
  iModel = batchInfo.iModel;
123180
123205
  transformToIModel = batchInfo.transformFromIModel;
123181
123206
  tileId = batchInfo.tileId;
123182
123207
  viewAttachmentId = batchInfo.viewAttachmentId;
123208
+ inSectionDrawingAttachment = batchInfo.inSectionDrawingAttachment;
123183
123209
  }
123184
123210
  return new _Pixel__WEBPACK_IMPORTED_MODULE_4__.Pixel.Data({
123185
123211
  feature,
@@ -123191,6 +123217,7 @@ class PixelBuffer {
123191
123217
  transformFromIModel: transformToIModel,
123192
123218
  tileId,
123193
123219
  viewAttachmentId,
123220
+ inSectionDrawingAttachment,
123194
123221
  });
123195
123222
  }
123196
123223
  constructor(rect, selector, compositor) {
@@ -123912,7 +123939,7 @@ class Compositor extends SceneCompositor {
123912
123939
  try {
123913
123940
  gl.readPixels(rect.left, bottom, rect.width, rect.height, gl.RGBA, gl.UNSIGNED_BYTE, bytes);
123914
123941
  }
123915
- catch (e) {
123942
+ catch {
123916
123943
  result = undefined;
123917
123944
  }
123918
123945
  });
@@ -127481,7 +127508,7 @@ class IdMap {
127481
127508
  return this.gradients.get(symb);
127482
127509
  }
127483
127510
  /** Find or create a new material given material parameters. This will cache the material if its key is valid. */
127484
- // eslint-disable-next-line deprecation/deprecation
127511
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
127485
127512
  getMaterial(params) {
127486
127513
  if (!params.key || !_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.isValidId64(params.key)) // Only cache persistent materials.
127487
127514
  return new _Material__WEBPACK_IMPORTED_MODULE_21__.Material(params);
@@ -127500,7 +127527,7 @@ class IdMap {
127500
127527
  else
127501
127528
  return this.findGradient(key);
127502
127529
  }
127503
- // eslint-disable-next-line deprecation/deprecation
127530
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
127504
127531
  getTextureFromElement(key, iModel, params, format) {
127505
127532
  let tex = this.findTexture(params.key);
127506
127533
  if (tex)
@@ -127552,7 +127579,7 @@ class IdMap {
127552
127579
  this.texturesFromImageSources.delete(key);
127553
127580
  }
127554
127581
  }
127555
- // eslint-disable-next-line deprecation/deprecation
127582
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
127556
127583
  getTextureFromCubeImages(posX, negX, posY, negY, posZ, negZ, params) {
127557
127584
  let tex = this.findTexture(params.key);
127558
127585
  if (tex)
@@ -127858,7 +127885,7 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_9__.RenderSystem {
127858
127885
  this.resourceCache.delete(imodel);
127859
127886
  }
127860
127887
  /** Attempt to create a material for the given iModel using a set of material parameters. */
127861
- // eslint-disable-next-line deprecation/deprecation
127888
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
127862
127889
  createMaterial(params, imodel) {
127863
127890
  const idMap = this.getIdMap(imodel);
127864
127891
  const material = idMap.getMaterial(params);
@@ -127870,7 +127897,7 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_9__.RenderSystem {
127870
127897
  if (cached)
127871
127898
  return cached;
127872
127899
  }
127873
- // eslint-disable-next-line deprecation/deprecation
127900
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
127874
127901
  const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderMaterial.Params();
127875
127902
  params.alpha = args.alpha;
127876
127903
  if (undefined !== args.diffuse?.weight)
@@ -127941,11 +127968,11 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_9__.RenderSystem {
127941
127968
  return super.createTextureFromSource(args);
127942
127969
  return this.getIdMap(args.ownership.iModel).getTextureFromImageSource(args, args.ownership.key);
127943
127970
  }
127944
- // eslint-disable-next-line deprecation/deprecation
127971
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
127945
127972
  createTextureFromElement(id, imodel, params, format) {
127946
127973
  return this.getIdMap(imodel).getTextureFromElement(id, imodel, params, format);
127947
127974
  }
127948
- // eslint-disable-next-line deprecation/deprecation
127975
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
127949
127976
  createTextureFromCubeImages(posX, negX, posY, negY, posZ, negZ, imodel, params) {
127950
127977
  return this.getIdMap(imodel).getTextureFromCubeImages(posX, negX, posY, negY, posZ, negZ, params);
127951
127978
  }
@@ -128958,7 +128985,7 @@ class Target extends _RenderTarget__WEBPACK_IMPORTED_MODULE_7__.RenderTarget {
128958
128985
  try {
128959
128986
  context.readPixels(x, y, w, h, context.RGBA, context.UNSIGNED_BYTE, out);
128960
128987
  }
128961
- catch (e) {
128988
+ catch {
128962
128989
  didSucceed = false;
128963
128990
  }
128964
128991
  });
@@ -131372,7 +131399,7 @@ class ExternalTextureLoader {
131372
131399
  }
131373
131400
  }
131374
131401
  }
131375
- catch (_e) { }
131402
+ catch { }
131376
131403
  return this._nextRequest(req);
131377
131404
  }
131378
131405
  async _convertTexture() {
@@ -131396,7 +131423,7 @@ class ExternalTextureLoader {
131396
131423
  }
131397
131424
  }
131398
131425
  }
131399
- catch (_e) { }
131426
+ catch { }
131400
131427
  this._convertPending = false;
131401
131428
  }
131402
131429
  _requestExists(reqToCheck) {
@@ -141200,7 +141227,7 @@ function createClassifierId(classifier, source) {
141200
141227
  if (undefined === classifier)
141201
141228
  return { modelId: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid, type: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BatchType.PlanarClassifier, expansion: 0, animationId: undefined };
141202
141229
  const type = classifier.flags.isVolumeClassifier ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BatchType.VolumeClassifier : _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BatchType.PlanarClassifier;
141203
- const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.tileAdmin.getScriptInfoForTreeId(classifier.modelId, source?.scheduleScriptReference); // eslint-disable-line deprecation/deprecation
141230
+ const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.tileAdmin.getScriptInfoForTreeId(classifier.modelId, source?.scheduleScriptReference); // eslint-disable-line @typescript-eslint/no-deprecated
141204
141231
  return {
141205
141232
  modelId: classifier.modelId,
141206
141233
  type,
@@ -141244,7 +141271,7 @@ class ContextShareProvider {
141244
141271
  try {
141245
141272
  attUrl = new URL(tilesetUrl);
141246
141273
  }
141247
- catch (e) {
141274
+ catch {
141248
141275
  // Not a valid URL for Context share
141249
141276
  return false;
141250
141277
  }
@@ -141275,7 +141302,7 @@ class ContextShareProvider {
141275
141302
  try {
141276
141303
  attUrl = new URL(tilesetUrl);
141277
141304
  }
141278
- catch (e) {
141305
+ catch {
141279
141306
  // Not a valid URL and not equal, probably $cesiumAsset
141280
141307
  return invalidUrlInfo;
141281
141308
  }
@@ -141973,7 +142000,7 @@ class GltfReaderProps {
141973
142000
  json = JSON.parse(utf8Json);
141974
142001
  version = 2;
141975
142002
  }
141976
- catch (_) {
142003
+ catch {
141977
142004
  return undefined;
141978
142005
  }
141979
142006
  }
@@ -141992,7 +142019,7 @@ class GltfReaderProps {
141992
142019
  return undefined;
141993
142020
  json = JSON.parse(jsonStr);
141994
142021
  }
141995
- catch (_) {
142022
+ catch {
141996
142023
  return undefined;
141997
142024
  }
141998
142025
  }
@@ -142546,7 +142573,7 @@ class GltfReader {
142546
142573
  const bytes = aligned ? bufferData.subarray(offset, offset + length) : bufferData.slice(offset, offset + length);
142547
142574
  return new GltfBufferView(bytes, accessor.count, type, accessor, byteStride / dataSize);
142548
142575
  }
142549
- catch (e) {
142576
+ catch {
142550
142577
  return undefined;
142551
142578
  }
142552
142579
  }
@@ -143307,8 +143334,7 @@ class GltfReader {
143307
143334
  promises.push(this.resolveImage(image));
143308
143335
  await Promise.all(promises);
143309
143336
  }
143310
- catch (_) {
143311
- }
143337
+ catch { }
143312
143338
  }
143313
143339
  async decodeDracoMesh(ext, loader) {
143314
143340
  const bv = this._bufferViews[ext.bufferView];
@@ -143329,7 +143355,7 @@ class GltfReader {
143329
143355
  resolved.search = this._baseUrl?.search ?? "";
143330
143356
  return resolved.toString();
143331
143357
  }
143332
- catch (_) {
143358
+ catch {
143333
143359
  return undefined;
143334
143360
  }
143335
143361
  }
@@ -143347,7 +143373,7 @@ class GltfReader {
143347
143373
  if (data)
143348
143374
  buffer.resolvedBuffer = new Uint8Array(data);
143349
143375
  }
143350
- catch (_) {
143376
+ catch {
143351
143377
  //
143352
143378
  }
143353
143379
  }
@@ -143372,7 +143398,7 @@ class GltfReader {
143372
143398
  else
143373
143399
  image.resolvedImage = await (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_10__.imageElementFromImageSource)(imageSource);
143374
143400
  }
143375
- catch (_) {
143401
+ catch {
143376
143402
  //
143377
143403
  }
143378
143404
  return;
@@ -144847,11 +144873,11 @@ async function loadNamedTexture(name, namedTex, options) {
144847
144873
  return await options.system.createTextureFromSource({ source, ownership, type: textureType, transparency: namedTex.transparency });
144848
144874
  }
144849
144875
  // bufferViewJson was undefined, so attempt to request the texture directly from the backend
144850
- // eslint-disable-next-line deprecation/deprecation
144876
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
144851
144877
  const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderTexture.Params(cacheable ? name : undefined, textureType);
144852
144878
  return options.system.createTextureFromElement(name, options.iModel, params, namedTex.format);
144853
144879
  }
144854
- catch (_) {
144880
+ catch {
144855
144881
  return undefined;
144856
144882
  }
144857
144883
  }
@@ -144938,7 +144964,7 @@ function getMaterial(mat, options) {
144938
144964
  function colorDefFromJson(col) {
144939
144965
  return col ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorDef.from(col[0] * 255 + 0.5, col[1] * 255 + 0.5, col[2] * 255 + 0.5) : undefined;
144940
144966
  }
144941
- // eslint-disable-next-line deprecation/deprecation
144967
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
144942
144968
  const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMaterial.Params(mat);
144943
144969
  params.diffuseColor = colorDefFromJson(json.diffuseColor);
144944
144970
  if (json.diffuse !== undefined)
@@ -144958,7 +144984,7 @@ function getMaterial(mat, options) {
144958
144984
  params.ambient = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.JsonUtils.asDouble(json.ambient);
144959
144985
  if (undefined !== json.textureMapping)
144960
144986
  params.textureMapping = textureMappingFromJson(json.textureMapping.texture, options);
144961
- // eslint-disable-next-line deprecation/deprecation
144987
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
144962
144988
  return options.system.createMaterial(params, options.iModel);
144963
144989
  }
144964
144990
  function getModifiers(primitive) {
@@ -146204,7 +146230,7 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_9__.TileTree {
146204
146230
  this.viewFlagOverrides = {};
146205
146231
  this._tileGraphics = new Map();
146206
146232
  const worldContentRange = this.iModelTransform.multiplyRange(cloudRange);
146207
- /* eslint-disable-next-line deprecation/deprecation */
146233
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
146208
146234
  this.iModel.expandDisplayedExtents(worldContentRange);
146209
146235
  this._tileParams = { contentId: "0", range: cloudRange, maximumSize: 256 };
146210
146236
  this.rootTile = new OrbitGtRootTile(this._tileParams, this);
@@ -146308,7 +146334,6 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_9__.TileTree {
146308
146334
  }
146309
146335
  }
146310
146336
  /** @internal */
146311
- // eslint-disable-next-line no-redeclare
146312
146337
  (function (OrbitGtTileTree) {
146313
146338
  function isValidSASToken(downloadUrl) {
146314
146339
  // Create fake URL for and parameter parsing and SAS token URI parsing
@@ -146628,7 +146653,7 @@ async function readPointCloudTileContent(stream, iModel, modelId, _is3d, tile, s
146628
146653
  const buf = new Uint8Array(stream.arrayBuffer, dataOffset + draco.byteOffset, draco.byteLength);
146629
146654
  props = await decodeDracoPointCloud(buf);
146630
146655
  }
146631
- catch (_) {
146656
+ catch {
146632
146657
  //
146633
146658
  }
146634
146659
  }
@@ -146776,7 +146801,7 @@ class PrimaryTreeSupplier {
146776
146801
  elevation = (lo + hi) / 2;
146777
146802
  }
146778
146803
  }
146779
- catch (_err) {
146804
+ catch {
146780
146805
  //
146781
146806
  }
146782
146807
  return new PlanProjectionTileTree(params, id.treeId, elevation);
@@ -146829,7 +146854,7 @@ class PrimaryTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTr
146829
146854
  return cutApp ? app.extendAppearance(cutApp) : app;
146830
146855
  });
146831
146856
  }
146832
- const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(model.id, view.displayStyle.scheduleScriptReference); // eslint-disable-line deprecation/deprecation
146857
+ const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(model.id, view.displayStyle.scheduleScriptReference); // eslint-disable-line @typescript-eslint/no-deprecated
146833
146858
  this._id = {
146834
146859
  modelId: model.id,
146835
146860
  is3d: model.is3d,
@@ -146874,7 +146899,7 @@ class PrimaryTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTr
146874
146899
  }
146875
146900
  get treeOwner() {
146876
146901
  const newId = this.createTreeId(this.view, this._id.modelId);
146877
- const timeline = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(this._id.modelId, this.view.displayStyle.scheduleScriptReference)?.timeline; // eslint-disable-line deprecation/deprecation
146902
+ const timeline = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(this._id.modelId, this.view.displayStyle.scheduleScriptReference)?.timeline; // eslint-disable-line @typescript-eslint/no-deprecated
146878
146903
  if (0 !== (0,_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.compareIModelTileTreeIds)(newId, this._id.treeId) || timeline !== this._id.timeline) {
146879
146904
  this._id = {
146880
146905
  modelId: this._id.modelId,
@@ -146900,7 +146925,7 @@ class PrimaryTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTr
146900
146925
  forceSurfaceDiscard: true,
146901
146926
  };
146902
146927
  }
146903
- const animationId = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(modelId, view.displayStyle.scheduleScriptReference)?.animationId; // eslint-disable-line deprecation/deprecation
146928
+ const animationId = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(modelId, view.displayStyle.scheduleScriptReference)?.animationId; // eslint-disable-line @typescript-eslint/no-deprecated
146904
146929
  const renderMode = this._viewFlagOverrides.renderMode ?? view.viewFlags.renderMode;
146905
146930
  const visibleEdges = this._viewFlagOverrides.visibleEdges ?? view.viewFlags.visibleEdges;
146906
146931
  const edgesRequired = visibleEdges || _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderMode.SmoothShade !== renderMode || _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.alwaysRequestEdges;
@@ -147194,7 +147219,7 @@ class SpatialRefs {
147194
147219
  this._sectionCutOnlyRefs = new Map();
147195
147220
  this._swapSectionCutOnlyRefs = new Map();
147196
147221
  this._view = view;
147197
- this._scheduleScript = view.displayStyle.scheduleScriptReference; // eslint-disable-line deprecation/deprecation
147222
+ this._scheduleScript = view.displayStyle.scheduleScriptReference; // eslint-disable-line @typescript-eslint/no-deprecated
147198
147223
  this._sectionCut = this.getSectionCutFromView();
147199
147224
  if (excludedModels)
147200
147225
  this._excludedModels = new Set(excludedModels);
@@ -147256,7 +147281,7 @@ class SpatialRefs {
147256
147281
  this._allLoaded = true;
147257
147282
  this.updateModels();
147258
147283
  }
147259
- const curScript = this._view.displayStyle.scheduleScriptReference; // eslint-disable-line deprecation/deprecation
147284
+ const curScript = this._view.displayStyle.scheduleScriptReference; // eslint-disable-line @typescript-eslint/no-deprecated
147260
147285
  const prevScript = this._scheduleScript;
147261
147286
  if (curScript !== prevScript) {
147262
147287
  this._scheduleScript = curScript;
@@ -147762,14 +147787,13 @@ class RealityModelTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.Realit
147762
147787
  this._isContentUnbounded = this.rootTile.contentRange.diagonal().magnitude() > 2 * _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Constant.earthRadiusWGS84.equator;
147763
147788
  if (!this.isContentUnbounded && !this.rootTile.contentRange.isNull) {
147764
147789
  const worldContentRange = this.iModelTransform.multiplyRange(this.rootTile.contentRange);
147765
- /* eslint-disable-next-line deprecation/deprecation */
147790
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
147766
147791
  this.iModel.expandDisplayedExtents(worldContentRange);
147767
147792
  }
147768
147793
  }
147769
147794
  get isContentUnbounded() { return this._isContentUnbounded; }
147770
147795
  }
147771
147796
  /** @internal */
147772
- // eslint-disable-next-line no-redeclare
147773
147797
  (function (RealityModelTileTree) {
147774
147798
  class Reference extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTreeReference {
147775
147799
  // public get classifiers(): SpatialClassifiers | undefined { return undefined !== this._classifier ? this._classifier.classifiers : undefined; }
@@ -148840,7 +148864,7 @@ class RealityTileLoader {
148840
148864
  if (content.containsPointCloud)
148841
148865
  this._containsPointClouds = true;
148842
148866
  }
148843
- catch (_err) {
148867
+ catch {
148844
148868
  // Failure to load should prevent us from trying to load children
148845
148869
  content.isLeaf = true;
148846
148870
  }
@@ -149538,7 +149562,7 @@ class ThreeDTileFormatInterpreter {
149538
149562
  }
149539
149563
  }
149540
149564
  }
149541
- catch (e) {
149565
+ catch {
149542
149566
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning(loggerCategory, `Error getSpatialLocationAndExtents - cannot interpret json`);
149543
149567
  // return first 1024 char from the json
149544
149568
  const getMetaData = () => {
@@ -150600,7 +150624,6 @@ class TileAdmin {
150600
150624
  * @internal
150601
150625
  */
150602
150626
  isTileInUse(marker) {
150603
- // eslint-disable-next-line @typescript-eslint/naming-convention
150604
150627
  for (const [_user, markers] of this._tileUsagePerUser)
150605
150628
  if (markers.has(marker))
150606
150629
  return true;
@@ -150884,7 +150907,7 @@ class TileAdmin {
150884
150907
  _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.lookup(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelTileRpcInterface, "requestTileTreeProps").policy.retryInterval = () => retryInterval;
150885
150908
  const policy = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.lookup(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelTileRpcInterface, "generateTileContent").policy;
150886
150909
  policy.retryInterval = () => retryInterval;
150887
- policy.allowResponseCaching = () => _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcResponseCacheControl.Immutable; // eslint-disable-line deprecation/deprecation
150910
+ policy.allowResponseCaching = () => _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcResponseCacheControl.Immutable;
150888
150911
  }
150889
150912
  }
150890
150913
  /** @public */
@@ -151566,7 +151589,7 @@ class TileRequest {
151566
151589
  this.notifyAndClear();
151567
151590
  this.channel.recordCompletion(this.tile, content, Date.now() - start);
151568
151591
  }
151569
- catch (_err) {
151592
+ catch {
151570
151593
  this.setFailed();
151571
151594
  }
151572
151595
  }
@@ -151676,7 +151699,7 @@ class TileRequestChannelStatistics {
151676
151699
  const val = this[key];
151677
151700
  if (typeof val === "number") {
151678
151701
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof stats[key] === "number");
151679
- stats[key] += val;
151702
+ stats[key] += val; // eslint-disable-line @typescript-eslint/no-unnecessary-type-assertion
151680
151703
  }
151681
151704
  }
151682
151705
  stats.decoding.total += this.decoding.total;
@@ -152100,7 +152123,7 @@ class TileStorage {
152100
152123
  });
152101
152124
  return new Uint8Array(buffer); // should always be Buffer because transferType === "buffer"
152102
152125
  }
152103
- catch (_) {
152126
+ catch {
152104
152127
  // @itwin/object-storage re-throws internal implementation-specific errors, so let's treat them all as 404 for now.
152105
152128
  return undefined;
152106
152129
  }
@@ -153381,7 +153404,6 @@ class ArcGISTileMap {
153381
153404
  this._restBaseUrl = restBaseUrl;
153382
153405
  this._fetchFunc = fetchFunc;
153383
153406
  this._settings = settings;
153384
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
153385
153407
  this._callQueues = new Array(ArcGISTileMap.maxLod).fill(Promise.resolve(nonVisibleChildren));
153386
153408
  }
153387
153409
  async fetchTileMapFromServer(level, row, column, width, height) {
@@ -153862,7 +153884,7 @@ class ArcGisUtilities {
153862
153884
  ArcGisUtilities._serviceCache.set(url, (errorCode === undefined ? info : undefined));
153863
153885
  return info; // Always return json, even though it contains an error code.
153864
153886
  }
153865
- catch (_error) {
153887
+ catch {
153866
153888
  ArcGisUtilities._serviceCache.set(url, undefined);
153867
153889
  return undefined;
153868
153890
  }
@@ -154020,7 +154042,7 @@ class BingElevationProvider {
154020
154042
  const tileResponseBody = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_0__.request)(requestUrl, "json");
154021
154043
  return tileResponseBody.resourceSets[0].resources[0].elevations[0];
154022
154044
  }
154023
- catch (error) {
154045
+ catch {
154024
154046
  return 0.0;
154025
154047
  }
154026
154048
  }
@@ -154035,7 +154057,7 @@ class BingElevationProvider {
154035
154057
  const tileResponseBody = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_0__.request)(requestUrl, "json");
154036
154058
  return tileResponseBody.resourceSets[0].resources[0].elevations;
154037
154059
  }
154038
- catch (error) {
154060
+ catch {
154039
154061
  return undefined;
154040
154062
  }
154041
154063
  }
@@ -154049,7 +154071,7 @@ class BingElevationProvider {
154049
154071
  const tileResponseBody = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_0__.request)(requestUrl, "json");
154050
154072
  return tileResponseBody.resourceSets[0].resources[0].offsets[0];
154051
154073
  }
154052
- catch (error) {
154074
+ catch {
154053
154075
  return 0.0;
154054
154076
  }
154055
154077
  }
@@ -154175,7 +154197,7 @@ async function getCesiumAccessTokenAndEndpointUrl(assetId, requestKey) {
154175
154197
  }
154176
154198
  return { token: apiResponse.accessToken, url: apiResponse.url };
154177
154199
  }
154178
- catch (error) {
154200
+ catch {
154179
154201
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false);
154180
154202
  return {};
154181
154203
  }
@@ -154201,7 +154223,7 @@ async function getCesiumTerrainProvider(opts) {
154201
154223
  const layerUrl = `${accessTokenAndEndpointUrl.url}layer.json`;
154202
154224
  layers = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_4__.request)(layerUrl, "json", layerRequestOptions);
154203
154225
  }
154204
- catch (error) {
154226
+ catch {
154205
154227
  notifyTerrainError();
154206
154228
  return undefined;
154207
154229
  }
@@ -154316,7 +154338,7 @@ class CesiumTerrainProvider extends _internal__WEBPACK_IMPORTED_MODULE_8__.Terra
154316
154338
  const response = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_4__.request)(tileUrl, "arraybuffer", requestOptions);
154317
154339
  return new Uint8Array(response);
154318
154340
  }
154319
- catch (_) {
154341
+ catch {
154320
154342
  return undefined;
154321
154343
  }
154322
154344
  }
@@ -154763,7 +154785,7 @@ class ArcGISImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_0__.MapLa
154763
154785
  try {
154764
154786
  metadata = await _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.getServiceJson({ url: this._settings.url, formatId: this._settings.formatId, userName: this._settings.userName, password: this._settings.password, queryParams: this._settings.collectQueryParams() });
154765
154787
  }
154766
- catch (_e) {
154788
+ catch {
154767
154789
  }
154768
154790
  if (metadata && metadata.accessTokenRequired) {
154769
154791
  const accessClient = _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.mapLayerFormatRegistry.getAccessClient(this._settings.formatId);
@@ -155464,15 +155486,14 @@ class BingMapsImageryLayerProvider extends _internal__WEBPACK_IMPORTED_MODULE_3_
155464
155486
  return matchingAttributions;
155465
155487
  const unmatchedSet = this._attributions.slice();
155466
155488
  for (const tile of tiles) {
155467
- if (tile instanceof _internal__WEBPACK_IMPORTED_MODULE_3__.MapTile)
155489
+ if (tile instanceof _internal__WEBPACK_IMPORTED_MODULE_3__.MapTile) {
155468
155490
  // compare to the set of Bing attributions that we have not yet matched.
155469
- for (let iAttr = 0; iAttr < unmatchedSet.length; iAttr++) {
155470
- const attribution = unmatchedSet[iAttr];
155491
+ for (const attribution of unmatchedSet) {
155471
155492
  if (attribution && attribution.matchesTile(tile, this._mapTilingScheme)) {
155472
155493
  matchingAttributions.push(attribution);
155473
- delete unmatchedSet[iAttr];
155474
155494
  }
155475
155495
  }
155496
+ }
155476
155497
  }
155477
155498
  return matchingAttributions;
155478
155499
  }
@@ -155514,7 +155535,7 @@ class BingMapsImageryLayerProvider extends _internal__WEBPACK_IMPORTED_MODULE_3_
155514
155535
  this._missingTileData = tileData.data;
155515
155536
  });
155516
155537
  }
155517
- catch (error) {
155538
+ catch {
155518
155539
  throw new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.BadModel, "Error in Bing Server communications");
155519
155540
  }
155520
155541
  }
@@ -155835,7 +155856,7 @@ class FeatureGraphicsRenderer extends _internal__WEBPACK_IMPORTED_MODULE_3__.Fea
155835
155856
  const spatialPoints = await this.toSpatial(pointsArray);
155836
155857
  this._graphics.push({ type: "pointstring", points: spatialPoints });
155837
155858
  }
155838
- catch (error) {
155859
+ catch {
155839
155860
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logError(loggerCategory, "FeatureGraphicsRenderer: Could not reproject points");
155840
155861
  }
155841
155862
  this._scratchPointsArray.clear();
@@ -159126,7 +159147,7 @@ class MapTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_3__.RealityTileLo
159126
159147
  const data = await this.terrainProvider.requestMeshData({ tile, isCanceled });
159127
159148
  return undefined !== data ? { data } : undefined;
159128
159149
  }
159129
- catch (_) {
159150
+ catch {
159130
159151
  return undefined;
159131
159152
  }
159132
159153
  }
@@ -166254,7 +166275,7 @@ class MeasureMarker extends _Marker__WEBPACK_IMPORTED_MODULE_7__.Marker {
166254
166275
  ctx.fill();
166255
166276
  ctx.stroke();
166256
166277
  };
166257
- this.drawFunc = markerDrawFunc; // eslint-disable-line @typescript-eslint/unbound-method
166278
+ this.drawFunc = markerDrawFunc;
166258
166279
  this.title = title;
166259
166280
  this.label = label;
166260
166281
  this.labelFont = "16px sans-serif";
@@ -166645,7 +166666,7 @@ class MeasureDistanceTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_10__.P
166645
166666
  ev.viewport.invalidateDecorations();
166646
166667
  return true;
166647
166668
  };
166648
- marker.onMouseButton = segMarkerButtonFunc; // eslint-disable-line @typescript-eslint/unbound-method
166669
+ marker.onMouseButton = segMarkerButtonFunc;
166649
166670
  this._acceptedSegments.push({ distance, slope, start, end, delta, adjustedStart, adjustedEnd, adjustedDelta, refAxes, marker });
166650
166671
  }
166651
166672
  }
@@ -173247,14 +173268,14 @@ class ViewLookAndMove extends ViewNavigate {
173247
173268
  if (undefined === this._pointerLockClickEngagementListener) {
173248
173269
  this._pointerLockClickEngagementListener = () => {
173249
173270
  if (1 === this.viewTool.nPts && undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.cursorView)
173250
- vp.canvas.requestPointerLock();
173271
+ void vp.canvas.requestPointerLock();
173251
173272
  };
173252
173273
  document.addEventListener("click", this._pointerLockClickEngagementListener, false);
173253
173274
  }
173254
173275
  if (undefined === this._pointerLockKeyEngagementListener) {
173255
173276
  this._pointerLockKeyEngagementListener = (ev) => {
173256
173277
  if (0 === this.viewTool.nPts && undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.cursorView && this.isNavigationKey(ev))
173257
- vp.canvas.requestPointerLock();
173278
+ void vp.canvas.requestPointerLock();
173258
173279
  };
173259
173280
  document.addEventListener("keydown", this._pointerLockKeyEngagementListener, false);
173260
173281
  }
@@ -175526,7 +175547,7 @@ __webpack_require__.r(__webpack_exports__);
175526
175547
  *--------------------------------------------------------------------------------------------*/
175527
175548
 
175528
175549
 
175529
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
175550
+ /* eslint-disable @typescript-eslint/naming-convention */
175530
175551
  /**
175531
175552
  * Enumeration of the 6 possible orderings of XYZ axis order
175532
175553
  * * **Note:** There are 3 axis order with right hand system (XYZ = 0, YZX = 1, ZXY = 2) and 3 axis order with
@@ -176585,7 +176606,7 @@ class Geometry {
176585
176606
  * * If the clone method returns `undefined`, then `undefined` is forced into the cloned array.
176586
176607
  * @deprecated in 4.x. Use cloneArray.
176587
176608
  */
176588
- // eslint-disable-next-line deprecation/deprecation
176609
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
176589
176610
  static cloneMembers(array) {
176590
176611
  if (array === undefined)
176591
176612
  return undefined;
@@ -176832,7 +176853,6 @@ __webpack_require__.r(__webpack_exports__);
176832
176853
  */
176833
176854
  // import { Point2d } from "../Geometry2d";
176834
176855
 
176835
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
176836
176856
 
176837
176857
 
176838
176858
  /** Bspline knots and poles for 1d-to-Nd.
@@ -177310,13 +177330,14 @@ class BSplineCurve3dBase extends _curve_CurvePrimitive__WEBPACK_IMPORTED_MODULE_
177310
177330
  * * If the space point is exactly on the curve, this is the reverse of fractionToPoint.
177311
177331
  * * Since CurvePrimitive should always have start and end available as candidate points, this method should always succeed
177312
177332
  * @param spacePoint point in space
177313
- * @param _extend ignored. A BSplineCurve3dBase cannot be extended.
177314
- * @returns Returns a CurveLocationDetail structure that holds the details of the close point.
177333
+ * @param _extend ignored (pass false). A BSplineCurve3dBase cannot be extended.
177334
+ * @param result optional pre-allocated detail to populate and return.
177335
+ * @returns details of the closest point.
177315
177336
  */
177316
- closestPoint(spacePoint, _extend) {
177337
+ closestPoint(spacePoint, _extend, result) {
177317
177338
  // seed at start point -- final point comes with final bezier perpendicular step.
177318
177339
  const point = this.fractionToPoint(0);
177319
- const result = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveFractionPointDistance(this, 0.0, point, point.distance(spacePoint));
177340
+ result = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveFractionPointDistance(this, 0.0, point, point.distance(spacePoint), result);
177320
177341
  let span;
177321
177342
  const numSpans = this.numSpan;
177322
177343
  for (let i = 0; i < numSpans; i++) {
@@ -185792,7 +185813,7 @@ class ClipVector {
185792
185813
  result._clips.push(clipPrim);
185793
185814
  }
185794
185815
  }
185795
- catch (e) {
185816
+ catch {
185796
185817
  result.clear();
185797
185818
  }
185798
185819
  return result;
@@ -190288,9 +190309,10 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
190288
190309
  * has pointer to an additional detail for the child curve.
190289
190310
  * @param spacePoint point in space
190290
190311
  * @param extend true to extend the curve
190291
- * @returns a CurveLocationDetail structure that holds the details of the close point.
190312
+ * @param result optional pre-allocated detail to populate and return.
190313
+ * @returns details of the closest point
190292
190314
  */
190293
- closestPoint(spacePoint, extend) {
190315
+ closestPoint(spacePoint, extend, result) {
190294
190316
  let childDetail;
190295
190317
  let aMin = Number.MAX_VALUE;
190296
190318
  const numChildren = this.path.children.length;
@@ -190329,7 +190351,7 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
190329
190351
  }
190330
190352
  if (!childDetail)
190331
190353
  return undefined;
190332
- return this.computeChainDetail(childDetail);
190354
+ return this.computeChainDetail(childDetail, result);
190333
190355
  }
190334
190356
  /**
190335
190357
  * Construct an offset of each child as viewed in the xy-plane (ignoring z).
@@ -190365,17 +190387,18 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
190365
190387
  /**
190366
190388
  * Compute the global chain detail corresponding to a local child detail.
190367
190389
  * @param childDetail the local (fragment) detail, captured as-is.
190368
- * @returns newly allocated global (chain) detail with its `childDetail` field pointing to the input, and its `a`
190369
- * field copied from the input.
190390
+ * @param result optional pre-allocated detail to populate and return.
190391
+ * @returns global (chain) detail with its `childDetail` field pointing to the input and its `a`
190392
+ * field copied from the input, but if a PathFragment for `childDetail` cannot be resolved, return undefined.
190370
190393
  */
190371
- computeChainDetail(childDetail) {
190394
+ computeChainDetail(childDetail, result) {
190372
190395
  if (!childDetail.curve)
190373
190396
  return undefined;
190374
190397
  const fragment = this.curveAndChildFractionToFragment(childDetail.curve, childDetail.fraction);
190375
190398
  if (fragment) {
190376
190399
  const chainDistance = fragment.childFractionToChainDistance(childDetail.fraction);
190377
190400
  const chainFraction = this.chainDistanceToChainFraction(chainDistance);
190378
- const chainDetail = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail.createCurveFractionPoint(this, chainFraction, childDetail.point);
190401
+ const chainDetail = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail.createCurveFractionPoint(this, chainFraction, childDetail.point, result);
190379
190402
  chainDetail.childDetail = childDetail;
190380
190403
  chainDetail.a = childDetail.a;
190381
190404
  return chainDetail;
@@ -190435,16 +190458,16 @@ __webpack_require__.r(__webpack_exports__);
190435
190458
  /* harmony export */ "CurveCollection": () => (/* binding */ CurveCollection)
190436
190459
  /* harmony export */ });
190437
190460
  /* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
190438
- /* harmony import */ var _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
190439
- /* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
190461
+ /* harmony import */ var _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
190462
+ /* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
190440
190463
  /* harmony import */ var _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GeometryQuery */ "../../core/geometry/lib/esm/curve/GeometryQuery.js");
190441
- /* harmony import */ var _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./internalContexts/CloneCurvesContext */ "../../core/geometry/lib/esm/curve/internalContexts/CloneCurvesContext.js");
190442
- /* harmony import */ var _internalContexts_CloneWithExpandedLineStrings__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./internalContexts/CloneWithExpandedLineStrings */ "../../core/geometry/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.js");
190443
- /* harmony import */ var _internalContexts_CountLinearPartsSearchContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./internalContexts/CountLinearPartsSearchContext */ "../../core/geometry/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js");
190444
- /* harmony import */ var _internalContexts_GapSearchContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./internalContexts/GapSearchContext */ "../../core/geometry/lib/esm/curve/internalContexts/GapSearchContext.js");
190464
+ /* harmony import */ var _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./internalContexts/CloneCurvesContext */ "../../core/geometry/lib/esm/curve/internalContexts/CloneCurvesContext.js");
190465
+ /* harmony import */ var _internalContexts_CloneWithExpandedLineStrings__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./internalContexts/CloneWithExpandedLineStrings */ "../../core/geometry/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.js");
190466
+ /* harmony import */ var _internalContexts_CountLinearPartsSearchContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./internalContexts/CountLinearPartsSearchContext */ "../../core/geometry/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js");
190467
+ /* harmony import */ var _internalContexts_GapSearchContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./internalContexts/GapSearchContext */ "../../core/geometry/lib/esm/curve/internalContexts/GapSearchContext.js");
190445
190468
  /* harmony import */ var _internalContexts_PlaneAltitudeRangeContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./internalContexts/PlaneAltitudeRangeContext */ "../../core/geometry/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js");
190446
190469
  /* harmony import */ var _internalContexts_SumLengthsContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internalContexts/SumLengthsContext */ "../../core/geometry/lib/esm/curve/internalContexts/SumLengthsContext.js");
190447
- /* harmony import */ var _internalContexts_TransformInPlaceContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./internalContexts/TransformInPlaceContext */ "../../core/geometry/lib/esm/curve/internalContexts/TransformInPlaceContext.js");
190470
+ /* harmony import */ var _internalContexts_TransformInPlaceContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./internalContexts/TransformInPlaceContext */ "../../core/geometry/lib/esm/curve/internalContexts/TransformInPlaceContext.js");
190448
190471
  /* harmony import */ var _LineString3d__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./LineString3d */ "../../core/geometry/lib/esm/curve/LineString3d.js");
190449
190472
  /* harmony import */ var _ProxyCurve__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ProxyCurve */ "../../core/geometry/lib/esm/curve/ProxyCurve.js");
190450
190473
  /*---------------------------------------------------------------------------------------------
@@ -190492,19 +190515,20 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
190492
190515
  sumLengths() {
190493
190516
  return _internalContexts_SumLengthsContext__WEBPACK_IMPORTED_MODULE_1__.SumLengthsContext.sumLengths(this);
190494
190517
  }
190495
- /** Return the closest point on the contained curves */
190496
- closestPoint(spacePoint) {
190518
+ /**
190519
+ * Return the closest point on the contained curves.
190520
+ * @param spacePoint point in space.
190521
+ * @param _extend unused here (pass false), but applicable to overrides in [[Path]] and [[BagOfCurves]].
190522
+ * @param result optional pre-allocated detail to populate and return.
190523
+ * @returns details of the closest point.
190524
+ */
190525
+ closestPoint(spacePoint, _extend = false, result) {
190497
190526
  let detailA;
190527
+ const detailB = new _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail();
190498
190528
  if (this.children !== undefined) {
190499
190529
  for (const child of this.children) {
190500
- if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__.CurvePrimitive) {
190501
- const detailB = child.closestPoint(spacePoint, false);
190502
- detailA = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.chooseSmallerA(detailA, detailB);
190503
- }
190504
- else if (child instanceof CurveCollection) {
190505
- const detailB = child.closestPoint(spacePoint);
190506
- detailA = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.chooseSmallerA(detailA, detailB);
190507
- }
190530
+ if (child.closestPoint(spacePoint, false, detailB))
190531
+ detailA = result = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.chooseSmallerA(detailA, detailB).clone(result);
190508
190532
  }
190509
190533
  }
190510
190534
  return detailA;
@@ -190517,27 +190541,27 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
190517
190541
  * "unstructured" so gaps should not be semantically meaningful.
190518
190542
  */
190519
190543
  maxGap() {
190520
- return _internalContexts_GapSearchContext__WEBPACK_IMPORTED_MODULE_4__.GapSearchContext.maxGap(this);
190544
+ return _internalContexts_GapSearchContext__WEBPACK_IMPORTED_MODULE_3__.GapSearchContext.maxGap(this);
190521
190545
  }
190522
190546
  /** Return true if the curve collection has any primitives other than LineSegment3d and LineString3d */
190523
190547
  checkForNonLinearPrimitives() {
190524
- return _internalContexts_CountLinearPartsSearchContext__WEBPACK_IMPORTED_MODULE_5__.CountLinearPartsSearchContext.hasNonLinearPrimitives(this);
190548
+ return _internalContexts_CountLinearPartsSearchContext__WEBPACK_IMPORTED_MODULE_4__.CountLinearPartsSearchContext.hasNonLinearPrimitives(this);
190525
190549
  }
190526
190550
  /** Apply transform recursively to children */
190527
190551
  tryTransformInPlace(transform) {
190528
- return _internalContexts_TransformInPlaceContext__WEBPACK_IMPORTED_MODULE_6__.TransformInPlaceContext.tryTransformInPlace(this, transform);
190552
+ return _internalContexts_TransformInPlaceContext__WEBPACK_IMPORTED_MODULE_5__.TransformInPlaceContext.tryTransformInPlace(this, transform);
190529
190553
  }
190530
190554
  /** Return a deep copy. */
190531
190555
  clone() {
190532
- return _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_7__.CloneCurvesContext.clone(this);
190556
+ return _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_6__.CloneCurvesContext.clone(this);
190533
190557
  }
190534
190558
  /** Create a deep copy of transformed curves. */
190535
190559
  cloneTransformed(transform) {
190536
- return _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_7__.CloneCurvesContext.clone(this, transform);
190560
+ return _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_6__.CloneCurvesContext.clone(this, transform);
190537
190561
  }
190538
190562
  /** Create a deep copy with all linestrings broken down into multiple LineSegment3d. */
190539
190563
  cloneWithExpandedLineStrings() {
190540
- return _internalContexts_CloneWithExpandedLineStrings__WEBPACK_IMPORTED_MODULE_8__.CloneWithExpandedLineStrings.clone(this);
190564
+ return _internalContexts_CloneWithExpandedLineStrings__WEBPACK_IMPORTED_MODULE_7__.CloneWithExpandedLineStrings.clone(this);
190541
190565
  }
190542
190566
  /**
190543
190567
  * Push all CurvePrimitives contained in the instance onto the `results` array.
@@ -190547,7 +190571,7 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
190547
190571
  collectCurvePrimitivesGo(results, smallestPossiblePrimitives, explodeLinestrings = false) {
190548
190572
  if (this.children) {
190549
190573
  for (const child of this.children) {
190550
- if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__.CurvePrimitive)
190574
+ if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive)
190551
190575
  child.collectCurvePrimitivesGo(results, smallestPossiblePrimitives, explodeLinestrings);
190552
190576
  else if (child instanceof CurveCollection)
190553
190577
  child.collectCurvePrimitivesGo(results, smallestPossiblePrimitives, explodeLinestrings);
@@ -190627,8 +190651,8 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
190627
190651
  static createCurveLocationDetailOnAnyCurvePrimitive(source, fraction = 0.5) {
190628
190652
  if (!source)
190629
190653
  return undefined;
190630
- if (source instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__.CurvePrimitive) {
190631
- return _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveEvaluatedFraction(source, fraction);
190654
+ if (source instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive) {
190655
+ return _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveEvaluatedFraction(source, fraction);
190632
190656
  }
190633
190657
  else if (source instanceof CurveCollection && source.children !== undefined)
190634
190658
  for (const child of source.children) {
@@ -190670,6 +190694,22 @@ class CurveChain extends CurveCollection {
190670
190694
  get children() {
190671
190695
  return this._curves;
190672
190696
  }
190697
+ /** Return the start point of the curve chain (start point of the first child). */
190698
+ startPoint(result) {
190699
+ const firstChild = this.getChild(0);
190700
+ if (firstChild)
190701
+ return firstChild.fractionToPoint(0.0, result);
190702
+ else
190703
+ return undefined;
190704
+ }
190705
+ /** Return the end point of the curve chain (end point of the last child). */
190706
+ endPoint(result) {
190707
+ const lastChild = this.getChild(this._curves.length - 1);
190708
+ if (lastChild)
190709
+ return lastChild.fractionToPoint(1.0, result);
190710
+ else
190711
+ return undefined;
190712
+ }
190673
190713
  /**
190674
190714
  * Return the curve primitive at the given `index`, optionally using `modulo` to map `index` to the cyclic indexing.
190675
190715
  * * In particular, `-1` is the final curve.
@@ -190714,7 +190754,7 @@ class CurveChain extends CurveCollection {
190714
190754
  * @return whether the child was added
190715
190755
  */
190716
190756
  tryAddChild(child) {
190717
- if (child && child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__.CurvePrimitive) {
190757
+ if (child && child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive) {
190718
190758
  this._curves.push(child);
190719
190759
  return true;
190720
190760
  }
@@ -190764,7 +190804,7 @@ class CurveChain extends CurveCollection {
190764
190804
  primitiveIndexAndFractionToCurveLocationDetailPointAndDerivative(index, fraction, cyclic = false, result) {
190765
190805
  const primitive = this.cyclicCurvePrimitive(index, cyclic);
190766
190806
  if (primitive) {
190767
- return _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveEvaluatedFractionPointAndDerivative(primitive, fraction, result);
190807
+ return _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveEvaluatedFractionPointAndDerivative(primitive, fraction, result);
190768
190808
  }
190769
190809
  return undefined;
190770
190810
  }
@@ -190811,7 +190851,7 @@ class BagOfCurves extends CurveCollection {
190811
190851
  const clone = new BagOfCurves();
190812
190852
  let child;
190813
190853
  for (child of this.children) {
190814
- if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__.CurvePrimitive) {
190854
+ if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive) {
190815
190855
  const ls = _LineString3d__WEBPACK_IMPORTED_MODULE_11__.LineString3d.create();
190816
190856
  child.emitStrokes(ls, options);
190817
190857
  if (ls)
@@ -190825,6 +190865,24 @@ class BagOfCurves extends CurveCollection {
190825
190865
  }
190826
190866
  return clone;
190827
190867
  }
190868
+ /**
190869
+ * Return the closest point on the contained curves.
190870
+ * @param spacePoint point in space.
190871
+ * @param extend applicable only to children of type [[CurvePrimitive]], [[Path]], or [[BagOfCurves]]
190872
+ * @param result optional pre-allocated detail to populate and return.
190873
+ * @returns details of the closest point.
190874
+ */
190875
+ closestPoint(spacePoint, extend = false, result) {
190876
+ let detailA;
190877
+ const detailB = new _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail();
190878
+ if (this.children !== undefined) {
190879
+ for (const child of this.children) {
190880
+ if (child.closestPoint(spacePoint, extend, detailB))
190881
+ detailA = result = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.chooseSmallerA(detailA, detailB).clone(result);
190882
+ }
190883
+ }
190884
+ return detailA;
190885
+ }
190828
190886
  /** Return an empty `BagOfCurves` */
190829
190887
  cloneEmptyPeer() {
190830
190888
  return new BagOfCurves();
@@ -191013,7 +191071,8 @@ __webpack_require__.r(__webpack_exports__);
191013
191071
  * @module Curve
191014
191072
  */
191015
191073
 
191016
- /** Enumeration of condition for extending a curve beyond start or end point.
191074
+ /**
191075
+ * Enumeration of condition for extending a curve beyond start or end point.
191017
191076
  * * Not all CurvePrimitives support these modes.
191018
191077
  * @public
191019
191078
  */
@@ -191021,17 +191080,18 @@ var CurveExtendMode;
191021
191080
  (function (CurveExtendMode) {
191022
191081
  /** No extension allowed. */
191023
191082
  CurveExtendMode[CurveExtendMode["None"] = 0] = "None";
191024
- /** Extend along continuation of the end tangent */
191083
+ /** Extend along continuation of the end tangent. */
191025
191084
  CurveExtendMode[CurveExtendMode["OnTangent"] = 1] = "OnTangent";
191026
191085
  /** Extend along continuation of the curve. */
191027
191086
  CurveExtendMode[CurveExtendMode["OnCurve"] = 2] = "OnCurve";
191028
191087
  })(CurveExtendMode || (CurveExtendMode = {}));
191029
- /** Logic for deciding how a curve may be extended for closest point or intersection searches.
191088
+ /**
191089
+ * Logic for deciding how a curve may be extended for closest point or intersection searches.
191030
191090
  * @public
191031
191091
  */
191032
191092
  class CurveExtendOptions {
191033
191093
  /**
191034
- * Given an VariantCurveExtendParameter, isolate the particular CurveExtendMode in effect at an end.
191094
+ * Given a `VariantCurveExtendParameter`, isolate the particular CurveExtendMode in effect at an end.
191035
191095
  * * Return `CurveExtendMode.None` if `param === false`.
191036
191096
  * * Return `CurveExtendMode.OnCurve` if `param === true`.
191037
191097
  * * Return the param if it is a single CurveExtendMode.
@@ -191043,15 +191103,14 @@ class CurveExtendOptions {
191043
191103
  if (param === true)
191044
191104
  return CurveExtendMode.OnCurve;
191045
191105
  if (Array.isArray(param))
191046
- return param[endIndex];
191106
+ return param.length > endIndex ? param[endIndex] : CurveExtendMode.None;
191047
191107
  return param;
191048
191108
  }
191049
191109
  /**
191050
- *
191051
- * * if fraction is between 0 and 1 return it unchanged.
191052
- * * if fraction is less than 0 use the variant param to choose the fraction or 0
191053
- * * if fraction is greater than 1 use the variant param to choose the fraction or 1
191054
- *
191110
+ * Correct fraction to be within [0,1].
191111
+ * * If fraction is in [0,1] return it unchanged.
191112
+ * * If fraction is less than 0 use `extendParam` to decide whether to return it unchanged, or to return 0.
191113
+ * * If fraction is greater than 1 use `extendParam` to decide whether to return it unchanged, or to return 1.
191055
191114
  */
191056
191115
  static correctFraction(extendParam, fraction) {
191057
191116
  if (fraction < 0) {
@@ -191068,10 +191127,10 @@ class CurveExtendOptions {
191068
191127
  }
191069
191128
  /**
191070
191129
  * Adjust a radians value to an angle sweep, allowing the extendParam to affect choice among periodic fractions.
191071
- * * if radians is within the sweep, convert it to a fraction of the sweep.
191072
- * * if radians is outside, use the extendParam to choose among:
191073
- * * fraction below 0
191074
- * * fraction above 1
191130
+ * * If radians is within the sweep, convert it to a fraction of the sweep.
191131
+ * * If radians is outside, use the extendParam to choose among:
191132
+ * * fraction below 0.
191133
+ * * fraction above 1.
191075
191134
  */
191076
191135
  static resolveRadiansToSweepFraction(extendParam, radians, sweep) {
191077
191136
  let fraction = sweep.radiansToSignedPeriodicFraction(radians);
@@ -191081,11 +191140,11 @@ class CurveExtendOptions {
191081
191140
  const mode1 = CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extendParam, 1);
191082
191141
  if (mode0 !== CurveExtendMode.None) {
191083
191142
  if (mode1 !== CurveExtendMode.None) {
191084
- // both extensions possible ... let the sweep resolve to the "closer" end
191143
+ // both extensions possible; let the sweep resolve to the "closer" end
191085
191144
  fraction = sweep.radiansToSignedPeriodicFraction(radians);
191086
191145
  }
191087
191146
  else {
191088
- // only extend to negative .....
191147
+ // only extend to negative
191089
191148
  if (fraction > 1.0)
191090
191149
  fraction -= fractionPeriod;
191091
191150
  }
@@ -191094,7 +191153,7 @@ class CurveExtendOptions {
191094
191153
  if (fraction < 0.0)
191095
191154
  fraction += fractionPeriod;
191096
191155
  }
191097
- else { // both clamped !!!!
191156
+ else { // both clamped
191098
191157
  fraction = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.clamp(fraction, 0, 1);
191099
191158
  }
191100
191159
  }
@@ -192798,11 +192857,15 @@ class CurvePrimitive extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_1__.Geometr
192798
192857
  * Search for a point on the curve that is closest to the spacePoint.
192799
192858
  * * If the space point is exactly on the curve, this is the reverse of fractionToPoint.
192800
192859
  * * Since CurvePrimitive should always have start and end available as candidate points, this method should always
192801
- * succeed
192802
- * @param spacePoint point in space
192803
- * @param extend true to extend the curve (if possible), false for no extend, single CurveExtendOptions (for both
192804
- * directions), or array of distinct CurveExtendOptions for start and end.
192805
- * @returns Returns a CurveLocationDetail structure that holds the details of the close point.
192860
+ * succeed.
192861
+ * @param spacePoint point in space.
192862
+ * @param extend if applicable, compute the closest point to the curve extended according to variant type:
192863
+ * * false: do not extend the curve
192864
+ * * true: extend the curve at both start and end
192865
+ * * CurveExtendOptions: extend the curve in the specified manner at both start and end
192866
+ * * CurveExtendOptions[]: first entry applies to curve start; second, to curve end; any other entries ignored
192867
+ * @param result optional pre-allocated detail to populate and return.
192868
+ * @returns details of the closest point.
192806
192869
  */
192807
192870
  closestPoint(spacePoint, extend, result) {
192808
192871
  const strokeHandler = new _internalContexts_ClosestPointStrokeHandler__WEBPACK_IMPORTED_MODULE_10__.ClosestPointStrokeHandler(spacePoint, extend, result);
@@ -193043,7 +193106,6 @@ __webpack_require__.r(__webpack_exports__);
193043
193106
  /* harmony export */ });
193044
193107
  /* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
193045
193108
 
193046
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
193047
193109
  /** base class for detailed traversal of curve artifacts.
193048
193110
  * * This recurses to children in the quickest way (no records of path)
193049
193111
  * * Use the RecursiveCurveProcessorWithStack to record the path along the visit.
@@ -193382,7 +193444,6 @@ __webpack_require__.r(__webpack_exports__);
193382
193444
 
193383
193445
 
193384
193446
 
193385
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
193386
193447
  /**
193387
193448
  * A LineSegment3d is:
193388
193449
  * * A 3d line segment represented by its start and end coordinates
@@ -195563,14 +195624,14 @@ class JointOptions {
195563
195624
  * * leftOffsetDistance is required
195564
195625
  * * minArcDegrees and maxChamferDegrees are optional.
195565
195626
  */
195566
- constructor(leftOffsetDistance, minArcDegrees = 180, maxChamferDegrees = 90, preserveEllipticalArcs = false, allowSharpestCorners = false) {
195627
+ constructor(leftOffsetDistance, minArcDegrees = 180, maxChamferDegrees = 91, preserveEllipticalArcs = false, allowSharpestCorners = false) {
195567
195628
  /**
195568
195629
  * Smallest arc to construct.
195569
195630
  * * If this control angle is 180 degrees or more, arcs are never created.
195570
195631
  */
195571
195632
  this.minArcDegrees = 180.0;
195572
195633
  /** Largest turn angle at which to construct a sharp corner, or largest turn angle in a multi-segment chamfer. */
195573
- this.maxChamferTurnDegrees = 90;
195634
+ this.maxChamferTurnDegrees = 91.0;
195574
195635
  /**
195575
195636
  * Whether to remove the internal turn angle upper bound for sharp corner construction.
195576
195637
  * * By default, a sharp corner is not created at a joint when the turn angle is too large, so as to avoid offsets whose
@@ -195616,7 +195677,7 @@ class JointOptions {
195616
195677
  }
195617
195678
  /** Return true if the options indicate this amount of turn should be handled with an arc. */
195618
195679
  needArc(theta) {
195619
- return Math.abs(theta.degrees) >= this.minArcDegrees;
195680
+ return Math.abs(theta.degrees) >= this.minArcDegrees - _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallAngleDegrees;
195620
195681
  }
195621
195682
  /** Return the number of corners needed to chamfer the given turn angle. */
195622
195683
  numChamferPoints(theta) {
@@ -195627,7 +195688,7 @@ class JointOptions {
195627
195688
  maxStepDegreesClamp = this.maxChamferTurnDegrees;
195628
195689
  }
195629
195690
  const stepDegrees = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.clamp(this.maxChamferTurnDegrees, minStepDegreesClamp, maxStepDegreesClamp);
195630
- if (degrees <= stepDegrees)
195691
+ if (degrees <= stepDegrees + _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallAngleDegrees)
195631
195692
  return 1;
195632
195693
  return Math.ceil(degrees / stepDegrees);
195633
195694
  }
@@ -195848,6 +195909,8 @@ __webpack_require__.r(__webpack_exports__);
195848
195909
  /* harmony import */ var _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../geometry3d/Point3dVector3d */ "../../core/geometry/lib/esm/geometry3d/Point3dVector3d.js");
195849
195910
  /* harmony import */ var _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CurveChainWithDistanceIndex */ "../../core/geometry/lib/esm/curve/CurveChainWithDistanceIndex.js");
195850
195911
  /* harmony import */ var _CurveCollection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CurveCollection */ "../../core/geometry/lib/esm/curve/CurveCollection.js");
195912
+ /* harmony import */ var _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CurveExtendMode */ "../../core/geometry/lib/esm/curve/CurveExtendMode.js");
195913
+ /* harmony import */ var _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
195851
195914
  /* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
195852
195915
  /* harmony import */ var _LineString3d__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LineString3d */ "../../core/geometry/lib/esm/curve/LineString3d.js");
195853
195916
  /*---------------------------------------------------------------------------------------------
@@ -195859,6 +195922,8 @@ __webpack_require__.r(__webpack_exports__);
195859
195922
 
195860
195923
 
195861
195924
 
195925
+
195926
+
195862
195927
  /**
195863
195928
  * * A `Path` object is a collection of curves that join head-to-tail to form a path.
195864
195929
  * * A `Path` object does not bound a planar region. Use `Loop` to indicate region bounding.
@@ -195912,6 +195977,31 @@ class Path extends _CurveCollection__WEBPACK_IMPORTED_MODULE_0__.CurveChain {
195912
195977
  curve.emitStrokes(strokes, options);
195913
195978
  return Path.create(strokes);
195914
195979
  }
195980
+ /**
195981
+ * Return the closest point on the contained curves.
195982
+ * @param spacePoint point in space.
195983
+ * @param extend compute the closest point to the path extended according to variant type:
195984
+ * * false: do not extend the path
195985
+ * * true: extend the path at both start and end
195986
+ * * CurveExtendOptions: extend the path in the specified manner at both start and end
195987
+ * * CurveExtendOptions[]: first entry applies to path start; second, to path end; any other entries ignored
195988
+ * @param result optional pre-allocated detail to populate and return.
195989
+ * @returns details of the closest point.
195990
+ */
195991
+ closestPoint(spacePoint, extend = false, result) {
195992
+ let detailA;
195993
+ const detailB = new _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail();
195994
+ if (this.children !== undefined) {
195995
+ for (let i = 0; i < this.children.length; i++) {
195996
+ const child = this.children[i]; // head only extends at start; tail, only at end. NOTE: child may be both head and tail!
195997
+ const mode0 = (i === 0) ? _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extend, 0) : _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendMode.None;
195998
+ const mode1 = (i === this.children.length - 1) ? _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extend, 1) : _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendMode.None;
195999
+ if (child.closestPoint(spacePoint, [mode0, mode1], detailB))
196000
+ detailA = result = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail.chooseSmallerA(detailA, detailB).clone(result);
196001
+ }
196002
+ }
196003
+ return detailA;
196004
+ }
195915
196005
  /** Return the boundary type (1) of a corresponding MicroStation CurveVector */
195916
196006
  dgnBoundaryType() {
195917
196007
  return 1;
@@ -195955,7 +196045,6 @@ __webpack_require__.r(__webpack_exports__);
195955
196045
 
195956
196046
 
195957
196047
 
195958
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
195959
196048
  /**
195960
196049
  * A PointString3d is an array of points.
195961
196050
  * * PointString3D is first class (displayable, possibly persistent) geometry derived from the GeometryQuery base class.
@@ -199505,7 +199594,6 @@ __webpack_require__.r(__webpack_exports__);
199505
199594
  */
199506
199595
 
199507
199596
 
199508
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
199509
199597
  /**
199510
199598
  * Tolerance blob for various stroking methods.
199511
199599
  *
@@ -200886,7 +200974,6 @@ class CurveCurveCloseApproachXY extends _geometry3d_GeometryHandler__WEBPACK_IMP
200886
200974
  getPointCurveClosestApproachXYNewton(curveP, pointQ) {
200887
200975
  if (!(curveP instanceof _Arc3d__WEBPACK_IMPORTED_MODULE_4__.Arc3d) && !(curveP instanceof _LineSegment3d__WEBPACK_IMPORTED_MODULE_5__.LineSegment3d)) {
200888
200976
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "getPointCurveClosestApproachXYNewton only supports Arc3d and LineSegment");
200889
- return undefined;
200890
200977
  }
200891
200978
  const seeds = [0.2, 0.4, 0.6, 0.8]; // HEURISTIC: arcs have up to 4 perpendiculars; lines have only 1
200892
200979
  const newtonEvaluator = new _numerics_Newton__WEBPACK_IMPORTED_MODULE_6__.CurvePointCloseApproachXYRtoRD(curveP, pointQ);
@@ -201161,7 +201248,6 @@ class CurveCurveCloseApproachXY extends _geometry3d_GeometryHandler__WEBPACK_IMP
201161
201248
  return;
201162
201249
  if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_12__.CurveChainWithDistanceIndex) {
201163
201250
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
201164
- return;
201165
201251
  }
201166
201252
  const index0 = this._results.length;
201167
201253
  const geomB = this._geometryB; // save
@@ -202140,7 +202226,6 @@ class CurveCurveIntersectXY extends _geometry3d_GeometryHandler__WEBPACK_IMPORTE
202140
202226
  return;
202141
202227
  if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_15__.CurveChainWithDistanceIndex) {
202142
202228
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
202143
- return;
202144
202229
  }
202145
202230
  const index0 = this._results.length;
202146
202231
  const geomB = this._geometryB; // save
@@ -202987,7 +203072,6 @@ class CurveCurveIntersectXYZ extends _geometry3d_GeometryHandler__WEBPACK_IMPORT
202987
203072
  return;
202988
203073
  if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_11__.CurveChainWithDistanceIndex) {
202989
203074
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
202990
- return;
202991
203075
  }
202992
203076
  const index0 = this._results.length;
202993
203077
  const geomB = this._geometryB; // save
@@ -205082,7 +205166,7 @@ var JointMode;
205082
205166
  * @internal
205083
205167
  */
205084
205168
  class Joint {
205085
- // capture references to all data . . .
205169
+ // capture references to all data members
205086
205170
  constructor(curve0, curve1, swingPoint) {
205087
205171
  this.curve0 = curve0;
205088
205172
  this.curve1 = curve1;
@@ -205219,9 +205303,10 @@ class Joint {
205219
205303
  }
205220
205304
  /**
205221
205305
  * Visit joints on a chain.
205222
- * * terminate on `false` return from `callback`
205223
- * @param start first (and, for cyclic chain, final) joint
205306
+ * * Terminates if `callback` returns `false`.
205307
+ * @param start first (and, for cyclic chain, final) joint.
205224
205308
  * @param callback function to call with each Joint as a single parameter.
205309
+ * @param maxTest
205225
205310
  */
205226
205311
  static visitJointsOnChain(start, callback, maxTest = 100) {
205227
205312
  let joint = start;
@@ -205602,7 +205687,7 @@ class CurveChainWireOffsetContext {
205602
205687
  for (const c of curves.children) {
205603
205688
  const c1 = CurveChainWireOffsetContext.createSingleOffsetPrimitiveXY(c, offsetOptions);
205604
205689
  if (c1 === undefined) {
205605
- // bad .. maybe arc to inside?
205690
+ // bad; maybe arc to inside?
205606
205691
  }
205607
205692
  else if (c1 instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_12__.CurvePrimitive) {
205608
205693
  simpleOffsets.push(c1);
@@ -211665,7 +211750,6 @@ __webpack_require__.r(__webpack_exports__);
211665
211750
 
211666
211751
 
211667
211752
 
211668
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
211669
211753
  /**
211670
211754
  * Helper class to accumulate points and vectors until there is enough data to define a coordinate system.
211671
211755
  *
@@ -219164,7 +219248,6 @@ __webpack_require__.r(__webpack_exports__);
219164
219248
  /** @packageDocumentation
219165
219249
  * @module CartesianGeometry
219166
219250
  */
219167
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
219168
219251
 
219169
219252
 
219170
219253
  /**
@@ -221738,7 +221821,6 @@ __webpack_require__.r(__webpack_exports__);
221738
221821
  /** @packageDocumentation
221739
221822
  * @module CartesianGeometry
221740
221823
  */
221741
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
221742
221824
 
221743
221825
 
221744
221826
 
@@ -224277,8 +224359,7 @@ class PolygonOps {
224277
224359
  const areaOfNormalParallelogram = Math.abs(outwardUnitNormalOfPrevEdge.crossProductXY(outwardUnitNormalOfEdge));
224278
224360
  const coord = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.conditionalDivideCoordinate(areaOfNormalParallelogram, projToPrevEdge.x * projToEdge.x, largestResult);
224279
224361
  if (undefined === coord) {
224280
- (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "unexpectedly small projection distance to an edge");
224281
- return undefined; // shouldn't happen due to chopping in computeEdgeDataXY: area/(dist*dist) <= 1/tol^2 = largestResult
224362
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "unexpectedly small projection distance to an edge"); // shouldn't happen due to chopping in computeEdgeDataXY: area/(dist*dist) <= 1/tol^2 = largestResult
224282
224363
  }
224283
224364
  coords[i] = coord;
224284
224365
  coordSum += coord;
@@ -224289,7 +224370,6 @@ class PolygonOps {
224289
224370
  const scale = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.conditionalDivideCoordinate(1.0, coordSum);
224290
224371
  if (undefined === scale) {
224291
224372
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "unexpected zero barycentric coordinate sum");
224292
- return undefined;
224293
224373
  }
224294
224374
  for (let i = 0; i < n; ++i)
224295
224375
  coords[i] *= scale; // normalized
@@ -231846,7 +231926,6 @@ __webpack_require__.r(__webpack_exports__);
231846
231926
 
231847
231927
 
231848
231928
 
231849
- /* eslint-disable @typescript-eslint/naming-convention */
231850
231929
  /**
231851
231930
  * * BezierCoffs is an abstract base class for one-dimensional (u to f(u)) Bezier polynomials.
231852
231931
  * * The base class carries a Float64Array with coefficients.
@@ -239103,7 +239182,6 @@ __webpack_require__.r(__webpack_exports__);
239103
239182
 
239104
239183
 
239105
239184
 
239106
- /* eslint-disable @itwin/prefer-get */
239107
239185
  /**
239108
239186
  * An `IndexedPolyfaceVisitor` is an iterator-like object that "visits" facets of a mesh.
239109
239187
  * * The visitor extends `PolyfaceData`, so it can at any time hold all the data of a single facet.
@@ -239401,7 +239479,6 @@ __webpack_require__.r(__webpack_exports__);
239401
239479
  /** @packageDocumentation
239402
239480
  * @module Polyface
239403
239481
  */
239404
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
239405
239482
  // cspell:word internaldocs
239406
239483
 
239407
239484
 
@@ -241167,7 +241244,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
241167
241244
  const children = data.children;
241168
241245
  if (children)
241169
241246
  for (const child of children)
241170
- // eslint-disable-next-line deprecation/deprecation
241247
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
241171
241248
  this.applyStrokeCountsToCurvePrimitives(child);
241172
241249
  }
241173
241250
  }
@@ -242078,7 +242155,6 @@ __webpack_require__.r(__webpack_exports__);
242078
242155
  /** @packageDocumentation
242079
242156
  * @module Polyface
242080
242157
  */
242081
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
242082
242158
 
242083
242159
 
242084
242160
 
@@ -243422,7 +243498,6 @@ __webpack_require__.r(__webpack_exports__);
243422
243498
  /** @packageDocumentation
243423
243499
  * @module Polyface
243424
243500
  */
243425
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
243426
243501
  // cspell:word internaldocs
243427
243502
 
243428
243503
 
@@ -256010,7 +256085,6 @@ __webpack_require__.r(__webpack_exports__);
256010
256085
  /** @packageDocumentation
256011
256086
  * @module Serialization
256012
256087
  */
256013
- /* eslint-disable quote-props */
256014
256088
  /**
256015
256089
  * Utilities to compare json objects by searching through their properties.
256016
256090
  * @public
@@ -269415,7 +269489,7 @@ class ITwinLocalization {
269415
269489
  locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));
269416
269490
  }
269417
269491
  }
269418
- catch (e) {
269492
+ catch {
269419
269493
  locales = [];
269420
269494
  }
269421
269495
  // if we removed every locale from the array, it wasn't loaded.
@@ -287590,7 +287664,6 @@ class Formatter {
287590
287664
  const compositeStrings = [];
287591
287665
  // Caller will deal with appending +||-||() value sign as specified by formatting options so just format positive value
287592
287666
  let posMagnitude = Math.abs(magnitude);
287593
- // eslint-disable-next-line @typescript-eslint/prefer-for-of
287594
287667
  for (let i = 0; i < spec.unitConversions.length; i++) {
287595
287668
  const currentLabel = spec.unitConversions[i].label;
287596
287669
  const unitConversion = spec.unitConversions[i].conversion;
@@ -287934,7 +288007,6 @@ class Formatter {
287934
288007
  }
287935
288008
  }
287936
288009
  }
287937
- // eslint-disable-next-line @typescript-eslint/naming-convention
287938
288010
  Formatter.FPV_MINTHRESHOLD = 1.0e-14;
287939
288011
 
287940
288012
 
@@ -288324,7 +288396,6 @@ class Parser {
288324
288396
  uomSeparatorToIgnore = format.uomSeparator.charCodeAt(0);
288325
288397
  skipCodes.push(uomSeparatorToIgnore);
288326
288398
  }
288327
- // eslint-disable-next-line @typescript-eslint/prefer-for-of
288328
288399
  for (let i = 0; i < str.length; i++) {
288329
288400
  const charCode = str.charCodeAt(i);
288330
288401
  if (Parser.isDigitOrDecimalSeparator(charCode, format)) {
@@ -290019,7 +290090,8 @@ __webpack_require__.r(__webpack_exports__);
290019
290090
  "use strict";
290020
290091
 
290021
290092
  Object.defineProperty(exports, "__esModule", ({ value: true }));
290022
- exports.Settings = exports.getRpcInterfaces = void 0;
290093
+ exports.Settings = void 0;
290094
+ exports.getRpcInterfaces = getRpcInterfaces;
290023
290095
  /*---------------------------------------------------------------------------------------------
290024
290096
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
290025
290097
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -290033,7 +290105,6 @@ function getRpcInterfaces() {
290033
290105
  rpcInterfaces.push(ecschema_rpcinterface_common_1.ECSchemaRpcInterface);
290034
290106
  return rpcInterfaces;
290035
290107
  }
290036
- exports.getRpcInterfaces = getRpcInterfaces;
290037
290108
  class Settings {
290038
290109
  // eslint-disable-next-line @typescript-eslint/naming-convention
290039
290110
  get Backend() { return this._backend; }
@@ -290044,9 +290115,9 @@ class Settings {
290044
290115
  this.iModel = {};
290045
290116
  const isFrontend = (typeof (process) === "undefined");
290046
290117
  if (!isFrontend && undefined === env.TF_BUILD) {
290047
- const path = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"); // eslint-disable-line @typescript-eslint/no-var-requires
290048
- const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@10.0.0/node_modules/dotenv/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
290049
- const dotenvExpand = __webpack_require__(/*! dotenv-expand */ "../../common/temp/node_modules/.pnpm/dotenv-expand@5.1.0/node_modules/dotenv-expand/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
290118
+ const path = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"); // eslint-disable-line @typescript-eslint/no-require-imports
290119
+ const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"); // eslint-disable-line @typescript-eslint/no-require-imports
290120
+ const dotenvExpand = __webpack_require__(/*! dotenv-expand */ "../../common/temp/node_modules/.pnpm/dotenv-expand@5.1.0/node_modules/dotenv-expand/lib/main.js"); // eslint-disable-line @typescript-eslint/no-require-imports
290050
290121
  // First check in process.cwd() for the config
290051
290122
  let result = dotenv.config();
290052
290123
  if (result.error) {
@@ -290136,7 +290207,8 @@ exports.Settings = Settings;
290136
290207
  "use strict";
290137
290208
 
290138
290209
  Object.defineProperty(exports, "__esModule", ({ value: true }));
290139
- exports.getProcessEnvFromBackend = exports.exposeBackendCallbacks = void 0;
290210
+ exports.exposeBackendCallbacks = exposeBackendCallbacks;
290211
+ exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
290140
290212
  /*---------------------------------------------------------------------------------------------
290141
290213
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
290142
290214
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -290148,11 +290220,9 @@ function exposeBackendCallbacks() {
290148
290220
  return JSON.stringify(process.env);
290149
290221
  });
290150
290222
  }
290151
- exports.exposeBackendCallbacks = exposeBackendCallbacks;
290152
290223
  async function getProcessEnvFromBackend() {
290153
290224
  return JSON.parse(await (0, CallbackUtils_1.executeBackendCallback)(getEnvCallbackName));
290154
290225
  }
290155
- exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
290156
290226
 
290157
290227
 
290158
290228
  /***/ }),
@@ -290332,7 +290402,10 @@ TestContext._instance = undefined;
290332
290402
  "use strict";
290333
290403
 
290334
290404
  Object.defineProperty(exports, "__esModule", ({ value: true }));
290335
- exports.executeBackendCallback = exports.registerBackendCallback = exports.executeRegisteredCallback = exports.getCallbacksRegisteredOnBackend = void 0;
290405
+ exports.getCallbacksRegisteredOnBackend = getCallbacksRegisteredOnBackend;
290406
+ exports.executeRegisteredCallback = executeRegisteredCallback;
290407
+ exports.registerBackendCallback = registerBackendCallback;
290408
+ exports.executeBackendCallback = executeBackendCallback;
290336
290409
  const isFrontend = (typeof (window) !== "undefined");
290337
290410
  /** @internal */
290338
290411
  function getCallbacksRegisteredOnBackend() {
@@ -290341,7 +290414,6 @@ function getCallbacksRegisteredOnBackend() {
290341
290414
  __webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
290342
290415
  return __webpack_require__.g._CertaRegisteredCallbacks;
290343
290416
  }
290344
- exports.getCallbacksRegisteredOnBackend = getCallbacksRegisteredOnBackend;
290345
290417
  /** @internal */
290346
290418
  function executeRegisteredCallback(name, args) {
290347
290419
  const registeredCallbacks = getCallbacksRegisteredOnBackend();
@@ -290349,20 +290421,17 @@ function executeRegisteredCallback(name, args) {
290349
290421
  throw new Error(`Unknown certa backend callback "${name}"`);
290350
290422
  return registeredCallbacks[name](...args);
290351
290423
  }
290352
- exports.executeRegisteredCallback = executeRegisteredCallback;
290353
290424
  function registerBackendCallback(name, cb) {
290354
290425
  if (isFrontend)
290355
290426
  throw new Error("This should only be called on the backend!");
290356
290427
  __webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
290357
290428
  __webpack_require__.g._CertaRegisteredCallbacks[name] = cb;
290358
290429
  }
290359
- exports.registerBackendCallback = registerBackendCallback;
290360
290430
  async function executeBackendCallback(name, ...args) {
290361
290431
  if (!isFrontend)
290362
290432
  return executeRegisteredCallback(name, args);
290363
290433
  return window._CertaSendToBackend(name, args);
290364
290434
  }
290365
- exports.executeBackendCallback = executeBackendCallback;
290366
290435
 
290367
290436
 
290368
290437
  /***/ }),
@@ -290614,7 +290683,7 @@ __webpack_require__.r(__webpack_exports__);
290614
290683
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
290615
290684
  * See LICENSE.md in the project root for license terms and full copyright notice.
290616
290685
  *--------------------------------------------------------------------------------------------*/
290617
- /* eslint-disable deprecation/deprecation */
290686
+ /* eslint-disable @typescript-eslint/no-deprecated */
290618
290687
  /** @packageDocumentation
290619
290688
  * @module UiItemsProvider
290620
290689
  */
@@ -290945,7 +291014,7 @@ __webpack_require__.r(__webpack_exports__);
290945
291014
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
290946
291015
  * See LICENSE.md in the project root for license terms and full copyright notice.
290947
291016
  *--------------------------------------------------------------------------------------------*/
290948
- /* eslint-disable deprecation/deprecation */
291017
+ /* eslint-disable @typescript-eslint/no-deprecated */
290949
291018
  /** @packageDocumentation
290950
291019
  * @module UiItemsProvider
290951
291020
  */
@@ -291191,14 +291260,14 @@ var BackstageItemType;
291191
291260
  * @public
291192
291261
  */
291193
291262
  const isActionItem = (item) => {
291194
- return item.execute !== undefined; // eslint-disable-line deprecation/deprecation
291263
+ return item.execute !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
291195
291264
  };
291196
291265
  /** BackstageStageLauncher type guard.
291197
291266
  * @deprecated in 3.6. Use [isBackstageStageLauncher]($appui-react) instead.
291198
291267
  * @public
291199
291268
  */
291200
291269
  const isStageLauncher = (item) => {
291201
- return item.stageId !== undefined; // eslint-disable-line deprecation/deprecation
291270
+ return item.stageId !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
291202
291271
  };
291203
291272
  /** Utilities for creating and maintaining backstage items
291204
291273
  * @deprecated in 3.6. Use [BackstageItemUtilities]($appui-react) instead.
@@ -291454,7 +291523,7 @@ var SpecialKey;
291454
291523
  * @public @deprecated in 4.3. Please use a custom implementation moving forward.
291455
291524
  */
291456
291525
  function isArrowKey(key) {
291457
- // eslint-disable-next-line deprecation/deprecation
291526
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
291458
291527
  return (key === SpecialKey.ArrowLeft || key === SpecialKey.ArrowRight || key === SpecialKey.ArrowUp || key === SpecialKey.ArrowDown);
291459
291528
  }
291460
291529
 
@@ -291499,7 +291568,7 @@ __webpack_require__.r(__webpack_exports__);
291499
291568
  /** @packageDocumentation
291500
291569
  * @module ContentView
291501
291570
  */
291502
- /* eslint-disable deprecation/deprecation */
291571
+ /* eslint-disable @typescript-eslint/no-deprecated */
291503
291572
  /**
291504
291573
  * Class that define Standard Content Layouts that can be used to specify how the content is arranged in a frontstage.
291505
291574
  * @public
@@ -293043,21 +293112,21 @@ var StatusBarLabelSide;
293043
293112
  * @public
293044
293113
  */
293045
293114
  const isAbstractStatusBarActionItem = (item) => {
293046
- return item.execute !== undefined; // eslint-disable-line deprecation/deprecation
293115
+ return item.execute !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
293047
293116
  };
293048
293117
  /** AbstractStatusBarLabelItem type guard.
293049
293118
  * @deprecated in 3.6. Use [isStatusBarLabelItem]($appui-react) instead.
293050
293119
  * @public
293051
293120
  */
293052
293121
  const isAbstractStatusBarLabelItem = (item) => {
293053
- return item.label !== undefined && item.execute === undefined; // eslint-disable-line deprecation/deprecation
293122
+ return item.label !== undefined && item.execute === undefined; // eslint-disable-line @typescript-eslint/no-deprecated
293054
293123
  };
293055
293124
  /** AbstractStatusBarCustomItem type guard.
293056
293125
  * @deprecated in 3.6. Use [isStatusBarCustomItem]($appui-react) instead.
293057
293126
  * @public
293058
293127
  */
293059
293128
  const isAbstractStatusBarCustomItem = (item) => {
293060
- return !!item.isCustom; // eslint-disable-line deprecation/deprecation
293129
+ return !!item.isCustom; // eslint-disable-line @typescript-eslint/no-deprecated
293061
293130
  };
293062
293131
  /** Helper class to create Abstract StatusBar Item definitions.
293063
293132
  * @deprecated in 3.6. Use [StatusBarItemUtilities]($appui-react) instead.
@@ -293577,7 +293646,7 @@ __webpack_require__.r(__webpack_exports__);
293577
293646
  /** @packageDocumentation
293578
293647
  * @module Utilities
293579
293648
  */
293580
- /* eslint-disable deprecation/deprecation */
293649
+ /* eslint-disable @typescript-eslint/no-deprecated */
293581
293650
  /** Creates an IconSpec with an SVG source and gets the SVG source from an IconSpec.
293582
293651
  * @public @deprecated in 4.3. AppUI libraries >= 4.7.x support loading SVGs sources without prefixes, eliminating the need for these utilities.
293583
293652
  */
@@ -293731,7 +293800,6 @@ __webpack_require__.r(__webpack_exports__);
293731
293800
  * @public
293732
293801
  * @deprecated in 4.2.x Use [[UiSyncEvent]] from @itwin/appui-react.
293733
293802
  */
293734
- // eslint-disable-next-line deprecation/deprecation
293735
293803
  class UiSyncEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiEvent {
293736
293804
  }
293737
293805
  /** This class is used to send eventIds to interested UI components so the component can determine if it needs
@@ -293743,7 +293811,7 @@ class UiEventDispatcher {
293743
293811
  constructor() {
293744
293812
  this._eventIds = new Set();
293745
293813
  this._eventIdAdded = false;
293746
- // eslint-disable-next-line deprecation/deprecation
293814
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
293747
293815
  this._uiSyncEvent = new UiSyncEvent();
293748
293816
  this._timeoutPeriod = 100;
293749
293817
  this._secondaryTimeoutPeriod = this._timeoutPeriod / 2;
@@ -293772,7 +293840,7 @@ class UiEventDispatcher {
293772
293840
  return this._eventIds;
293773
293841
  }
293774
293842
  /** Return UiSyncEvent so callers can register an event callback. */
293775
- // eslint-disable-next-line deprecation/deprecation
293843
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
293776
293844
  get onSyncUiEvent() {
293777
293845
  return this._uiSyncEvent;
293778
293846
  }
@@ -304282,7 +304350,7 @@ var loadLanguages = instance.loadLanguages;
304282
304350
  /***/ ((module) => {
304283
304351
 
304284
304352
  "use strict";
304285
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.31","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 ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --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 -f visualstudio \\"./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:^4.10.0-dev.31","@itwin/core-bentley":"workspace:^4.10.0-dev.31","@itwin/core-common":"workspace:^4.10.0-dev.31","@itwin/core-geometry":"workspace:^4.10.0-dev.31","@itwin/core-orbitgt":"workspace:^4.10.0-dev.31","@itwin/core-quantity":"workspace:^4.10.0-dev.31"},"//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":"^4.0.2","@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":"^8.56.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","vitest":"^2.1.0","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.2.5","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
304353
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.33","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 ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --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:^4.10.0-dev.33","@itwin/core-bentley":"workspace:^4.10.0-dev.33","@itwin/core-common":"workspace:^4.10.0-dev.33","@itwin/core-geometry":"workspace:^4.10.0-dev.33","@itwin/core-orbitgt":"workspace:^4.10.0-dev.33","@itwin/core-quantity":"workspace:^4.10.0-dev.33"},"//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.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.2.5","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
304286
304354
 
304287
304355
  /***/ })
304288
304356