@itwin/rpcinterface-full-stack-tests 3.3.0-dev.2 → 3.3.0-dev.22

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.
@@ -45488,6 +45488,145 @@ class StopWatch {
45488
45488
  }
45489
45489
 
45490
45490
 
45491
+ /***/ }),
45492
+
45493
+ /***/ "../../core/bentley/lib/esm/Tracing.js":
45494
+ /*!*****************************************************!*\
45495
+ !*** D:/vsts_a/9/s/core/bentley/lib/esm/Tracing.js ***!
45496
+ \*****************************************************/
45497
+ /*! exports provided: SpanKind, Tracing */
45498
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
45499
+
45500
+ "use strict";
45501
+ __webpack_require__.r(__webpack_exports__);
45502
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpanKind", function() { return SpanKind; });
45503
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tracing", function() { return Tracing; });
45504
+ /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Logger */ "../../core/bentley/lib/esm/Logger.js");
45505
+
45506
+ // re-export so that consumers can construct full SpanOptions object without external dependencies
45507
+ /**
45508
+ * Mirrors the SpanKind enum from [@opentelemetry/api](https://open-telemetry.github.io/opentelemetry-js-api/enums/spankind)
45509
+ * @alpha
45510
+ */
45511
+ var SpanKind;
45512
+ (function (SpanKind) {
45513
+ SpanKind[SpanKind["INTERNAL"] = 0] = "INTERNAL";
45514
+ SpanKind[SpanKind["SERVER"] = 1] = "SERVER";
45515
+ SpanKind[SpanKind["CLIENT"] = 2] = "CLIENT";
45516
+ SpanKind[SpanKind["PRODUCER"] = 3] = "PRODUCER";
45517
+ SpanKind[SpanKind["CONSUMER"] = 4] = "CONSUMER";
45518
+ })(SpanKind || (SpanKind = {}));
45519
+ function isValidPrimitive(val) {
45520
+ return typeof val === "string" || typeof val === "number" || typeof val === "boolean";
45521
+ }
45522
+ // Only _homogenous_ arrays of strings, numbers, or booleans are supported as OpenTelemetry Attribute values.
45523
+ // Per the spec (https://opentelemetry.io/docs/reference/specification/common/common/#attribute), empty arrays and null values are supported too.
45524
+ function isValidPrimitiveArray(val) {
45525
+ if (!Array.isArray(val))
45526
+ return false;
45527
+ let itemType;
45528
+ for (const x of val) {
45529
+ if (x === undefined || x === null)
45530
+ continue;
45531
+ if (!itemType) {
45532
+ itemType = typeof x;
45533
+ if (!isValidPrimitive(x))
45534
+ return false;
45535
+ }
45536
+ if (typeof x !== itemType)
45537
+ return false;
45538
+ }
45539
+ return true;
45540
+ }
45541
+ function isPlainObject(obj) {
45542
+ return typeof obj === "object" && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
45543
+ }
45544
+ function* getFlatEntries(obj, path = "") {
45545
+ if (isValidPrimitiveArray(obj)) {
45546
+ yield [path, obj];
45547
+ return;
45548
+ }
45549
+ // Prefer JSON serialization over flattening for any non-POJO types.
45550
+ // There's just too many ways trying to flatten those can go wrong (Dates, Buffers, TypedArrays, etc.)
45551
+ if (!isPlainObject(obj) && !Array.isArray(obj)) {
45552
+ yield [path, isValidPrimitive(obj) ? obj : JSON.stringify(obj)];
45553
+ return;
45554
+ }
45555
+ // Always serialize empty objects/arrays as empty array values
45556
+ const entries = Object.entries(obj);
45557
+ if (entries.length === 0)
45558
+ yield [path, []];
45559
+ for (const [key, val] of entries)
45560
+ yield* getFlatEntries(val, (path === "") ? key : `${path}.${key}`);
45561
+ }
45562
+ function flattenObject(obj) {
45563
+ return Object.fromEntries(getFlatEntries(obj));
45564
+ }
45565
+ /**
45566
+ * Enables OpenTelemetry tracing in addition to traditional logging.
45567
+ * @alpha
45568
+ */
45569
+ class Tracing {
45570
+ /**
45571
+ * If OpenTelemetry tracing is enabled, creates a new span and runs the provided function in it.
45572
+ * If OpenTelemetry tracing is _not_ enabled, runs the provided function.
45573
+ * @param name name of the new span
45574
+ * @param fn function to run inside the new span
45575
+ * @param options span options
45576
+ * @param parentContext optional context used to retrieve parent span id
45577
+ */
45578
+ static async withSpan(name, fn, options, parentContext) {
45579
+ if (Tracing._tracer === undefined || Tracing._openTelemetry === undefined)
45580
+ return fn();
45581
+ // this case is for context propagation - parentContext is typically constructed from HTTP headers
45582
+ const parent = parentContext === undefined
45583
+ ? Tracing._openTelemetry.context.active()
45584
+ : Tracing._openTelemetry.trace.setSpanContext(Tracing._openTelemetry.context.active(), parentContext);
45585
+ return Tracing._openTelemetry.context.with(Tracing._openTelemetry.trace.setSpan(parent, Tracing._tracer.startSpan(name, options, Tracing._openTelemetry.context.active())), async () => {
45586
+ var _a, _b, _c, _d;
45587
+ try {
45588
+ return await fn();
45589
+ }
45590
+ catch (err) {
45591
+ if (err instanceof Error) // ignore non-Error throws, such as RpcControlResponse
45592
+ (_b = (_a = Tracing._openTelemetry) === null || _a === void 0 ? void 0 : _a.trace.getSpan(Tracing._openTelemetry.context.active())) === null || _b === void 0 ? void 0 : _b.setAttribute("error", true);
45593
+ throw err;
45594
+ }
45595
+ finally {
45596
+ (_d = (_c = Tracing._openTelemetry) === null || _c === void 0 ? void 0 : _c.trace.getSpan(Tracing._openTelemetry.context.active())) === null || _d === void 0 ? void 0 : _d.end();
45597
+ }
45598
+ });
45599
+ }
45600
+ /**
45601
+ * Enable logging to OpenTelemetry. [[Tracing.withSpan]] will be enabled, all log entries will be attached to active span as span events.
45602
+ * [[IModelHost.startup]] will call this automatically if it succeeds in requiring `@opentelemetry/api`.
45603
+ * @note Node.js OpenTelemetry SDK should be initialized by the user.
45604
+ */
45605
+ static enableOpenTelemetry(tracer, api) {
45606
+ Tracing._tracer = tracer;
45607
+ Tracing._openTelemetry = api;
45608
+ _Logger__WEBPACK_IMPORTED_MODULE_0__["Logger"].logTrace = Tracing.withOpenTelemetry(_Logger__WEBPACK_IMPORTED_MODULE_0__["Logger"].logTrace);
45609
+ _Logger__WEBPACK_IMPORTED_MODULE_0__["Logger"].logInfo = Tracing.withOpenTelemetry(_Logger__WEBPACK_IMPORTED_MODULE_0__["Logger"].logInfo);
45610
+ _Logger__WEBPACK_IMPORTED_MODULE_0__["Logger"].logWarning = Tracing.withOpenTelemetry(_Logger__WEBPACK_IMPORTED_MODULE_0__["Logger"].logWarning);
45611
+ _Logger__WEBPACK_IMPORTED_MODULE_0__["Logger"].logError = Tracing.withOpenTelemetry(_Logger__WEBPACK_IMPORTED_MODULE_0__["Logger"].logError);
45612
+ }
45613
+ static withOpenTelemetry(base, isError = false) {
45614
+ return (category, message, metaData) => {
45615
+ var _a, _b;
45616
+ (_b = (_a = Tracing._openTelemetry) === null || _a === void 0 ? void 0 : _a.trace.getSpan(Tracing._openTelemetry.context.active())) === null || _b === void 0 ? void 0 : _b.addEvent(message, { ...flattenObject(_Logger__WEBPACK_IMPORTED_MODULE_0__["Logger"].getMetaData(metaData)), error: isError });
45617
+ base(category, message, metaData);
45618
+ };
45619
+ }
45620
+ /** Set attributes on currently active openTelemetry span. Doesn't do anything if openTelemetry logging is not initialized.
45621
+ * @param attributes The attributes to set
45622
+ */
45623
+ static setAttributes(attributes) {
45624
+ var _a, _b;
45625
+ (_b = (_a = Tracing._openTelemetry) === null || _a === void 0 ? void 0 : _a.trace.getSpan(Tracing._openTelemetry.context.active())) === null || _b === void 0 ? void 0 : _b.setAttributes(attributes);
45626
+ }
45627
+ }
45628
+
45629
+
45491
45630
  /***/ }),
45492
45631
 
45493
45632
  /***/ "../../core/bentley/lib/esm/UnexpectedErrors.js":
@@ -45650,7 +45789,7 @@ class YieldManager {
45650
45789
  /*!**********************************************************!*\
45651
45790
  !*** D:/vsts_a/9/s/core/bentley/lib/esm/core-bentley.js ***!
45652
45791
  \**********************************************************/
45653
- /*! exports provided: assert, AsyncMutex, BeEvent, BeUiEvent, BeEventList, BentleyStatus, IModelStatus, BriefcaseStatus, RpcInterfaceStatus, ChangeSetStatus, RepositoryStatus, HttpStatus, IModelHubStatus, AuthStatus, GeoServiceStatus, RealityDataStatus, BentleyError, BentleyLoggerCategory, StatusCategory, SuccessCategory, ErrorCategory, OpenMode, DbOpcode, DbResult, ByteStream, isProperSubclassOf, isSubclassOf, compareWithTolerance, compareNumbers, compareBooleans, compareStrings, comparePossiblyUndefined, compareStringsOrUndefined, compareNumbersOrUndefined, compareBooleansOrUndefined, areEqualPossiblyUndefined, CompressedId64Set, OrderedId64Array, MutableCompressedId64Set, Dictionary, isIDisposable, dispose, disposeArray, using, DisposableList, Id64, TransientIdSequence, Guid, IndexedValue, IndexMap, JsonUtils, LogLevel, Logger, PerfLogger, Entry, LRUCache, LRUMap, LRUDictionary, ObservableSet, AbandonedError, OneAtATimeAction, OrderedId64Iterable, ReadonlyOrderedSet, OrderedSet, partitionArray, PriorityQueue, ProcessDetector, shallowClone, lowerBound, DuplicatePolicy, ReadonlySortedArray, SortedArray, utf8ToStringPolyfill, utf8ToString, base64StringToUint8Array, BeDuration, BeTimePoint, StopWatch, UnexpectedErrors, isInstanceOf, asInstanceOf, YieldManager */
45792
+ /*! exports provided: assert, AsyncMutex, BeEvent, BeUiEvent, BeEventList, BentleyStatus, IModelStatus, BriefcaseStatus, RpcInterfaceStatus, ChangeSetStatus, RepositoryStatus, HttpStatus, IModelHubStatus, AuthStatus, GeoServiceStatus, RealityDataStatus, BentleyError, BentleyLoggerCategory, StatusCategory, SuccessCategory, ErrorCategory, OpenMode, DbOpcode, DbResult, ByteStream, isProperSubclassOf, isSubclassOf, compareWithTolerance, compareNumbers, compareBooleans, compareStrings, comparePossiblyUndefined, compareStringsOrUndefined, compareNumbersOrUndefined, compareBooleansOrUndefined, areEqualPossiblyUndefined, CompressedId64Set, OrderedId64Array, MutableCompressedId64Set, Dictionary, isIDisposable, dispose, disposeArray, using, DisposableList, Id64, TransientIdSequence, Guid, IndexedValue, IndexMap, JsonUtils, LogLevel, Logger, PerfLogger, Entry, LRUCache, LRUMap, LRUDictionary, ObservableSet, AbandonedError, OneAtATimeAction, OrderedId64Iterable, ReadonlyOrderedSet, OrderedSet, partitionArray, PriorityQueue, ProcessDetector, shallowClone, lowerBound, DuplicatePolicy, ReadonlySortedArray, SortedArray, utf8ToStringPolyfill, utf8ToString, base64StringToUint8Array, BeDuration, BeTimePoint, StopWatch, SpanKind, Tracing, UnexpectedErrors, isInstanceOf, asInstanceOf, YieldManager */
45654
45793
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
45655
45794
 
45656
45795
  "use strict";
@@ -45841,16 +45980,21 @@ __webpack_require__.r(__webpack_exports__);
45841
45980
 
45842
45981
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopWatch", function() { return _Time__WEBPACK_IMPORTED_MODULE_29__["StopWatch"]; });
45843
45982
 
45844
- /* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./UnexpectedErrors */ "../../core/bentley/lib/esm/UnexpectedErrors.js");
45845
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnexpectedErrors", function() { return _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_30__["UnexpectedErrors"]; });
45983
+ /* harmony import */ var _Tracing__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./Tracing */ "../../core/bentley/lib/esm/Tracing.js");
45984
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SpanKind", function() { return _Tracing__WEBPACK_IMPORTED_MODULE_30__["SpanKind"]; });
45985
+
45986
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tracing", function() { return _Tracing__WEBPACK_IMPORTED_MODULE_30__["Tracing"]; });
45846
45987
 
45847
- /* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./UtilityTypes */ "../../core/bentley/lib/esm/UtilityTypes.js");
45848
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isInstanceOf", function() { return _UtilityTypes__WEBPACK_IMPORTED_MODULE_31__["isInstanceOf"]; });
45988
+ /* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./UnexpectedErrors */ "../../core/bentley/lib/esm/UnexpectedErrors.js");
45989
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnexpectedErrors", function() { return _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_31__["UnexpectedErrors"]; });
45849
45990
 
45850
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asInstanceOf", function() { return _UtilityTypes__WEBPACK_IMPORTED_MODULE_31__["asInstanceOf"]; });
45991
+ /* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./UtilityTypes */ "../../core/bentley/lib/esm/UtilityTypes.js");
45992
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isInstanceOf", function() { return _UtilityTypes__WEBPACK_IMPORTED_MODULE_32__["isInstanceOf"]; });
45851
45993
 
45852
- /* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./YieldManager */ "../../core/bentley/lib/esm/YieldManager.js");
45853
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "YieldManager", function() { return _YieldManager__WEBPACK_IMPORTED_MODULE_32__["YieldManager"]; });
45994
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asInstanceOf", function() { return _UtilityTypes__WEBPACK_IMPORTED_MODULE_32__["asInstanceOf"]; });
45995
+
45996
+ /* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./YieldManager */ "../../core/bentley/lib/esm/YieldManager.js");
45997
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "YieldManager", function() { return _YieldManager__WEBPACK_IMPORTED_MODULE_33__["YieldManager"]; });
45854
45998
 
45855
45999
  /*---------------------------------------------------------------------------------------------
45856
46000
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
@@ -45887,6 +46031,7 @@ __webpack_require__.r(__webpack_exports__);
45887
46031
 
45888
46032
 
45889
46033
 
46034
+
45890
46035
 
45891
46036
 
45892
46037
  /** @docs-package-description
@@ -70833,9 +70978,11 @@ DevToolsRpcInterface.interfaceVersion = "0.6.0";
70833
70978
  __webpack_require__.r(__webpack_exports__);
70834
70979
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IModelNotFoundResponse", function() { return IModelNotFoundResponse; });
70835
70980
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IModelReadRpcInterface", function() { return IModelReadRpcInterface; });
70836
- /* harmony import */ var _RpcInterface__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../RpcInterface */ "../../core/common/lib/esm/RpcInterface.js");
70837
- /* harmony import */ var _RpcManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../RpcManager */ "../../core/common/lib/esm/RpcManager.js");
70838
- /* harmony import */ var _core_RpcControl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core/RpcControl */ "../../core/common/lib/esm/rpc/core/RpcControl.js");
70981
+ /* harmony import */ var _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/RpcConstants */ "../../core/common/lib/esm/rpc/core/RpcConstants.js");
70982
+ /* harmony import */ var _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./core/RpcOperation */ "../../core/common/lib/esm/rpc/core/RpcOperation.js");
70983
+ /* harmony import */ var _RpcInterface__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../RpcInterface */ "../../core/common/lib/esm/RpcInterface.js");
70984
+ /* harmony import */ var _RpcManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../RpcManager */ "../../core/common/lib/esm/RpcManager.js");
70985
+ /* harmony import */ var _core_RpcControl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./core/RpcControl */ "../../core/common/lib/esm/rpc/core/RpcControl.js");
70839
70986
  /*---------------------------------------------------------------------------------------------
70840
70987
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
70841
70988
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -70843,6 +70990,14 @@ __webpack_require__.r(__webpack_exports__);
70843
70990
  /** @packageDocumentation
70844
70991
  * @module RpcInterface
70845
70992
  */
70993
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
70994
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
70995
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
70996
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
70997
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
70998
+ };
70999
+
71000
+
70846
71001
 
70847
71002
 
70848
71003
 
@@ -70850,10 +71005,11 @@ __webpack_require__.r(__webpack_exports__);
70850
71005
  * (if the service has moved)
70851
71006
  * @public
70852
71007
  */
70853
- class IModelNotFoundResponse extends _core_RpcControl__WEBPACK_IMPORTED_MODULE_2__["RpcNotFoundResponse"] {
71008
+ class IModelNotFoundResponse extends _core_RpcControl__WEBPACK_IMPORTED_MODULE_4__["RpcNotFoundResponse"] {
70854
71009
  constructor() {
70855
71010
  super(...arguments);
70856
71011
  this.isIModelNotFoundResponse = true;
71012
+ this.message = "iModel not found";
70857
71013
  }
70858
71014
  }
70859
71015
  /** The RPC interface for reading from an iModel.
@@ -70861,11 +71017,11 @@ class IModelNotFoundResponse extends _core_RpcControl__WEBPACK_IMPORTED_MODULE_2
70861
71017
  * This interface is not normally used directly. See IModelConnection for higher-level and more convenient API for accessing iModels from a frontend.
70862
71018
  * @internal
70863
71019
  */
70864
- class IModelReadRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__["RpcInterface"] {
71020
+ class IModelReadRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_2__["RpcInterface"] {
70865
71021
  /** Returns the IModelReadRpcInterface instance for the frontend. */
70866
- static getClient() { return _RpcManager__WEBPACK_IMPORTED_MODULE_1__["RpcManager"].getClientForInterface(IModelReadRpcInterface); }
71022
+ static getClient() { return _RpcManager__WEBPACK_IMPORTED_MODULE_3__["RpcManager"].getClientForInterface(IModelReadRpcInterface); }
70867
71023
  /** Returns the IModelReadRpcInterface instance for a custom RPC routing configuration. */
70868
- static getClientForRouting(token) { return _RpcManager__WEBPACK_IMPORTED_MODULE_1__["RpcManager"].getClientForInterface(IModelReadRpcInterface, token); }
71024
+ static getClientForRouting(token) { return _RpcManager__WEBPACK_IMPORTED_MODULE_3__["RpcManager"].getClientForInterface(IModelReadRpcInterface, token); }
70869
71025
  /*===========================================================================================
70870
71026
  NOTE: Any add/remove/change to the methods below requires an update of the interface version.
70871
71027
  NOTE: Please consult the README in this folder for the semantic versioning rules.
@@ -70905,7 +71061,31 @@ class IModelReadRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__[
70905
71061
  /** The immutable name of the interface. */
70906
71062
  IModelReadRpcInterface.interfaceName = "IModelReadRpcInterface";
70907
71063
  /** The semantic version of the interface. */
70908
- IModelReadRpcInterface.interfaceVersion = "3.1.0";
71064
+ IModelReadRpcInterface.interfaceVersion = "3.2.0";
71065
+ __decorate([
71066
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__["RpcOperation"].allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__["RpcResponseCacheControl"].Immutable)
71067
+ ], IModelReadRpcInterface.prototype, "getConnectionProps", null);
71068
+ __decorate([
71069
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__["RpcOperation"].allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__["RpcResponseCacheControl"].Immutable)
71070
+ ], IModelReadRpcInterface.prototype, "queryModelRanges", null);
71071
+ __decorate([
71072
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__["RpcOperation"].allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__["RpcResponseCacheControl"].Immutable)
71073
+ ], IModelReadRpcInterface.prototype, "getClassHierarchy", null);
71074
+ __decorate([
71075
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__["RpcOperation"].allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__["RpcResponseCacheControl"].Immutable)
71076
+ ], IModelReadRpcInterface.prototype, "getViewStateData", null);
71077
+ __decorate([
71078
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__["RpcOperation"].allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__["RpcResponseCacheControl"].Immutable)
71079
+ ], IModelReadRpcInterface.prototype, "getDefaultViewId", null);
71080
+ __decorate([
71081
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__["RpcOperation"].allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__["RpcResponseCacheControl"].Immutable)
71082
+ ], IModelReadRpcInterface.prototype, "getCustomViewState3dData", null);
71083
+ __decorate([
71084
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__["RpcOperation"].allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__["RpcResponseCacheControl"].Immutable)
71085
+ ], IModelReadRpcInterface.prototype, "hydrateViewState", null);
71086
+ __decorate([
71087
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__["RpcOperation"].allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__["RpcResponseCacheControl"].Immutable)
71088
+ ], IModelReadRpcInterface.prototype, "getGeoCoordinatesFromIModelCoordinates", null);
70909
71089
 
70910
71090
 
70911
71091
  /***/ }),
@@ -70920,8 +71100,10 @@ IModelReadRpcInterface.interfaceVersion = "3.1.0";
70920
71100
  "use strict";
70921
71101
  __webpack_require__.r(__webpack_exports__);
70922
71102
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IModelTileRpcInterface", function() { return IModelTileRpcInterface; });
70923
- /* harmony import */ var _RpcInterface__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../RpcInterface */ "../../core/common/lib/esm/RpcInterface.js");
70924
- /* harmony import */ var _RpcManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../RpcManager */ "../../core/common/lib/esm/RpcManager.js");
71103
+ /* harmony import */ var _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/RpcConstants */ "../../core/common/lib/esm/rpc/core/RpcConstants.js");
71104
+ /* harmony import */ var _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./core/RpcOperation */ "../../core/common/lib/esm/rpc/core/RpcOperation.js");
71105
+ /* harmony import */ var _RpcInterface__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../RpcInterface */ "../../core/common/lib/esm/RpcInterface.js");
71106
+ /* harmony import */ var _RpcManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../RpcManager */ "../../core/common/lib/esm/RpcManager.js");
70925
71107
  /*---------------------------------------------------------------------------------------------
70926
71108
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
70927
71109
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -70929,11 +71111,19 @@ __webpack_require__.r(__webpack_exports__);
70929
71111
  /** @packageDocumentation
70930
71112
  * @module RpcInterface
70931
71113
  */
71114
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
71115
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
71116
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
71117
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
71118
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
71119
+ };
71120
+
71121
+
70932
71122
 
70933
71123
 
70934
71124
  /** @public */
70935
- class IModelTileRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__["RpcInterface"] {
70936
- static getClient() { return _RpcManager__WEBPACK_IMPORTED_MODULE_1__["RpcManager"].getClientForInterface(IModelTileRpcInterface); }
71125
+ class IModelTileRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_2__["RpcInterface"] {
71126
+ static getClient() { return _RpcManager__WEBPACK_IMPORTED_MODULE_3__["RpcManager"].getClientForInterface(IModelTileRpcInterface); }
70937
71127
  /*===========================================================================================
70938
71128
  NOTE: Any add/remove/change to the methods below requires an update of the interface version.
70939
71129
  NOTE: Please consult the README in this folder for the semantic versioning rules.
@@ -70989,7 +71179,13 @@ class IModelTileRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__[
70989
71179
  /** The immutable name of the interface. */
70990
71180
  IModelTileRpcInterface.interfaceName = "IModelTileRpcInterface";
70991
71181
  /** The semantic version of the interface. */
70992
- IModelTileRpcInterface.interfaceVersion = "3.0.0";
71182
+ IModelTileRpcInterface.interfaceVersion = "3.1.0";
71183
+ __decorate([
71184
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__["RpcOperation"].allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__["RpcResponseCacheControl"].Immutable)
71185
+ ], IModelTileRpcInterface.prototype, "getTileCacheContainerUrl", null);
71186
+ __decorate([
71187
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__["RpcOperation"].allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__["RpcResponseCacheControl"].Immutable)
71188
+ ], IModelTileRpcInterface.prototype, "requestTileTreeProps", null);
70993
71189
 
70994
71190
 
70995
71191
  /***/ }),
@@ -71524,6 +71720,9 @@ __webpack_require__.r(__webpack_exports__);
71524
71720
  * @public
71525
71721
  */
71526
71722
  class RpcControlResponse {
71723
+ constructor() {
71724
+ this.message = "RpcControlResponse";
71725
+ }
71527
71726
  }
71528
71727
  /** A pending RPC operation response.
71529
71728
  * @public
@@ -71539,6 +71738,10 @@ class RpcPendingResponse extends RpcControlResponse {
71539
71738
  * @public
71540
71739
  */
71541
71740
  class RpcNotFoundResponse extends RpcControlResponse {
71741
+ constructor() {
71742
+ super(...arguments);
71743
+ this.message = "Not found";
71744
+ }
71542
71745
  }
71543
71746
  /** Manages requests and responses for an RPC configuration.
71544
71747
  * @internal
@@ -71766,10 +71969,17 @@ class RpcInvocation {
71766
71969
  const impl = _RpcRegistry__WEBPACK_IMPORTED_MODULE_10__["RpcRegistry"].instance.getImplForInterface(this.operation.interfaceDefinition);
71767
71970
  impl[_RpcRegistry__WEBPACK_IMPORTED_MODULE_10__["CURRENT_INVOCATION"]] = this;
71768
71971
  const op = this.lookupOperationFunction(impl);
71769
- return await RpcInvocation.runActivity(activity, async () => op.call(impl, ...parameters));
71972
+ return await RpcInvocation.runActivity(activity, async () => op.call(impl, ...parameters)
71973
+ .catch(async (error) => {
71974
+ // this catch block is intentionally placed inside `runActivity` to attach the right logging metadata and use the correct openTelemetry span.
71975
+ if (!(error instanceof _RpcControl__WEBPACK_IMPORTED_MODULE_6__["RpcPendingResponse"])) {
71976
+ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["Logger"].logError(_CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_1__["CommonLoggerCategory"].RpcInterfaceBackend, "Error in RPC operation", { error: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["BentleyError"].getErrorProps(error) });
71977
+ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["Tracing"].setAttributes({ error: true });
71978
+ }
71979
+ throw error;
71980
+ }));
71770
71981
  }
71771
71982
  catch (error) {
71772
- _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["Logger"].logError(_CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_1__["CommonLoggerCategory"].RpcInterfaceBackend, "Error in RPC operation", { error: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["BentleyError"].getErrorProps(error), ...RpcInvocation.sanitizeForLog(activity) });
71773
71983
  return this.reject(error);
71774
71984
  }
71775
71985
  }
@@ -72435,6 +72645,8 @@ class RpcProtocol {
72435
72645
  async fulfill(request) {
72436
72646
  return new (this.invocationType)(this, request).fulfillment;
72437
72647
  }
72648
+ /** @internal */
72649
+ async initialize(_token) { }
72438
72650
  /** Serializes a request. */
72439
72651
  async serialize(request) {
72440
72652
  const serializedContext = await _RpcConfiguration__WEBPACK_IMPORTED_MODULE_1__["RpcConfiguration"].requestContext.serialize(request);
@@ -73049,6 +73261,7 @@ class RpcRequest {
73049
73261
  this._connecting = true;
73050
73262
  RpcRequest._activeRequests.set(this.id, this);
73051
73263
  this.protocol.events.raiseEvent(_RpcConstants__WEBPACK_IMPORTED_MODULE_3__["RpcProtocolEvent"].RequestCreated, this);
73264
+ await this.protocol.initialize(this.operation.policy.token(this));
73052
73265
  this._sending = new Cancellable(this.setHeaders().then(async () => this.send()));
73053
73266
  this.operation.policy.sentCallback(this);
73054
73267
  const response = await this._sending.promise;
@@ -73938,8 +74151,8 @@ __webpack_require__.r(__webpack_exports__);
73938
74151
 
73939
74152
 
73940
74153
  class InitializeInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_8__["RpcInterface"] {
73941
- async initialize() { return this.forward(arguments); }
73942
- static createRequest(protocol) {
74154
+ async initialize(_token) { return this.forward(arguments); }
74155
+ static createRequest(protocol, token) {
73943
74156
  const routing = _core_RpcRoutingToken__WEBPACK_IMPORTED_MODULE_10__["RpcRoutingToken"].generate();
73944
74157
  const config = class extends _core_RpcConfiguration__WEBPACK_IMPORTED_MODULE_1__["RpcConfiguration"] {
73945
74158
  constructor() {
@@ -73952,7 +74165,7 @@ class InitializeInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_8__["Rp
73952
74165
  const instance = _core_RpcConfiguration__WEBPACK_IMPORTED_MODULE_1__["RpcConfiguration"].obtain(config);
73953
74166
  _core_RpcConfiguration__WEBPACK_IMPORTED_MODULE_1__["RpcConfiguration"].initializeInterfaces(instance);
73954
74167
  const client = _RpcManager__WEBPACK_IMPORTED_MODULE_9__["RpcManager"].getClientForInterface(InitializeInterface, routing);
73955
- return new (protocol.requestType)(client, "initialize", []);
74168
+ return new (protocol.requestType)(client, "initialize", [token]);
73956
74169
  }
73957
74170
  }
73958
74171
  InitializeInterface.interfaceName = "InitializeInterface";
@@ -73975,13 +74188,13 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_3__["
73975
74188
  this.events.addListener(_WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_5__["WebAppRpcLogging"].logProtocolEvent);
73976
74189
  }
73977
74190
  /** @internal */
73978
- async initialize() {
74191
+ async initialize(token) {
73979
74192
  if (this._initialized) {
73980
74193
  return this._initialized;
73981
74194
  }
73982
74195
  return this._initialized = new Promise(async (resolve) => {
73983
74196
  try {
73984
- const request = InitializeInterface.createRequest(this);
74197
+ const request = InitializeInterface.createRequest(this, token);
73985
74198
  const response = await request.preflight();
73986
74199
  if (response && response.ok) {
73987
74200
  (response.headers.get("Access-Control-Allow-Headers") || "").split(",").forEach((v) => this.allowedHeaders.add(v.trim()));
@@ -74238,9 +74451,6 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_6__["Rp
74238
74451
  }
74239
74452
  /** Sends the request. */
74240
74453
  async send() {
74241
- if (this.method !== "options") {
74242
- await this.protocol.initialize();
74243
- }
74244
74454
  this._loading = true;
74245
74455
  await this.setupTransport();
74246
74456
  return new Promise(async (resolve, reject) => {
@@ -74327,8 +74537,29 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_6__["Rp
74327
74537
  }
74328
74538
  static configureResponse(protocol, request, fulfillment, res) {
74329
74539
  const success = protocol.getStatus(fulfillment.status) === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_3__["RpcRequestStatus"].Resolved;
74540
+ // TODO: Use stale-while-revalidate in cache headers. This needs to be tested, and does not currently have support in the router/caching-service.
74541
+ // This will allow browsers to use stale cached responses while also revalidating with the router, allowing us to start up a backend if necessary.
74542
+ // RPC Caching Service uses the s-maxage header to determine the TTL for the redis cache.
74543
+ const oneHourInSeconds = 3600;
74330
74544
  if (success && request.caching === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_3__["RpcResponseCacheControl"].Immutable) {
74331
- res.set("Cache-Control", "private, max-age=31536000, immutable");
74545
+ // If response size is > 50 MB, do not cache it.
74546
+ if (fulfillment.result.objects.length > (50 * 10 ** 7)) {
74547
+ res.set("Cache-Control", "no-store");
74548
+ }
74549
+ else if (request.operation.operationName === "generateTileContent") {
74550
+ res.set("Cache-Control", "no-store");
74551
+ }
74552
+ else if (request.operation.operationName === "getConnectionProps") {
74553
+ // GetConnectionprops can't be cached on the browser longer than the lifespan of the backend. The lifespan of backend may shrink too. Keep it at 1 second to be safe.
74554
+ res.set("Cache-Control", `s-maxage=${oneHourInSeconds * 24}, max-age=1, immutable`);
74555
+ }
74556
+ else if (request.operation.operationName === "getTileCacheContainerUrl") {
74557
+ // getTileCacheContainerUrl returns a SAS with an expiry of 23:59:59. We can't exceed that time when setting the max-age.
74558
+ res.set("Cache-Control", `s-maxage=${oneHourInSeconds * 23}, max-age=${oneHourInSeconds * 23}, immutable`);
74559
+ }
74560
+ else {
74561
+ res.set("Cache-Control", `s-maxage=${oneHourInSeconds * 24}, max-age=${oneHourInSeconds * 48}, immutable`);
74562
+ }
74332
74563
  }
74333
74564
  if (fulfillment.retry) {
74334
74565
  res.set("Retry-After", fulfillment.retry);
@@ -74449,9 +74680,11 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_6__["Rp
74449
74680
  }
74450
74681
  }
74451
74682
  /** The maximum size permitted for an encoded component in a URL.
74683
+ * Note that some backends limit the total cumulative request size. Our current node backends accept requests with a max size of 16 kb.
74684
+ * In addition to the url size, an authorization header may also add considerably to the request size.
74452
74685
  * @note This is used for features like encoding the payload of a cacheable request in the URL.
74453
74686
  */
74454
- WebAppRpcRequest.maxUrlComponentSize = 4096;
74687
+ WebAppRpcRequest.maxUrlComponentSize = 1024 * 8;
74455
74688
 
74456
74689
 
74457
74690
  /***/ }),
@@ -79660,56 +79893,63 @@ class AccuSnap {
79660
79893
  return undefined; // Don't make back end request when only doing intersection snap when we don't have another hit to intersect with...
79661
79894
  }
79662
79895
  }
79663
- const result = await thisHit.iModel.requestSnap(requestProps);
79664
- if (out)
79665
- out.snapStatus = result.status;
79666
- if (result.status !== _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__["SnapStatus"].Success)
79667
- return undefined;
79668
- const parseCurve = (json) => {
79669
- const parsed = undefined !== json ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["IModelJson"].Reader.parse(json) : undefined;
79670
- return parsed instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["GeometryQuery"] && "curvePrimitive" === parsed.geometryCategory ? parsed : undefined;
79671
- };
79672
- // If this hit is from a plan projection model, apply the model's elevation to the snap point for display.
79673
- // Likewise, if it is a hit on a model with a display transform, apply the model's transform to the snap point.
79674
- let snapPoint = result.snapPoint;
79675
- const elevation = undefined !== thisHit.modelId ? thisHit.viewport.view.getModelElevation(thisHit.modelId) : 0;
79676
- if (0 !== elevation || undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
79677
- const adjustedSnapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point3d"].fromJSON(snapPoint);
79678
- thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, adjustedSnapPoint, false);
79679
- adjustedSnapPoint.z += elevation;
79680
- snapPoint = adjustedSnapPoint;
79681
- }
79682
- const snap = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__["SnapDetail"](thisHit, result.snapMode, result.heat, snapPoint);
79683
- // Apply model's elevation and display transform to curve for display.
79684
- let transform;
79685
- if (undefined !== thisHit.modelId && undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
79686
- transform = thisHit.viewport.view.getModelDisplayTransform(thisHit.modelId, _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Transform"].createIdentity());
79687
- if (0 !== elevation)
79688
- transform.origin.set(0, 0, elevation);
79689
- }
79690
- else if (0 !== elevation) {
79691
- transform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Transform"].createTranslationXYZ(0, 0, elevation);
79692
- }
79693
- snap.setCurvePrimitive(parseCurve(result.curve), transform, result.geomType);
79694
- if (undefined !== result.parentGeomType)
79695
- snap.parentGeomType = result.parentGeomType;
79696
- if (undefined !== result.hitPoint) {
79697
- snap.hitPoint.setFromJSON(result.hitPoint); // Update hitPoint from readPixels with exact point location corrected to surface/edge geometry...
79698
- thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, snap.hitPoint, false);
79699
- }
79700
- if (undefined !== result.normal) {
79701
- snap.normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Vector3d"].fromJSON(result.normal);
79702
- thisHit.viewport.view.transformNormalByModelDisplayTransform(thisHit.modelId, snap.normal);
79703
- }
79704
- if (_HitDetail__WEBPACK_IMPORTED_MODULE_3__["SnapMode"].Intersection !== snap.snapMode)
79705
- return snap;
79706
- if (undefined === result.intersectId)
79707
- return undefined;
79708
- const otherPrimitive = parseCurve(result.intersectCurve);
79709
- if (undefined === otherPrimitive)
79896
+ try {
79897
+ const result = await thisHit.iModel.requestSnap(requestProps);
79898
+ if (out)
79899
+ out.snapStatus = result.status;
79900
+ if (result.status !== _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__["SnapStatus"].Success)
79901
+ return undefined;
79902
+ const parseCurve = (json) => {
79903
+ const parsed = undefined !== json ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["IModelJson"].Reader.parse(json) : undefined;
79904
+ return parsed instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["GeometryQuery"] && "curvePrimitive" === parsed.geometryCategory ? parsed : undefined;
79905
+ };
79906
+ // If this hit is from a plan projection model, apply the model's elevation to the snap point for display.
79907
+ // Likewise, if it is a hit on a model with a display transform, apply the model's transform to the snap point.
79908
+ let snapPoint = result.snapPoint;
79909
+ const elevation = undefined !== thisHit.modelId ? thisHit.viewport.view.getModelElevation(thisHit.modelId) : 0;
79910
+ if (0 !== elevation || undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
79911
+ const adjustedSnapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point3d"].fromJSON(snapPoint);
79912
+ thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, adjustedSnapPoint, false);
79913
+ adjustedSnapPoint.z += elevation;
79914
+ snapPoint = adjustedSnapPoint;
79915
+ }
79916
+ const snap = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__["SnapDetail"](thisHit, result.snapMode, result.heat, snapPoint);
79917
+ // Apply model's elevation and display transform to curve for display.
79918
+ let transform;
79919
+ if (undefined !== thisHit.modelId && undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
79920
+ transform = thisHit.viewport.view.getModelDisplayTransform(thisHit.modelId, _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Transform"].createIdentity());
79921
+ if (0 !== elevation)
79922
+ transform.origin.set(0, 0, elevation);
79923
+ }
79924
+ else if (0 !== elevation) {
79925
+ transform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Transform"].createTranslationXYZ(0, 0, elevation);
79926
+ }
79927
+ snap.setCurvePrimitive(parseCurve(result.curve), transform, result.geomType);
79928
+ if (undefined !== result.parentGeomType)
79929
+ snap.parentGeomType = result.parentGeomType;
79930
+ if (undefined !== result.hitPoint) {
79931
+ snap.hitPoint.setFromJSON(result.hitPoint); // Update hitPoint from readPixels with exact point location corrected to surface/edge geometry...
79932
+ thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, snap.hitPoint, false);
79933
+ }
79934
+ if (undefined !== result.normal) {
79935
+ snap.normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Vector3d"].fromJSON(result.normal);
79936
+ thisHit.viewport.view.transformNormalByModelDisplayTransform(thisHit.modelId, snap.normal);
79937
+ }
79938
+ if (_HitDetail__WEBPACK_IMPORTED_MODULE_3__["SnapMode"].Intersection !== snap.snapMode)
79939
+ return snap;
79940
+ if (undefined === result.intersectId)
79941
+ return undefined;
79942
+ const otherPrimitive = parseCurve(result.intersectCurve);
79943
+ if (undefined === otherPrimitive)
79944
+ return undefined;
79945
+ const intersect = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__["IntersectDetail"](snap, snap.heat, snap.snapPoint, otherPrimitive, result.intersectId);
79946
+ return intersect;
79947
+ }
79948
+ catch (_err) {
79949
+ if (out)
79950
+ out.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__["SnapStatus"].Aborted;
79710
79951
  return undefined;
79711
- const intersect = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__["IntersectDetail"](snap, snap.heat, snap.snapPoint, otherPrimitive, result.intersectId);
79712
- return intersect;
79952
+ }
79713
79953
  }
79714
79954
  async getAccuSnapDetail(hitList, out) {
79715
79955
  const thisHit = hitList.getNextHit();
@@ -86630,7 +86870,7 @@ class IModelApp {
86630
86870
  applicationId: this.applicationId,
86631
86871
  applicationVersion: this.applicationVersion,
86632
86872
  sessionId: this.sessionId,
86633
- authorization: await this.getAccessToken(),
86873
+ authorization: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__["ProcessDetector"].isMobileAppFrontend ? "" : await this.getAccessToken(),
86634
86874
  };
86635
86875
  const csrf = IModelApp.securityOptions.csrfProtection;
86636
86876
  if (csrf && csrf.enabled) {
@@ -95211,27 +95451,31 @@ __webpack_require__.r(__webpack_exports__);
95211
95451
  /** @packageDocumentation
95212
95452
  * @module Views
95213
95453
  */
95214
- /** A rectangle in integer view coordinates with (0,0) corresponding to the top-left corner of the view.
95215
- *
95454
+ /** A rectangle in unsigned integer view coordinates with (0,0) corresponding to the top-left corner of the view.
95216
95455
  * Increasing **x** moves from left to right, and increasing **y** moves from top to bottom.
95456
+ * [[left]], [[top]], [[right]], and [[bottom]] are required to be non-negative integers; any negative inputs are treated as
95457
+ * zero and any non-integer inputs are rounded down to the nearest integer.
95217
95458
  * @public
95218
95459
  * @extensions
95219
95460
  */
95220
95461
  class ViewRect {
95221
95462
  /** Construct a new ViewRect. */
95222
95463
  constructor(left = 0, top = 0, right = 0, bottom = 0) { this.init(left, top, right, bottom); }
95223
- /** The leftmost side of this ViewRect. */
95464
+ _set(key, value) {
95465
+ this[key] = Math.max(0, Math.floor(value));
95466
+ }
95467
+ /** The leftmost side of this ViewRect. */
95224
95468
  get left() { return this._left; }
95225
- set left(val) { this._left = Math.floor(val); }
95469
+ set left(val) { this._set("_left", val); }
95226
95470
  /** The topmost side of this ViewRect. */
95227
95471
  get top() { return this._top; }
95228
- set top(val) { this._top = Math.floor(val); }
95472
+ set top(val) { this._set("_top", val); }
95229
95473
  /** The rightmost side of this ViewRect. */
95230
95474
  get right() { return this._right; }
95231
- set right(val) { this._right = Math.floor(val); }
95475
+ set right(val) { this._set("_right", val); }
95232
95476
  /** The bottommost side of this ViewRect. */
95233
95477
  get bottom() { return this._bottom; }
95234
- set bottom(val) { this._bottom = Math.floor(val); }
95478
+ set bottom(val) { this._set("_bottom", val); }
95235
95479
  /** True if this ViewRect has an area > 0. */
95236
95480
  get isNull() { return this.right <= this.left || this.bottom <= this.top; }
95237
95481
  /** True if `!isNull` */
@@ -99672,7 +99916,7 @@ class Viewport {
99672
99916
  return false; // Reality Models not selectable
99673
99917
  return undefined === this.mapLayerFromIds(pixel.featureTable.modelId, pixel.elementId); // Maps no selectable.
99674
99918
  }
99675
- /** Read the current image from this viewport from the rendering system. If a view rectangle outside the actual view is specified, the entire view is captured.
99919
+ /** Read the current image from this viewport from the rendering system. If a "null" rectangle is supplied (@see [[ViewRect.isNull]]), the entire view is captured.
99676
99920
  * @param rect The area of the view to read. The origin of a viewRect must specify the upper left corner.
99677
99921
  * @param targetSize The size of the image to be returned. The size can be larger or smaller than the original view.
99678
99922
  * @param flipVertically If true, the image is flipped along the x-axis.
@@ -99680,7 +99924,7 @@ class Viewport {
99680
99924
  * @note By default the image is returned with the coordinate (0,0) referring to the bottom-most pixel. Pass `true` for `flipVertically` to flip it along the x-axis.
99681
99925
  * @deprecated Use readImageBuffer.
99682
99926
  */
99683
- readImage(rect = new _ViewRect__WEBPACK_IMPORTED_MODULE_25__["ViewRect"](0, 0, -1, -1), targetSize = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"].createZero(), flipVertically = false) {
99927
+ readImage(rect = new _ViewRect__WEBPACK_IMPORTED_MODULE_25__["ViewRect"](1, 1, 0, 0), targetSize = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"].createZero(), flipVertically = false) {
99684
99928
  // eslint-disable-next-line deprecation/deprecation
99685
99929
  return this.target.readImage(rect, targetSize, flipVertically);
99686
99930
  }
@@ -102277,226 +102521,233 @@ if (globalThis[globalSymbol])
102277
102521
 
102278
102522
 
102279
102523
  const extensionExports = {
102280
- ContextRotationId: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ContextRotationId"],
102281
- ACSType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ACSType"],
102282
102524
  ACSDisplayOptions: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ACSDisplayOptions"],
102283
- CoordSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["CoordSystem"],
102284
- LocateAction: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["LocateAction"],
102285
- LocateFilterStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["LocateFilterStatus"],
102286
- SnapStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SnapStatus"],
102287
- FlashMode: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["FlashMode"],
102288
- FrontendLoggerCategory: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["FrontendLoggerCategory"],
102289
- SnapMode: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SnapMode"],
102290
- SnapHeat: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SnapHeat"],
102291
- HitSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitSource"],
102292
- HitGeomType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitGeomType"],
102293
- HitParentGeomType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitParentGeomType"],
102294
- HitPriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitPriority"],
102295
- HitDetailType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitDetailType"],
102296
- OutputMessageType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OutputMessageType"],
102297
- OutputMessagePriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OutputMessagePriority"],
102298
- OutputMessageAlert: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OutputMessageAlert"],
102299
- ActivityMessageEndReason: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ActivityMessageEndReason"],
102300
- MessageBoxType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxType"],
102301
- MessageBoxIconType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxIconType"],
102302
- MessageBoxValue: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxValue"],
102303
- GraphicType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GraphicType"],
102304
- UniformType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["UniformType"],
102305
- VaryingType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["VaryingType"],
102306
- SelectionSetEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionSetEventType"],
102307
- StandardViewId: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["StandardViewId"],
102308
- TileLoadStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileLoadStatus"],
102309
- TileVisibility: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileVisibility"],
102310
- TileLoadPriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileLoadPriority"],
102311
- TileBoundingBoxes: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileBoundingBoxes"],
102312
- TileTreeLoadStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileTreeLoadStatus"],
102313
- TileGraphicType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileGraphicType"],
102314
- ClipEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ClipEventType"],
102315
- SelectionMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionMethod"],
102316
- SelectionMode: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionMode"],
102317
- SelectionProcessing: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionProcessing"],
102318
- BeButton: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeButton"],
102319
- CoordinateLockOverrides: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["CoordinateLockOverrides"],
102320
- InputSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["InputSource"],
102321
- CoordSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["CoordSource"],
102322
- BeModifierKeys: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeModifierKeys"],
102323
- EventHandled: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["EventHandled"],
102324
- ParseAndRunResult: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ParseAndRunResult"],
102325
- KeyinParseError: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["KeyinParseError"],
102326
- StartOrResume: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["StartOrResume"],
102327
- ManipulatorToolEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ManipulatorToolEvent"],
102328
- ToolAssistanceImage: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolAssistanceImage"],
102329
- ToolAssistanceInputMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolAssistanceInputMethod"],
102330
- ViewStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewStatus"],
102525
+ ACSType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ACSType"],
102331
102526
  AccuDrawHintBuilder: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AccuDrawHintBuilder"],
102332
102527
  AccuSnap: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AccuSnap"],
102333
- AuxCoordSystemState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AuxCoordSystemState"],
102528
+ ActivityMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ActivityMessageDetails"],
102529
+ ActivityMessageEndReason: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ActivityMessageEndReason"],
102334
102530
  AuxCoordSystem2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AuxCoordSystem2dState"],
102335
102531
  AuxCoordSystem3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AuxCoordSystem3dState"],
102336
102532
  AuxCoordSystemSpatialState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AuxCoordSystemSpatialState"],
102533
+ AuxCoordSystemState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AuxCoordSystemState"],
102534
+ BackgroundFill: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BackgroundFill"],
102535
+ BackgroundMapType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BackgroundMapType"],
102536
+ BatchType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BatchType"],
102537
+ BeButton: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeButton"],
102538
+ BeButtonEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeButtonEvent"],
102539
+ BeButtonState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeButtonState"],
102540
+ BeModifierKeys: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeModifierKeys"],
102541
+ BeTouchEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeTouchEvent"],
102542
+ BeWheelEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeWheelEvent"],
102543
+ BingElevationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BingElevationProvider"],
102337
102544
  BingLocationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BingLocationProvider"],
102545
+ BisCodeSpec: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BisCodeSpec"],
102546
+ BriefcaseIdValue: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BriefcaseIdValue"],
102338
102547
  CategorySelectorState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["CategorySelectorState"],
102339
102548
  ChangeFlags: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ChangeFlags"],
102549
+ ChangeOpCode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ChangeOpCode"],
102550
+ ChangedValueState: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ChangedValueState"],
102551
+ ChangesetType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ChangesetType"],
102552
+ ClipEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ClipEventType"],
102553
+ Cluster: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Cluster"],
102554
+ ColorByName: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ColorByName"],
102555
+ ColorDef: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ColorDef"],
102556
+ CommonLoggerCategory: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["CommonLoggerCategory"],
102340
102557
  ContextRealityModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ContextRealityModelState"],
102341
- DisplayStyleState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["DisplayStyleState"],
102558
+ ContextRotationId: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ContextRotationId"],
102559
+ CoordSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["CoordSource"],
102560
+ CoordSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["CoordSystem"],
102561
+ CoordinateLockOverrides: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["CoordinateLockOverrides"],
102562
+ Decorations: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Decorations"],
102563
+ DisclosedTileTreeSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["DisclosedTileTreeSet"],
102342
102564
  DisplayStyle2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["DisplayStyle2dState"],
102343
102565
  DisplayStyle3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["DisplayStyle3dState"],
102566
+ DisplayStyleState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["DisplayStyleState"],
102567
+ DrawingModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["DrawingModelState"],
102344
102568
  DrawingViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["DrawingViewState"],
102345
- LocateOptions: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["LocateOptions"],
102346
- LocateResponse: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["LocateResponse"],
102347
- ElementPicker: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ElementPicker"],
102569
+ ECSqlSystemProperty: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ECSqlSystemProperty"],
102570
+ ECSqlValueType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ECSqlValueType"],
102571
+ EditManipulator: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["EditManipulator"],
102572
+ ElementGeometryOpcode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ElementGeometryOpcode"],
102348
102573
  ElementLocateManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ElementLocateManager"],
102574
+ ElementPicker: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ElementPicker"],
102575
+ ElementState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ElementState"],
102349
102576
  EmphasizeElements: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["EmphasizeElements"],
102350
102577
  EntityState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["EntityState"],
102351
- ElementState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ElementState"],
102578
+ EventController: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["EventController"],
102579
+ EventHandled: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["EventHandled"],
102580
+ FeatureOverrideType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FeatureOverrideType"],
102581
+ FeatureSymbology: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["FeatureSymbology"],
102582
+ FillDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FillDisplay"],
102583
+ FillFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FillFlags"],
102584
+ FlashMode: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["FlashMode"],
102352
102585
  FlashSettings: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["FlashSettings"],
102586
+ FontType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FontType"],
102587
+ FrontendLoggerCategory: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["FrontendLoggerCategory"],
102353
102588
  FrustumAnimator: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["FrustumAnimator"],
102589
+ GeoCoordStatus: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeoCoordStatus"],
102590
+ GeometricModel2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GeometricModel2dState"],
102591
+ GeometricModel3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GeometricModel3dState"],
102592
+ GeometricModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GeometricModelState"],
102593
+ GeometryClass: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometryClass"],
102594
+ GeometryStreamFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometryStreamFlags"],
102595
+ GeometrySummaryVerbosity: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometrySummaryVerbosity"],
102354
102596
  GlobeAnimator: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GlobeAnimator"],
102597
+ GlobeMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GlobeMode"],
102598
+ GraphicBranch: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GraphicBranch"],
102599
+ GraphicBuilder: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GraphicBuilder"],
102600
+ GraphicType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GraphicType"],
102601
+ GridOrientationType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GridOrientationType"],
102602
+ HSVConstants: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["HSVConstants"],
102603
+ HiliteSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HiliteSet"],
102355
102604
  HitDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitDetail"],
102356
- SnapDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SnapDetail"],
102357
- IntersectDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IntersectDetail"],
102605
+ HitDetailType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitDetailType"],
102606
+ HitGeomType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitGeomType"],
102358
102607
  HitList: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitList"],
102359
- canvasToResizedCanvasWithBars: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["canvasToResizedCanvasWithBars"],
102360
- imageBufferToCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToCanvas"],
102361
- canvasToImageBuffer: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["canvasToImageBuffer"],
102362
- getImageSourceMimeType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["getImageSourceMimeType"],
102363
- getImageSourceFormatForMimeType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["getImageSourceFormatForMimeType"],
102364
- imageElementFromImageSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageElementFromImageSource"],
102365
- imageElementFromUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageElementFromUrl"],
102366
- extractImageSourceDimensions: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["extractImageSourceDimensions"],
102367
- imageBufferToPngDataUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToPngDataUrl"],
102368
- imageBufferToBase64EncodedPng: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToBase64EncodedPng"],
102369
- getCompressedJpegFromCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["getCompressedJpegFromCanvas"],
102608
+ HitParentGeomType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitParentGeomType"],
102609
+ HitPriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitPriority"],
102610
+ HitSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitSource"],
102370
102611
  IModelConnection: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IModelConnection"],
102371
- NotificationHandler: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["NotificationHandler"],
102612
+ IconSprites: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IconSprites"],
102613
+ ImageBufferFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ImageBufferFormat"],
102614
+ ImageSourceFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ImageSourceFormat"],
102615
+ InputCollector: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["InputCollector"],
102616
+ InputSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["InputSource"],
102617
+ InteractiveTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["InteractiveTool"],
102618
+ IntersectDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IntersectDetail"],
102619
+ KeyinParseError: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["KeyinParseError"],
102620
+ LinePixels: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["LinePixels"],
102621
+ LocateAction: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["LocateAction"],
102622
+ LocateFilterStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["LocateFilterStatus"],
102623
+ LocateOptions: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["LocateOptions"],
102624
+ LocateResponse: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["LocateResponse"],
102625
+ ManipulatorToolEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ManipulatorToolEvent"],
102372
102626
  MarginPercent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MarginPercent"],
102373
102627
  Marker: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Marker"],
102374
- Cluster: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Cluster"],
102375
102628
  MarkerSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MarkerSet"],
102629
+ MassPropertiesOperation: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["MassPropertiesOperation"],
102630
+ MessageBoxIconType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxIconType"],
102631
+ MessageBoxType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxType"],
102632
+ MessageBoxValue: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxValue"],
102376
102633
  ModelSelectorState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ModelSelectorState"],
102377
102634
  ModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ModelState"],
102378
- GeometricModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GeometricModelState"],
102379
- GeometricModel2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GeometricModel2dState"],
102380
- GeometricModel3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GeometricModel3dState"],
102381
- SheetModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SheetModelState"],
102382
- SpatialModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpatialModelState"],
102383
- PhysicalModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["PhysicalModelState"],
102384
- SpatialLocationModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpatialLocationModelState"],
102385
- DrawingModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["DrawingModelState"],
102386
- SectionDrawingModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SectionDrawingModelState"],
102387
- NotifyMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["NotifyMessageDetails"],
102388
- ActivityMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ActivityMessageDetails"],
102635
+ MonochromeMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["MonochromeMode"],
102636
+ NotificationHandler: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["NotificationHandler"],
102389
102637
  NotificationManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["NotificationManager"],
102638
+ NotifyMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["NotifyMessageDetails"],
102639
+ Npc: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["Npc"],
102640
+ OrthographicViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OrthographicViewState"],
102641
+ OutputMessageAlert: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OutputMessageAlert"],
102642
+ OutputMessagePriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OutputMessagePriority"],
102643
+ OutputMessageType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OutputMessageType"],
102644
+ ParseAndRunResult: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ParseAndRunResult"],
102390
102645
  PerModelCategoryVisibility: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["PerModelCategoryVisibility"],
102391
- Decorations: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Decorations"],
102392
- FeatureSymbology: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["FeatureSymbology"],
102393
- GraphicBranch: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GraphicBranch"],
102394
- GraphicBuilder: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GraphicBuilder"],
102646
+ PhysicalModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["PhysicalModelState"],
102395
102647
  Pixel: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Pixel"],
102648
+ PlanarClipMaskMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["PlanarClipMaskMode"],
102649
+ PlanarClipMaskPriority: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["PlanarClipMaskPriority"],
102650
+ PrimitiveTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["PrimitiveTool"],
102651
+ QueryRowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["QueryRowFormat"],
102652
+ Rank: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["Rank"],
102396
102653
  RenderClipVolume: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["RenderClipVolume"],
102397
102654
  RenderGraphic: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["RenderGraphic"],
102398
102655
  RenderGraphicOwner: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["RenderGraphicOwner"],
102656
+ RenderMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["RenderMode"],
102399
102657
  RenderSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["RenderSystem"],
102400
102658
  Scene: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Scene"],
102401
- HiliteSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HiliteSet"],
102659
+ SectionDrawingModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SectionDrawingModelState"],
102660
+ SectionType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["SectionType"],
102661
+ SelectionMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionMethod"],
102662
+ SelectionMode: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionMode"],
102663
+ SelectionProcessing: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionProcessing"],
102402
102664
  SelectionSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionSet"],
102665
+ SelectionSetEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionSetEventType"],
102666
+ SheetModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SheetModelState"],
102403
102667
  SheetViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SheetViewState"],
102668
+ SkyBoxImageType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["SkyBoxImageType"],
102669
+ SnapDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SnapDetail"],
102670
+ SnapHeat: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SnapHeat"],
102671
+ SnapMode: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SnapMode"],
102672
+ SnapStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SnapStatus"],
102673
+ SpatialClassifierInsideDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["SpatialClassifierInsideDisplay"],
102674
+ SpatialClassifierOutsideDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["SpatialClassifierOutsideDisplay"],
102675
+ SpatialLocationModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpatialLocationModelState"],
102676
+ SpatialModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpatialModelState"],
102404
102677
  SpatialViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpatialViewState"],
102405
- OrthographicViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OrthographicViewState"],
102406
102678
  Sprite: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Sprite"],
102407
- IconSprites: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IconSprites"],
102408
102679
  SpriteLocation: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpriteLocation"],
102680
+ StandardViewId: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["StandardViewId"],
102681
+ StartOrResume: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["StartOrResume"],
102682
+ SyncMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["SyncMode"],
102409
102683
  TentativePoint: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TentativePoint"],
102410
- DisclosedTileTreeSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["DisclosedTileTreeSet"],
102411
- readElementGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["readElementGraphics"],
102412
- BingElevationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BingElevationProvider"],
102684
+ TerrainHeightOriginMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["TerrainHeightOriginMode"],
102685
+ TextureMapUnits: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["TextureMapUnits"],
102686
+ ThematicDisplayMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ThematicDisplayMode"],
102687
+ ThematicGradientColorScheme: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ThematicGradientColorScheme"],
102688
+ ThematicGradientMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ThematicGradientMode"],
102413
102689
  Tile: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Tile"],
102414
102690
  TileAdmin: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileAdmin"],
102691
+ TileBoundingBoxes: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileBoundingBoxes"],
102415
102692
  TileDrawArgs: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileDrawArgs"],
102693
+ TileGraphicType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileGraphicType"],
102694
+ TileLoadPriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileLoadPriority"],
102695
+ TileLoadStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileLoadStatus"],
102416
102696
  TileRequest: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileRequest"],
102417
- TileRequestChannelStatistics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileRequestChannelStatistics"],
102418
102697
  TileRequestChannel: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileRequestChannel"],
102698
+ TileRequestChannelStatistics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileRequestChannelStatistics"],
102419
102699
  TileRequestChannels: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileRequestChannels"],
102420
102700
  TileTree: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileTree"],
102701
+ TileTreeLoadStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileTreeLoadStatus"],
102421
102702
  TileTreeReference: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileTreeReference"],
102422
102703
  TileUsageMarker: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileUsageMarker"],
102704
+ TileVisibility: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileVisibility"],
102423
102705
  Tiles: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Tiles"],
102424
- ViewClipTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipTool"],
102425
- ViewClipClearTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipClearTool"],
102426
- ViewClipDecorationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipDecorationProvider"],
102427
- EditManipulator: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["EditManipulator"],
102428
- EventController: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["EventController"],
102429
- PrimitiveTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["PrimitiveTool"],
102430
- BeButtonState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeButtonState"],
102431
- BeButtonEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeButtonEvent"],
102432
- BeTouchEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeTouchEvent"],
102433
- BeWheelEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BeWheelEvent"],
102434
102706
  Tool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Tool"],
102435
- InteractiveTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["InteractiveTool"],
102436
- InputCollector: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["InputCollector"],
102437
102707
  ToolAdmin: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolAdmin"],
102438
102708
  ToolAssistance: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolAssistance"],
102709
+ ToolAssistanceImage: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolAssistanceImage"],
102710
+ ToolAssistanceInputMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolAssistanceInputMethod"],
102439
102711
  ToolSettings: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolSettings"],
102440
- ViewTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewTool"],
102441
- ViewManip: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewManip"],
102712
+ TwoWayViewportFrustumSync: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TwoWayViewportFrustumSync"],
102713
+ TwoWayViewportSync: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TwoWayViewportSync"],
102714
+ TxnAction: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["TxnAction"],
102715
+ TypeOfChange: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["TypeOfChange"],
102716
+ UniformType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["UniformType"],
102717
+ VaryingType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["VaryingType"],
102718
+ ViewClipClearTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipClearTool"],
102719
+ ViewClipDecorationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipDecorationProvider"],
102720
+ ViewClipTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipTool"],
102442
102721
  ViewCreator2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewCreator2d"],
102443
102722
  ViewCreator3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewCreator3d"],
102444
- queryTerrainElevationOffset: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["queryTerrainElevationOffset"],
102445
- ViewingSpace: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewingSpace"],
102446
102723
  ViewManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewManager"],
102724
+ ViewManip: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewManip"],
102447
102725
  ViewPose: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewPose"],
102448
102726
  ViewRect: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewRect"],
102449
102727
  ViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState"],
102450
- ViewState3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState3d"],
102451
102728
  ViewState2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState2d"],
102452
- BackgroundMapType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BackgroundMapType"],
102453
- GlobeMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GlobeMode"],
102454
- BriefcaseIdValue: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BriefcaseIdValue"],
102455
- SyncMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["SyncMode"],
102456
- TypeOfChange: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["TypeOfChange"],
102457
- ChangesetType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ChangesetType"],
102458
- BisCodeSpec: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BisCodeSpec"],
102459
- CommonLoggerCategory: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["CommonLoggerCategory"],
102460
- QueryRowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["QueryRowFormat"],
102461
- MonochromeMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["MonochromeMode"],
102462
- ECSqlValueType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ECSqlValueType"],
102463
- ChangeOpCode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ChangeOpCode"],
102464
- ChangedValueState: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ChangedValueState"],
102465
- ECSqlSystemProperty: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ECSqlSystemProperty"],
102466
- SectionType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["SectionType"],
102467
- Rank: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["Rank"],
102468
- FeatureOverrideType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FeatureOverrideType"],
102469
- BatchType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BatchType"],
102470
- FontType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FontType"],
102471
- Npc: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["Npc"],
102472
- GeoCoordStatus: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeoCoordStatus"],
102473
- ElementGeometryOpcode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ElementGeometryOpcode"],
102474
- GeometryStreamFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometryStreamFlags"],
102475
- FillDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FillDisplay"],
102476
- BackgroundFill: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BackgroundFill"],
102477
- GeometryClass: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometryClass"],
102478
- GeometrySummaryVerbosity: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometrySummaryVerbosity"],
102479
- FillFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FillFlags"],
102480
- HSVConstants: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["HSVConstants"],
102481
- ImageBufferFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ImageBufferFormat"],
102482
- ImageSourceFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ImageSourceFormat"],
102483
- LinePixels: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["LinePixels"],
102484
- MassPropertiesOperation: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["MassPropertiesOperation"],
102485
- TextureMapUnits: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["TextureMapUnits"],
102486
- PlanarClipMaskMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["PlanarClipMaskMode"],
102487
- PlanarClipMaskPriority: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["PlanarClipMaskPriority"],
102488
- SkyBoxImageType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["SkyBoxImageType"],
102489
- SpatialClassifierInsideDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["SpatialClassifierInsideDisplay"],
102490
- SpatialClassifierOutsideDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["SpatialClassifierOutsideDisplay"],
102491
- TerrainHeightOriginMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["TerrainHeightOriginMode"],
102492
- ThematicGradientMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ThematicGradientMode"],
102493
- ThematicGradientColorScheme: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ThematicGradientColorScheme"],
102494
- ThematicDisplayMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ThematicDisplayMode"],
102495
- TxnAction: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["TxnAction"],
102496
- GridOrientationType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GridOrientationType"],
102497
- RenderMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["RenderMode"],
102498
- ColorByName: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ColorByName"],
102499
- ColorDef: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ColorDef"],
102729
+ ViewState3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState3d"],
102730
+ ViewStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewStatus"],
102731
+ ViewTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewTool"],
102732
+ ViewingSpace: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewingSpace"],
102733
+ canvasToImageBuffer: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["canvasToImageBuffer"],
102734
+ canvasToResizedCanvasWithBars: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["canvasToResizedCanvasWithBars"],
102735
+ connectViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["connectViewportFrusta"],
102736
+ connectViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["connectViewportViews"],
102737
+ connectViewports: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["connectViewports"],
102738
+ extractImageSourceDimensions: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["extractImageSourceDimensions"],
102739
+ getCompressedJpegFromCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["getCompressedJpegFromCanvas"],
102740
+ getImageSourceFormatForMimeType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["getImageSourceFormatForMimeType"],
102741
+ getImageSourceMimeType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["getImageSourceMimeType"],
102742
+ imageBufferToBase64EncodedPng: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToBase64EncodedPng"],
102743
+ imageBufferToCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToCanvas"],
102744
+ imageBufferToPngDataUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToPngDataUrl"],
102745
+ imageElementFromImageSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageElementFromImageSource"],
102746
+ imageElementFromUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageElementFromUrl"],
102747
+ queryTerrainElevationOffset: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["queryTerrainElevationOffset"],
102748
+ readElementGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["readElementGraphics"],
102749
+ synchronizeViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["synchronizeViewportFrusta"],
102750
+ synchronizeViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["synchronizeViewportViews"],
102500
102751
  };
102501
102752
  // END GENERATED CODE
102502
102753
  const getExtensionApi = (id) => {
@@ -102532,42 +102783,25 @@ __webpack_require__.r(__webpack_exports__);
102532
102783
  * See LICENSE.md in the project root for license terms and full copyright notice.
102533
102784
  *--------------------------------------------------------------------------------------------*/
102534
102785
  /**
102535
- * Executes an extension's bundled javascript module.
102536
- * First attempts an ES6 dynamic import,
102537
- * second attempts a dynamic import via a script element as a fallback.
102786
+ * Imports and executes a bundled javascript (esm) module.
102538
102787
  * Used by remote and service Extensions.
102539
- * Throws an error if the module does not have a default or main function to execute.
102788
+ * Throws an error if no function is found to execute.
102789
+ * Looks for a function in the following order:
102790
+ * - the module itself.
102791
+ * - the module's main export.
102792
+ * - the module's default export.
102540
102793
  * @internal
102541
102794
  */
102542
102795
  async function loadScript(jsUrl) {
102543
- // Warning "Critical dependency: the request of a dependency is an expression"
102544
- // until that is resolved, leave code commented:
102545
102796
  // const module = await import(/* webpackIgnore: true */jsUrl);
102546
- // return execute(module);
102547
- return new Promise((resolve, reject) => {
102548
- const head = document.getElementsByTagName("head")[0];
102549
- if (!head)
102550
- reject(new Error("No head element found"));
102551
- const scriptElement = document.createElement("script");
102552
- const tempGlobal = `__tempModuleLoadingVariable${Math.random().toString(32).substring(2)}`;
102553
- function cleanup() {
102554
- delete window[tempGlobal];
102555
- scriptElement.remove();
102556
- }
102557
- window[tempGlobal] = async function (module) {
102558
- await execute(module);
102559
- cleanup();
102560
- resolve(module);
102561
- };
102562
- scriptElement.type = "module";
102563
- scriptElement.textContent = `import * as m from "${jsUrl}";window.${tempGlobal}(m);`;
102564
- scriptElement.onerror = () => {
102565
- reject(new Error(`Failed to load extension with URL ${jsUrl}`));
102566
- cleanup();
102567
- };
102568
- head.insertBefore(scriptElement, head.lastChild);
102569
- });
102570
- }
102797
+ // Webpack gives a warning:
102798
+ // "Critical dependency: the request of a dependency is an expression"
102799
+ // Because tsc transpiles "await import" to "require" (when compiled to is CommonJS).
102800
+ // So use FunctionConstructor to avoid tsc.
102801
+ const module = await Function("x", "return import(x)")(jsUrl);
102802
+ return execute(module);
102803
+ }
102804
+ /** attempts to execute an extension module */
102571
102805
  function execute(m) {
102572
102806
  if (typeof m === "function")
102573
102807
  return m();
@@ -102575,7 +102809,7 @@ function execute(m) {
102575
102809
  return m.main();
102576
102810
  if (m.default && typeof m.default === "function")
102577
102811
  return m.default();
102578
- throw new Error(`Failed to load extension. No default function was found to execute.`);
102812
+ throw new Error(`Failed to execute extension. No default function was found to execute.`);
102579
102813
  }
102580
102814
 
102581
102815
 
@@ -102891,9 +103125,9 @@ class ServiceExtensionProvider {
102891
103125
  /** Fetches the extension from the ExtensionService.
102892
103126
  */
102893
103127
  async _getExtensionFiles(props) {
102894
- var _a;
103128
+ var _a, _b, _c;
102895
103129
  const extensionClient = new _ExtensionServiceClient__WEBPACK_IMPORTED_MODULE_3__["ExtensionClient"]();
102896
- const accessToken = await ((_a = _IModelApp__WEBPACK_IMPORTED_MODULE_1__["IModelApp"].authorizationClient) === null || _a === void 0 ? void 0 : _a.getAccessToken());
103130
+ const accessToken = await ((_b = (_a = props.getAccessToken) === null || _a === void 0 ? void 0 : _a.call(props)) !== null && _b !== void 0 ? _b : (_c = _IModelApp__WEBPACK_IMPORTED_MODULE_1__["IModelApp"].authorizationClient) === null || _c === void 0 ? void 0 : _c.getAccessToken());
102897
103131
  if (!accessToken)
102898
103132
  return undefined;
102899
103133
  let extensionProps;
@@ -109675,6 +109909,7 @@ class PrimitiveBuilder extends GeometryListBuilder {
109675
109909
  this.primitives = [];
109676
109910
  }
109677
109911
  finishGraphic(accum) {
109912
+ var _a;
109678
109913
  let meshes;
109679
109914
  let range;
109680
109915
  let featureTable;
@@ -109686,7 +109921,8 @@ class PrimitiveBuilder extends GeometryListBuilder {
109686
109921
  const tolerance = this.computeTolerance(accum);
109687
109922
  meshes = accum.saveToGraphicList(this.primitives, options, tolerance, this.pickable);
109688
109923
  if (undefined !== meshes) {
109689
- featureTable = meshes.features;
109924
+ if ((_a = meshes.features) === null || _a === void 0 ? void 0 : _a.anyDefined)
109925
+ featureTable = meshes.features;
109690
109926
  range = meshes.range;
109691
109927
  }
109692
109928
  }
@@ -127759,14 +127995,14 @@ class Target extends _RenderTarget__WEBPACK_IMPORTED_MODULE_8__["RenderTarget"]
127759
127995
  return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"](curSize.x * bestRatio, curSize.y * bestRatio);
127760
127996
  }
127761
127997
  /** wantRectIn is in CSS pixels. Output ImageBuffer will be in device pixels.
127762
- * If wantRect.right or wantRect.bottom is -1, that means "read the entire image".
127998
+ * If wantRect is null, that means "read the entire image".
127763
127999
  */
127764
128000
  readImage(wantRectIn, targetSizeIn, flipVertically) {
127765
128001
  if (!this.assignDC())
127766
128002
  return undefined;
127767
128003
  // Determine capture rect and validate
127768
128004
  const actualViewRect = this.renderRect; // already has device pixel ratio applied
127769
- const wantRect = (wantRectIn.right === -1 || wantRectIn.bottom === -1) ? actualViewRect : this.cssViewRectToDeviceViewRect(wantRectIn);
128005
+ const wantRect = wantRectIn.isNull ? actualViewRect : this.cssViewRectToDeviceViewRect(wantRectIn);
127770
128006
  const lowerRight = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"].create(wantRect.right - 1, wantRect.bottom - 1);
127771
128007
  if (!actualViewRect.containsPoint(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"].create(wantRect.left, wantRect.top)) || !actualViewRect.containsPoint(lowerRight))
127772
128008
  return undefined;
@@ -136061,8 +136297,11 @@ function baseColorFromTextures(textureCount, applyFeatureColor) {
136061
136297
  for (let i = 0; i < textureCount; i++)
136062
136298
  applyTextureStrings.push(`if (applyTexture(col, s_texture${i}, u_texParams${i}, u_texMatrix${i})) doDiscard = false; `);
136063
136299
  return `
136064
- if (!u_texturesPresent)
136065
- return u_baseColor;
136300
+ if (!u_texturesPresent) {
136301
+ vec4 col = u_baseColor;
136302
+ ${applyFeatureColor}
136303
+ return col;
136304
+ }
136066
136305
 
136067
136306
  bool doDiscard = true;
136068
136307
  vec4 col = u_baseColor;
@@ -145334,7 +145573,8 @@ class RealityTreeReference extends RealityModelTileTree.Reference {
145334
145573
  return div;
145335
145574
  }
145336
145575
  addLogoCards(cards) {
145337
- if (this._rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__["RealityDataProvider"].CesiumIonAsset) {
145576
+ if (this._rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__["RealityDataProvider"].CesiumIonAsset && !cards.dataset.openStreetMapLogoCard) {
145577
+ cards.dataset.openStreetMapLogoCard = "true";
145338
145578
  cards.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_4__["IModelApp"].makeLogoCard({ heading: "OpenStreetMap", notice: `&copy;<a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> ${_IModelApp__WEBPACK_IMPORTED_MODULE_4__["IModelApp"].localization.getLocalizedString("iModelJs:BackgroundMap:OpenStreetMapContributors")}` }));
145339
145579
  }
145340
145580
  }
@@ -150848,8 +151088,12 @@ class CesiumTerrainProvider extends _internal__WEBPACK_IMPORTED_MODULE_8__["Terr
150848
151088
  const mapTile = tile;
150849
151089
  return undefined !== this._metaDataAvailableLevel && mapTile.quadId.level === this._metaDataAvailableLevel && !mapTile.everLoaded;
150850
151090
  }
150851
- getLogo() {
150852
- return _IModelApp__WEBPACK_IMPORTED_MODULE_6__["IModelApp"].makeLogoCard({ iconSrc: `${_IModelApp__WEBPACK_IMPORTED_MODULE_6__["IModelApp"].publicPath}images/cesium-ion.svg`, heading: "Cesium Ion", notice: _IModelApp__WEBPACK_IMPORTED_MODULE_6__["IModelApp"].localization.getLocalizedString("iModelJs:BackgroundMap.CesiumWorldTerrainAttribution") });
151091
+ addLogoCards(cards) {
151092
+ if (cards.dataset.cesiumIonLogoCard)
151093
+ return;
151094
+ cards.dataset.cesiumIonLogoCard = "true";
151095
+ const card = _IModelApp__WEBPACK_IMPORTED_MODULE_6__["IModelApp"].makeLogoCard({ iconSrc: `${_IModelApp__WEBPACK_IMPORTED_MODULE_6__["IModelApp"].publicPath}images/cesium-ion.svg`, heading: "Cesium Ion", notice: _IModelApp__WEBPACK_IMPORTED_MODULE_6__["IModelApp"].localization.getLocalizedString("iModelJs:BackgroundMap.CesiumWorldTerrainAttribution") });
151096
+ cards.appendChild(card);
150853
151097
  }
150854
151098
  get maxDepth() { return this._maxDepth; }
150855
151099
  get tilingScheme() { return this._tilingScheme; }
@@ -151394,8 +151638,11 @@ class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_4
151394
151638
  }
151395
151639
  }
151396
151640
  }
151397
- getLogo() {
151398
- return _IModelApp__WEBPACK_IMPORTED_MODULE_2__["IModelApp"].makeLogoCard({ heading: "ArcGIS", notice: this._copyrightText });
151641
+ addLogoCards(cards) {
151642
+ if (!cards.dataset.arcGisLogoCard) {
151643
+ cards.dataset.arcGisLogoCard = "true";
151644
+ cards.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_2__["IModelApp"].makeLogoCard({ heading: "ArcGIS", notice: this._copyrightText }));
151645
+ }
151399
151646
  }
151400
151647
  // Translates the provided Cartographic into a EPSG:3857 point, and retrieve information.
151401
151648
  // tolerance is in pixels
@@ -151560,8 +151807,11 @@ class AzureMapsLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_1
151560
151807
  return "";
151561
151808
  return `${this._settings.url}&${this._settings.accessKey.key}=${this._settings.accessKey.value}&api-version=2.0&zoom=${zoom}&x=${x}&y=${y}`;
151562
151809
  }
151563
- getLogo() {
151564
- return _IModelApp__WEBPACK_IMPORTED_MODULE_0__["IModelApp"].makeLogoCard({ heading: "Azure Maps", notice: _IModelApp__WEBPACK_IMPORTED_MODULE_0__["IModelApp"].localization.getLocalizedString("iModelJs:BackgroundMap.AzureMapsCopyright") });
151810
+ addLogoCards(cards) {
151811
+ if (!cards.dataset.azureMapsLogoCard) {
151812
+ cards.dataset.azureMapsLogoCard = "true";
151813
+ cards.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_0__["IModelApp"].makeLogoCard({ heading: "Azure Maps", notice: _IModelApp__WEBPACK_IMPORTED_MODULE_0__["IModelApp"].localization.getLocalizedString("iModelJs:BackgroundMap.AzureMapsCopyright") }));
151814
+ }
151565
151815
  }
151566
151816
  }
151567
151817
 
@@ -151703,7 +151953,7 @@ class BingMapsImageryLayerProvider extends _internal__WEBPACK_IMPORTED_MODULE_3_
151703
151953
  }
151704
151954
  return matchingAttributions;
151705
151955
  }
151706
- getLogo(vp) {
151956
+ addLogoCards(cards, vp) {
151707
151957
  var _a;
151708
151958
  const tiles = (_a = _IModelApp__WEBPACK_IMPORTED_MODULE_2__["IModelApp"].tileAdmin.getTilesForUser(vp)) === null || _a === void 0 ? void 0 : _a.selected;
151709
151959
  const matchingAttributions = this.getMatchingAttributions(tiles);
@@ -151716,7 +151966,7 @@ class BingMapsImageryLayerProvider extends _internal__WEBPACK_IMPORTED_MODULE_3_
151716
151966
  copyrightMsg += "<br>";
151717
151967
  copyrightMsg += copyrights[i];
151718
151968
  }
151719
- return _IModelApp__WEBPACK_IMPORTED_MODULE_2__["IModelApp"].makeLogoCard({ iconSrc: `${_IModelApp__WEBPACK_IMPORTED_MODULE_2__["IModelApp"].publicPath}images/bing.svg`, heading: "Microsoft Bing", notice: copyrightMsg });
151969
+ cards.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_2__["IModelApp"].makeLogoCard({ iconSrc: `${_IModelApp__WEBPACK_IMPORTED_MODULE_2__["IModelApp"].publicPath}images/bing.svg`, heading: "Microsoft Bing", notice: copyrightMsg }));
151720
151970
  }
151721
151971
  // initializes the BingImageryProvider by reading the templateUrl, logo image, and attribution list.
151722
151972
  async initialize() {
@@ -151815,8 +152065,11 @@ class MapBoxLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_1__[
151815
152065
  url = url.concat(`?${this._settings.accessKey.key}=${this._settings.accessKey.value}`);
151816
152066
  return url;
151817
152067
  }
151818
- getLogo() {
151819
- return _IModelApp__WEBPACK_IMPORTED_MODULE_0__["IModelApp"].makeLogoCard({ heading: "Mapbox", notice: _IModelApp__WEBPACK_IMPORTED_MODULE_0__["IModelApp"].localization.getLocalizedString("iModelJs:BackgroundMap.MapBoxCopyright") });
152068
+ addLogoCards(cards) {
152069
+ if (!cards.dataset.mapboxLogoCard) {
152070
+ cards.dataset.mapboxLogoCard = "true";
152071
+ cards.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_0__["IModelApp"].makeLogoCard({ heading: "Mapbox", notice: _IModelApp__WEBPACK_IMPORTED_MODULE_0__["IModelApp"].localization.getLocalizedString("iModelJs:BackgroundMap.MapBoxCopyright") }));
152072
+ }
151820
152073
  }
151821
152074
  // no initialization needed for MapBoxImageryProvider.
151822
152075
  async initialize() { }
@@ -152361,7 +152614,9 @@ class ImageryMapTileTree extends _internal__WEBPACK_IMPORTED_MODULE_4__["Reality
152361
152614
  this._rootTile = new ImageryMapTile(params.rootTile, this, rootQuadId, this.getTileRectangle(rootQuadId));
152362
152615
  }
152363
152616
  get tilingScheme() { return this._imageryLoader.imageryProvider.tilingScheme; }
152364
- getLogo(vp) { return this._imageryLoader.getLogo(vp); }
152617
+ addLogoCards(cards, vp) {
152618
+ this._imageryLoader.addLogoCards(cards, vp);
152619
+ }
152365
152620
  getTileRectangle(quadId) {
152366
152621
  return this.tilingScheme.tileXYToRectangle(quadId.column, quadId.row, quadId.level);
152367
152622
  }
@@ -152394,7 +152649,9 @@ class ImageryTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_4__["RealityT
152394
152649
  get maxDepth() { return this._imageryProvider.maximumZoomLevel; }
152395
152650
  get minDepth() { return this._imageryProvider.minimumZoomLevel; }
152396
152651
  get priority() { return _internal__WEBPACK_IMPORTED_MODULE_4__["TileLoadPriority"].Map; }
152397
- getLogo(vp) { return this._imageryProvider.getLogo(vp); }
152652
+ addLogoCards(cards, vp) {
152653
+ this._imageryProvider.addLogoCards(cards, vp);
152654
+ }
152398
152655
  get maximumScreenSize() { return this._imageryProvider.maximumScreenSize; }
152399
152656
  get imageryProvider() { return this._imageryProvider; }
152400
152657
  async getToolTip(strings, quadId, carto, tree) { await this._imageryProvider.getToolTip(strings, quadId, carto, tree); }
@@ -152963,7 +153220,7 @@ class MapLayerImageryProvider {
152963
153220
  });
152964
153221
  }
152965
153222
  get tilingScheme() { return this.useGeographicTilingScheme ? this._geographicTilingScheme : this._mercatorTilingScheme; }
152966
- getLogo(_viewport) { return undefined; }
153223
+ addLogoCards(_cards, _viewport) { }
152967
153224
  get transparentBackgroundString() { return this._settings.transparentBackground ? "true" : "false"; }
152968
153225
  async _areChildrenAvailable(_tile) { return true; }
152969
153226
  getPotentialChildIds(tile) {
@@ -155135,15 +155392,13 @@ class MapTileTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_6__["TileT
155135
155392
  /** Add logo cards to logo div. */
155136
155393
  addLogoCards(cards, vp) {
155137
155394
  const tree = this.treeOwner.tileTree;
155138
- let logo;
155139
155395
  if (tree) {
155140
- if (undefined !== (logo = tree.mapLoader.terrainProvider.getLogo()))
155141
- cards.appendChild(logo);
155396
+ tree.mapLoader.terrainProvider.addLogoCards(cards, vp);
155142
155397
  for (const imageryTreeRef of this._layerTrees) {
155143
155398
  if (imageryTreeRef.layerSettings.visible) {
155144
155399
  const imageryTree = imageryTreeRef.treeOwner.tileTree;
155145
- if (imageryTree && (undefined !== (logo = imageryTree.getLogo(vp))))
155146
- cards.appendChild(logo);
155400
+ if (imageryTree instanceof _internal__WEBPACK_IMPORTED_MODULE_6__["ImageryMapTileTree"])
155401
+ imageryTree.addLogoCards(cards, vp);
155147
155402
  }
155148
155403
  }
155149
155404
  }
@@ -155631,7 +155886,7 @@ class TerrainMeshProvider {
155631
155886
  this._modelId = _modelId;
155632
155887
  }
155633
155888
  constructUrl(_row, _column, _zoomLevel) { Object(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["assert"])(false); return ""; }
155634
- getLogo() { return undefined; }
155889
+ addLogoCards(_cards, _vp) { }
155635
155890
  get requestOptions() { return { method: "GET", responseType: "arraybuffer" }; }
155636
155891
  async getMesh(_tile, _data) { return undefined; }
155637
155892
  forceTileLoad(_tile) { return false; }
@@ -169713,7 +169968,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
169713
169968
  /*! exports provided: name, version, description, main, module, typings, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
169714
169969
  /***/ (function(module) {
169715
169970
 
169716
- module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.2\",\"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\",\"build:ci\":\"npm run -s build && npm run -s build:esm\",\"build:cjs\":\"tsc 1>&2 --outDir lib/cjs\",\"build:esm\":\"tsc 1>&2 --module ES2020 --outDir lib/esm\",\"clean\":\"rimraf lib .rush/temp/package-deps*.json\",\"copy:public\":\"cpx \\\"./src/public/**/*\\\" ./lib/public\",\"docs\":\"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts\",\"extract-api\":\"betools extract-api --entry=core-frontend && npm run extract-extension-api\",\"extract-extension-api\":\"eslint --no-eslintrc -c \\\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\\" \\\"./src/**/*.ts\\\" 1>&2\",\"lint\":\"eslint -f visualstudio \\\"./src/**/*.ts\\\" 1>&2\",\"pseudolocalize\":\"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO\",\"test\":\"npm run -s webpackTests && certa -r chrome\",\"cover\":\"npm -s test\",\"test:debug\":\"certa -r chrome --debug\",\"webpackTests\":\"webpack --config ./src/test/utils/webpack.config.js 1>&2\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend\"},\"keywords\":[\"Bentley\",\"BIM\",\"iModel\",\"digital-twin\",\"iTwin\"],\"author\":{\"name\":\"Bentley Systems, Inc.\",\"url\":\"http://www.bentley.com\"},\"peerDependencies\":{\"@itwin/appui-abstract\":\"workspace:^3.3.0-dev.2\",\"@itwin/core-bentley\":\"workspace:^3.3.0-dev.2\",\"@itwin/core-common\":\"workspace:^3.3.0-dev.2\",\"@itwin/core-geometry\":\"workspace:^3.3.0-dev.2\",\"@itwin/core-orbitgt\":\"workspace:^3.3.0-dev.2\",\"@itwin/core-quantity\":\"workspace:^3.3.0-dev.2\",\"@itwin/webgl-compatibility\":\"workspace:^3.3.0-dev.2\"},\"//devDependencies\":[\"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install\",\"NOTE: All tools used by scripts in this package must be listed as devDependencies\"],\"devDependencies\":{\"@itwin/appui-abstract\":\"workspace:*\",\"@itwin/build-tools\":\"workspace:*\",\"@itwin/core-bentley\":\"workspace:*\",\"@itwin/core-common\":\"workspace:*\",\"@itwin/core-geometry\":\"workspace:*\",\"@itwin/core-orbitgt\":\"workspace:*\",\"@itwin/core-quantity\":\"workspace:*\",\"@itwin/certa\":\"workspace:*\",\"@itwin/eslint-plugin\":\"workspace:*\",\"@itwin/webgl-compatibility\":\"workspace:*\",\"@types/chai\":\"^4.1.4\",\"@types/chai-as-promised\":\"^7\",\"@types/deep-assign\":\"^0.1.0\",\"@types/lodash\":\"^4.14.0\",\"@types/mocha\":\"^8.2.2\",\"@types/node\":\"16.11.7\",\"@types/qs\":\"^6.5.0\",\"@types/semver\":\"^5.5.0\",\"@types/superagent\":\"^4.1.14\",\"@types/sinon\":\"^9.0.0\",\"chai\":\"^4.1.2\",\"chai-as-promised\":\"^7\",\"cpx2\":\"^3.0.0\",\"eslint\":\"^7.11.0\",\"glob\":\"^7.1.2\",\"mocha\":\"^8.3.2\",\"nyc\":\"^15.1.0\",\"rimraf\":\"^3.0.2\",\"sinon\":\"^9.0.2\",\"source-map-loader\":\"^1.0.0\",\"typescript\":\"~4.4.0\",\"webpack\":\"4.42.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/core-i18n\":\"workspace:*\",\"@itwin/core-telemetry\":\"workspace:*\",\"@loaders.gl/core\":\"^3.1.6\",\"@loaders.gl/draco\":\"^3.1.6\",\"deep-assign\":\"^2.0.0\",\"fuse.js\":\"^3.3.0\",\"lodash\":\"^4.17.10\",\"qs\":\"^6.5.1\",\"semver\":\"^5.5.0\",\"superagent\":\"^7.0.1\",\"wms-capabilities\":\"0.4.0\",\"xml-js\":\"~1.6.11\"},\"nyc\":{\"extends\":\"./node_modules/@itwin/build-tools/.nycrc\"},\"eslintConfig\":{\"plugins\":[\"@itwin\"],\"extends\":\"plugin:@itwin/itwinjs-recommended\",\"rules\":{\"@itwin/no-internal-barrel-imports\":[\"error\",{\"required-barrel-modules\":[\"./src/tile/internal.ts\"]}],\"@itwin/public-extension-exports\":[\"error\",{\"releaseTags\":[\"public\",\"preview\"],\"outputApiFile\":false}]},\"overrides\":[{\"files\":[\"*.test.ts\",\"*.test.tsx\",\"**/test/**/*.ts\"],\"rules\":{\"@itwin/no-internal-barrel-imports\":\"off\"}}]}}");
169971
+ module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.22\",\"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\",\"build:ci\":\"npm run -s build && npm run -s build:esm\",\"build:cjs\":\"tsc 1>&2 --outDir lib/cjs\",\"build:esm\":\"tsc 1>&2 --module ES2020 --outDir lib/esm\",\"clean\":\"rimraf lib .rush/temp/package-deps*.json\",\"copy:public\":\"cpx \\\"./src/public/**/*\\\" ./lib/public\",\"docs\":\"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts\",\"extract-api\":\"betools extract-api --entry=core-frontend && npm run extract-extension-api\",\"extract-extension-api\":\"eslint --no-eslintrc -c \\\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\\" \\\"./src/**/*.ts\\\" 1>&2\",\"lint\":\"eslint -f visualstudio \\\"./src/**/*.ts\\\" 1>&2\",\"pseudolocalize\":\"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO\",\"test\":\"npm run -s webpackTests && certa -r chrome\",\"cover\":\"npm -s test\",\"test:debug\":\"certa -r chrome --debug\",\"webpackTests\":\"webpack --config ./src/test/utils/webpack.config.js 1>&2\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend\"},\"keywords\":[\"Bentley\",\"BIM\",\"iModel\",\"digital-twin\",\"iTwin\"],\"author\":{\"name\":\"Bentley Systems, Inc.\",\"url\":\"http://www.bentley.com\"},\"peerDependencies\":{\"@itwin/appui-abstract\":\"workspace:^3.3.0-dev.22\",\"@itwin/core-bentley\":\"workspace:^3.3.0-dev.22\",\"@itwin/core-common\":\"workspace:^3.3.0-dev.22\",\"@itwin/core-geometry\":\"workspace:^3.3.0-dev.22\",\"@itwin/core-orbitgt\":\"workspace:^3.3.0-dev.22\",\"@itwin/core-quantity\":\"workspace:^3.3.0-dev.22\",\"@itwin/webgl-compatibility\":\"workspace:^3.3.0-dev.22\"},\"//devDependencies\":[\"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install\",\"NOTE: All tools used by scripts in this package must be listed as devDependencies\"],\"devDependencies\":{\"@itwin/appui-abstract\":\"workspace:*\",\"@itwin/build-tools\":\"workspace:*\",\"@itwin/core-bentley\":\"workspace:*\",\"@itwin/core-common\":\"workspace:*\",\"@itwin/core-geometry\":\"workspace:*\",\"@itwin/core-orbitgt\":\"workspace:*\",\"@itwin/core-quantity\":\"workspace:*\",\"@itwin/certa\":\"workspace:*\",\"@itwin/eslint-plugin\":\"workspace:*\",\"@itwin/webgl-compatibility\":\"workspace:*\",\"@types/chai\":\"^4.1.4\",\"@types/chai-as-promised\":\"^7\",\"@types/deep-assign\":\"^0.1.0\",\"@types/lodash\":\"^4.14.0\",\"@types/mocha\":\"^8.2.2\",\"@types/node\":\"16.11.7\",\"@types/qs\":\"^6.5.0\",\"@types/semver\":\"^5.5.0\",\"@types/superagent\":\"^4.1.14\",\"@types/sinon\":\"^9.0.0\",\"chai\":\"^4.1.2\",\"chai-as-promised\":\"^7\",\"cpx2\":\"^3.0.0\",\"eslint\":\"^7.11.0\",\"glob\":\"^7.1.2\",\"mocha\":\"^10.0.0\",\"nyc\":\"^15.1.0\",\"rimraf\":\"^3.0.2\",\"sinon\":\"^9.0.2\",\"source-map-loader\":\"^1.0.0\",\"typescript\":\"~4.4.0\",\"webpack\":\"4.42.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/core-i18n\":\"workspace:*\",\"@itwin/core-telemetry\":\"workspace:*\",\"@loaders.gl/core\":\"^3.1.6\",\"@loaders.gl/draco\":\"^3.1.6\",\"deep-assign\":\"^2.0.0\",\"fuse.js\":\"^3.3.0\",\"lodash\":\"^4.17.10\",\"qs\":\"^6.5.1\",\"semver\":\"^5.5.0\",\"superagent\":\"^7.0.1\",\"wms-capabilities\":\"0.4.0\",\"xml-js\":\"~1.6.11\"},\"nyc\":{\"extends\":\"./node_modules/@itwin/build-tools/.nycrc\"},\"eslintConfig\":{\"plugins\":[\"@itwin\"],\"extends\":\"plugin:@itwin/itwinjs-recommended\",\"rules\":{\"@itwin/no-internal-barrel-imports\":[\"error\",{\"required-barrel-modules\":[\"./src/tile/internal.ts\"]}],\"@itwin/public-extension-exports\":[\"error\",{\"releaseTags\":[\"public\",\"preview\"],\"outputApiFile\":false}]},\"overrides\":[{\"files\":[\"*.test.ts\",\"*.test.tsx\",\"**/test/**/*.ts\"],\"rules\":{\"@itwin/no-internal-barrel-imports\":\"off\"}}]}}");
169717
169972
 
169718
169973
  /***/ }),
169719
169974
 
@@ -267905,6 +268160,7 @@ const buggyIntelMatchers = [
267905
268160
  // Regexes to match Mali GPUs known to suffer from GraphicsDriverBugs.msaaWillHang.
267906
268161
  const buggyMaliMatchers = [
267907
268162
  /Mali-G71/,
268163
+ /Mali-G72/,
267908
268164
  /Mali-G76/,
267909
268165
  ];
267910
268166
  // Regexes to match as many Intel integrated GPUs as possible.
@@ -268094,7 +268350,8 @@ class Capabilities {
268094
268350
  && !_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["ProcessDetector"].isIOSBrowser
268095
268351
  // Samsung Galaxy Note 8 exhibits same issue as described above for iOS >= 15.
268096
268352
  // It uses specifically Mali-G71 MP20 but reports its renderer as follows.
268097
- && unmaskedRenderer !== "Mali-G71";
268353
+ // Samsung Galaxy A50 and S9 exhibits same issue; they use Mali-G72.
268354
+ && unmaskedRenderer !== "Mali-G71" && unmaskedRenderer !== "Mali-G72";
268098
268355
  if (allowFloatRender && undefined !== this.queryExtensionObject("EXT_float_blend") && this.isTextureRenderable(gl, gl.FLOAT)) {
268099
268356
  this._maxRenderType = RenderType.TextureFloat;
268100
268357
  }
@@ -283163,7 +283420,7 @@ class TestContext {
283163
283420
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
283164
283421
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
283165
283422
  await core_frontend_1.NoRenderApp.startup({
283166
- applicationVersion: "3.3.0-dev.2",
283423
+ applicationVersion: "3.3.0-dev.22",
283167
283424
  applicationId: this.settings.gprid,
283168
283425
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
283169
283426
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),