@itwin/ecschema-rpcinterface-tests 4.10.0-dev.32 → 4.10.0-dev.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/backend/BackendInit.js +2 -2
- package/lib/backend/BackendInit.js.map +1 -1
- package/lib/common/Settings.js +3 -3
- package/lib/common/Settings.js.map +1 -1
- package/lib/dist/_bea9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +315 -293
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_1_6_node_modules_loaders_gl_draco_di-0642a6.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_meshoptimizer_0_20_0_node_modules_meshoptimizer_index_m-a5ae61.bundled-tests.js.map +1 -1
- package/lib/frontend/setup/TestContext.js.map +1 -1
- package/package.json +18 -18
|
@@ -20925,7 +20925,6 @@ var DbOpcode;
|
|
|
20925
20925
|
/** Values for return codes from BeSQLite functions. Consult SQLite documentation for further explanations.
|
|
20926
20926
|
* @public
|
|
20927
20927
|
*/
|
|
20928
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
20929
20928
|
// Disabling for the rest of the file since eslint does not correctly parse the entire enum, only parts of it
|
|
20930
20929
|
var DbResult;
|
|
20931
20930
|
(function (DbResult) {
|
|
@@ -21076,7 +21075,6 @@ var DbResult;
|
|
|
21076
21075
|
DbResult[DbResult["BE_SQLITE_CONSTRAINT_UNIQUE"] = 2067] = "BE_SQLITE_CONSTRAINT_UNIQUE";
|
|
21077
21076
|
DbResult[DbResult["BE_SQLITE_CONSTRAINT_VTAB"] = 2323] = "BE_SQLITE_CONSTRAINT_VTAB";
|
|
21078
21077
|
})(DbResult || (DbResult = {}));
|
|
21079
|
-
/* eslint-enable @typescript-eslint/naming-convention */
|
|
21080
21078
|
|
|
21081
21079
|
|
|
21082
21080
|
/***/ }),
|
|
@@ -21862,14 +21860,14 @@ class ByteStream {
|
|
|
21862
21860
|
*/
|
|
21863
21861
|
static fromUint8Array(bytes) {
|
|
21864
21862
|
const { byteOffset, byteLength } = bytes;
|
|
21865
|
-
return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line
|
|
21863
|
+
return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line @typescript-eslint/no-deprecated
|
|
21866
21864
|
}
|
|
21867
21865
|
/** Construct a new ByteStream with the read position set to the beginning.
|
|
21868
21866
|
* @param buffer The underlying buffer from which data is to be extracted.
|
|
21869
21867
|
* @param subView If defined, specifies the subset of the underlying buffer's data to use.
|
|
21870
21868
|
*/
|
|
21871
21869
|
static fromArrayBuffer(buffer, subView) {
|
|
21872
|
-
return new ByteStream(buffer, subView); // eslint-disable-line
|
|
21870
|
+
return new ByteStream(buffer, subView); // eslint-disable-line @typescript-eslint/no-deprecated
|
|
21873
21871
|
}
|
|
21874
21872
|
/** The number of bytes in this stream */
|
|
21875
21873
|
get length() {
|
|
@@ -22789,7 +22787,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22789
22787
|
* @public
|
|
22790
22788
|
*/
|
|
22791
22789
|
function isIDisposable(obj) {
|
|
22792
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
22793
22790
|
return !!obj && (obj instanceof Object) && !!obj.dispose && (typeof obj.dispose === "function");
|
|
22794
22791
|
}
|
|
22795
22792
|
/** Convenience function for disposing of a disposable object that may be undefined.
|
|
@@ -25249,7 +25246,7 @@ class ProcessDetector {
|
|
|
25249
25246
|
* @note This method will return `true` for any frontend running on an iPad, whether it is a user-launched web browser (e.g. Safari) or the frontend of a mobile app.
|
|
25250
25247
|
*/
|
|
25251
25248
|
static get isIPadBrowser() {
|
|
25252
|
-
return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line
|
|
25249
|
+
return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line @typescript-eslint/no-deprecated */
|
|
25253
25250
|
}
|
|
25254
25251
|
/** Is this process running in a browser on an iPhone?
|
|
25255
25252
|
* @note This method will return `true` for any frontend running on an iPhone, whether it is a user-launched web browser (e.g. Safari) or the frontend of a mobile app.
|
|
@@ -26137,7 +26134,7 @@ function utf8ToString(utf8) {
|
|
|
26137
26134
|
* @public
|
|
26138
26135
|
*/
|
|
26139
26136
|
function base64StringToUint8Array(base64) {
|
|
26140
|
-
return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0)));
|
|
26137
|
+
return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0)));
|
|
26141
26138
|
}
|
|
26142
26139
|
|
|
26143
26140
|
|
|
@@ -26387,7 +26384,7 @@ function* getFlatEntries(obj, path = "") {
|
|
|
26387
26384
|
function flattenObject(obj) {
|
|
26388
26385
|
return Object.fromEntries(getFlatEntries(obj));
|
|
26389
26386
|
}
|
|
26390
|
-
/* eslint-disable
|
|
26387
|
+
/* eslint-disable @typescript-eslint/no-deprecated -- lots of self-references here... */
|
|
26391
26388
|
/**
|
|
26392
26389
|
* Enables OpenTelemetry tracing in addition to traditional logging.
|
|
26393
26390
|
* @public
|
|
@@ -26459,7 +26456,7 @@ class Tracing {
|
|
|
26459
26456
|
loggerCategory: category,
|
|
26460
26457
|
});
|
|
26461
26458
|
}
|
|
26462
|
-
catch
|
|
26459
|
+
catch { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work
|
|
26463
26460
|
const spanContext = Tracing._openTelemetry.trace.getSpan(oTelContext)?.spanContext();
|
|
26464
26461
|
base(category, message, {
|
|
26465
26462
|
...serializedMetadata,
|
|
@@ -26479,7 +26476,7 @@ class Tracing {
|
|
|
26479
26476
|
Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.setAttributes(attributes);
|
|
26480
26477
|
}
|
|
26481
26478
|
}
|
|
26482
|
-
/* eslint-enable
|
|
26479
|
+
/* eslint-enable @typescript-eslint/no-deprecated */
|
|
26483
26480
|
|
|
26484
26481
|
|
|
26485
26482
|
/***/ }),
|
|
@@ -26863,7 +26860,7 @@ class UnexpectedErrors {
|
|
|
26863
26860
|
try {
|
|
26864
26861
|
telemetry(error);
|
|
26865
26862
|
}
|
|
26866
|
-
catch
|
|
26863
|
+
catch {
|
|
26867
26864
|
// ignore errors from telemetry trackers
|
|
26868
26865
|
}
|
|
26869
26866
|
});
|
|
@@ -27944,7 +27941,7 @@ class BackgroundMapProvider {
|
|
|
27944
27941
|
}
|
|
27945
27942
|
/** @internal */
|
|
27946
27943
|
static fromBackgroundMapProps(props) {
|
|
27947
|
-
// eslint-disable-next-line
|
|
27944
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
27948
27945
|
return this.fromJSON({ name: props.providerName, type: props.providerData?.mapType });
|
|
27949
27946
|
}
|
|
27950
27947
|
/** Return true if this provider is equivalent to `other`. */
|
|
@@ -28088,9 +28085,9 @@ class BackgroundMapSettings {
|
|
|
28088
28085
|
const props = this.toJSON();
|
|
28089
28086
|
// Preserve deprecated imagery provider properties.
|
|
28090
28087
|
if ("BingProvider" !== this._provider.name)
|
|
28091
|
-
props.providerName = this._provider.name; // eslint-disable-line
|
|
28088
|
+
props.providerName = this._provider.name; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
28092
28089
|
if (_BackgroundMapProvider__WEBPACK_IMPORTED_MODULE_0__.BackgroundMapType.Hybrid !== this._provider.type)
|
|
28093
|
-
props.providerData = { mapType: this._provider.type }; // eslint-disable-line
|
|
28090
|
+
props.providerData = { mapType: this._provider.type }; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
28094
28091
|
return props;
|
|
28095
28092
|
}
|
|
28096
28093
|
/** Returns true if these settings are equivalent to the supplied JSON settings. */
|
|
@@ -29360,7 +29357,6 @@ class ColorDef {
|
|
|
29360
29357
|
}
|
|
29361
29358
|
break;
|
|
29362
29359
|
}
|
|
29363
|
-
// eslint-disable-next-line no-cond-assign
|
|
29364
29360
|
}
|
|
29365
29361
|
else if (m = /^\#([a-f0-9]+)$/.exec(val)) { // hex color
|
|
29366
29362
|
const hex = m[1];
|
|
@@ -29670,7 +29666,6 @@ class ColorDef {
|
|
|
29670
29666
|
const v = 0xff & Math.floor(dvalue * 255 + 0.5);
|
|
29671
29667
|
let r = 0, b = 0, g = 0;
|
|
29672
29668
|
switch (hueIntpart) {
|
|
29673
|
-
/* eslint-disable max-statements-per-line */
|
|
29674
29669
|
case 0:
|
|
29675
29670
|
r = v;
|
|
29676
29671
|
g = t;
|
|
@@ -29696,7 +29691,6 @@ class ColorDef {
|
|
|
29696
29691
|
r = v, g = p;
|
|
29697
29692
|
b = q;
|
|
29698
29693
|
break; // magenta-ish
|
|
29699
|
-
/* eslint-enable max-statements-per-line */
|
|
29700
29694
|
}
|
|
29701
29695
|
return ColorDef.from(r, g, b, transparency);
|
|
29702
29696
|
}
|
|
@@ -32867,7 +32861,7 @@ function readElementMeshes(data) {
|
|
|
32867
32861
|
if (geom instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.IndexedPolyface)
|
|
32868
32862
|
polyfaces.push(geom);
|
|
32869
32863
|
}
|
|
32870
|
-
catch
|
|
32864
|
+
catch {
|
|
32871
32865
|
//
|
|
32872
32866
|
}
|
|
32873
32867
|
}
|
|
@@ -37750,7 +37744,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37750
37744
|
/* harmony export */ });
|
|
37751
37745
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
37752
37746
|
/* harmony import */ var _BackgroundMapProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BackgroundMapProvider */ "../../core/common/lib/esm/BackgroundMapProvider.js");
|
|
37753
|
-
/* eslint-disable deprecation/deprecation */
|
|
37754
37747
|
/*---------------------------------------------------------------------------------------------
|
|
37755
37748
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
37756
37749
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -40130,9 +40123,9 @@ class RenderMaterial {
|
|
|
40130
40123
|
this._alpha = undefined !== alpha ? clampToNormalizedRange(alpha) : undefined;
|
|
40131
40124
|
}
|
|
40132
40125
|
/** Create a RenderMaterial params object using specified key and ColorDef values, as well as an optional texture mapping. */
|
|
40133
|
-
// eslint-disable-next-line
|
|
40126
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
40134
40127
|
static fromColors(key, diffuseColor, specularColor, emissiveColor, reflectColor, textureMap) {
|
|
40135
|
-
// eslint-disable-next-line
|
|
40128
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
40136
40129
|
const materialParams = new Params();
|
|
40137
40130
|
materialParams.key = key;
|
|
40138
40131
|
materialParams.diffuseColor = diffuseColor;
|
|
@@ -40144,11 +40137,11 @@ class RenderMaterial {
|
|
|
40144
40137
|
}
|
|
40145
40138
|
}
|
|
40146
40139
|
/** Obtain an immutable instance of a RenderMaterial with all default properties. */
|
|
40147
|
-
// eslint-disable-next-line
|
|
40140
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
40148
40141
|
Params.defaults = new Params();
|
|
40149
40142
|
RenderMaterial.Params = Params;
|
|
40150
40143
|
})(RenderMaterial || (RenderMaterial = {}));
|
|
40151
|
-
// eslint-disable-next-line
|
|
40144
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
40152
40145
|
Object.freeze(RenderMaterial.Params.defaults);
|
|
40153
40146
|
|
|
40154
40147
|
|
|
@@ -41531,7 +41524,7 @@ async function handleNotFound(request, status, dispatch) {
|
|
|
41531
41524
|
resolve(response);
|
|
41532
41525
|
}
|
|
41533
41526
|
catch (err) {
|
|
41534
|
-
reject(err);
|
|
41527
|
+
reject(err); // eslint-disable-line @typescript-eslint/prefer-promise-reject-errors
|
|
41535
41528
|
}
|
|
41536
41529
|
}, reject);
|
|
41537
41530
|
});
|
|
@@ -43647,7 +43640,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
43647
43640
|
*/
|
|
43648
43641
|
// cSpell:ignore tweens yoyo catmull
|
|
43649
43642
|
/* eslint-disable guard-for-in */
|
|
43650
|
-
/* eslint-disable @typescript-eslint/prefer-for-of */
|
|
43651
43643
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
43652
43644
|
/** A group of `Tween`s. This class is called `Group` in the tween.js library.
|
|
43653
43645
|
* @note Unlike tween.js, we do NOT create any global instances of this class
|
|
@@ -55543,40 +55535,40 @@ IModelReadRpcInterface.interfaceName = "IModelReadRpcInterface";
|
|
|
55543
55535
|
/** The semantic version of the interface. */
|
|
55544
55536
|
IModelReadRpcInterface.interfaceVersion = "3.7.0";
|
|
55545
55537
|
__decorate([
|
|
55546
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55538
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55547
55539
|
], IModelReadRpcInterface.prototype, "getConnectionProps", null);
|
|
55548
55540
|
__decorate([
|
|
55549
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55541
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55550
55542
|
], IModelReadRpcInterface.prototype, "querySubCategories", null);
|
|
55551
55543
|
__decorate([
|
|
55552
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55544
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55553
55545
|
], IModelReadRpcInterface.prototype, "queryAllUsedSpatialSubCategories", null);
|
|
55554
55546
|
__decorate([
|
|
55555
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55547
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55556
55548
|
], IModelReadRpcInterface.prototype, "getModelProps", null);
|
|
55557
55549
|
__decorate([
|
|
55558
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55550
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55559
55551
|
], IModelReadRpcInterface.prototype, "queryModelRanges", null);
|
|
55560
55552
|
__decorate([
|
|
55561
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55553
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55562
55554
|
], IModelReadRpcInterface.prototype, "queryModelExtents", null);
|
|
55563
55555
|
__decorate([
|
|
55564
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55556
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55565
55557
|
], IModelReadRpcInterface.prototype, "getClassHierarchy", null);
|
|
55566
55558
|
__decorate([
|
|
55567
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55559
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55568
55560
|
], IModelReadRpcInterface.prototype, "getViewStateData", null);
|
|
55569
55561
|
__decorate([
|
|
55570
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55562
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55571
55563
|
], IModelReadRpcInterface.prototype, "getDefaultViewId", null);
|
|
55572
55564
|
__decorate([
|
|
55573
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55565
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55574
55566
|
], IModelReadRpcInterface.prototype, "getCustomViewState3dData", null);
|
|
55575
55567
|
__decorate([
|
|
55576
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55568
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55577
55569
|
], IModelReadRpcInterface.prototype, "hydrateViewState", null);
|
|
55578
55570
|
__decorate([
|
|
55579
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55571
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
|
|
55580
55572
|
], IModelReadRpcInterface.prototype, "getGeoCoordinatesFromIModelCoordinates", null);
|
|
55581
55573
|
|
|
55582
55574
|
|
|
@@ -55670,7 +55662,7 @@ IModelTileRpcInterface.interfaceName = "IModelTileRpcInterface";
|
|
|
55670
55662
|
/** The semantic version of the interface. */
|
|
55671
55663
|
IModelTileRpcInterface.interfaceVersion = "3.2.0";
|
|
55672
55664
|
__decorate([
|
|
55673
|
-
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
|
|
55665
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
|
|
55674
55666
|
], IModelTileRpcInterface.prototype, "requestTileTreeProps", null);
|
|
55675
55667
|
|
|
55676
55668
|
|
|
@@ -55761,7 +55753,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55761
55753
|
* @module RpcInterface
|
|
55762
55754
|
*/
|
|
55763
55755
|
|
|
55764
|
-
/* eslint-disable deprecation/deprecation */
|
|
55765
55756
|
/** An RpcManager that uses RpcDefaultConfiguration/RpcDirectProtocol to make client stubs invoke
|
|
55766
55757
|
* registered server impls as direct method calls within the same JavaScript context. In other words,
|
|
55767
55758
|
* TestRpcManager sets up a protocol that uses our remoting mechanism but cuts out the communication
|
|
@@ -55826,7 +55817,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55826
55817
|
*/
|
|
55827
55818
|
class WipRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__.RpcInterface {
|
|
55828
55819
|
/** Returns the IModelReadRpcInterface instance for the frontend. */
|
|
55829
|
-
static getClient() { return _RpcManager__WEBPACK_IMPORTED_MODULE_1__.RpcManager.getClientForInterface(WipRpcInterface); } // eslint-disable-line
|
|
55820
|
+
static getClient() { return _RpcManager__WEBPACK_IMPORTED_MODULE_1__.RpcManager.getClientForInterface(WipRpcInterface); } // eslint-disable-line @typescript-eslint/no-deprecated
|
|
55830
55821
|
/*===========================================================================================
|
|
55831
55822
|
NOTE: Any add/remove/change to the methods below requires an update of the interface version.
|
|
55832
55823
|
NOTE: Please consult the README in this folder for the semantic versioning rules.
|
|
@@ -56041,7 +56032,7 @@ class RpcDirectRequest extends _RpcRequest__WEBPACK_IMPORTED_MODULE_4__.RpcReque
|
|
|
56041
56032
|
resolve(this.fulfillment.status);
|
|
56042
56033
|
}
|
|
56043
56034
|
catch (err) {
|
|
56044
|
-
reject(err);
|
|
56035
|
+
reject(err); // eslint-disable-line @typescript-eslint/prefer-promise-reject-errors
|
|
56045
56036
|
}
|
|
56046
56037
|
});
|
|
56047
56038
|
}
|
|
@@ -56080,7 +56071,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56080
56071
|
/** @packageDocumentation
|
|
56081
56072
|
* @module RpcInterface
|
|
56082
56073
|
*/
|
|
56083
|
-
/* eslint-disable
|
|
56074
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
56084
56075
|
/** Describes available options for RPC response caching.
|
|
56085
56076
|
* @public
|
|
56086
56077
|
*/
|
|
@@ -56220,7 +56211,6 @@ var __setFunctionName = (undefined && undefined.__setFunctionName) || function (
|
|
|
56220
56211
|
|
|
56221
56212
|
|
|
56222
56213
|
|
|
56223
|
-
/* eslint-disable deprecation/deprecation */
|
|
56224
56214
|
/** An RPC operation control response.
|
|
56225
56215
|
* @public
|
|
56226
56216
|
*/
|
|
@@ -56588,7 +56578,7 @@ class RpcInvocation {
|
|
|
56588
56578
|
impl[_RpcRegistry__WEBPACK_IMPORTED_MODULE_10__.CURRENT_INVOCATION] = undefined;
|
|
56589
56579
|
}
|
|
56590
56580
|
}
|
|
56591
|
-
catch
|
|
56581
|
+
catch { }
|
|
56592
56582
|
return fulfillment;
|
|
56593
56583
|
}
|
|
56594
56584
|
lookupOperationFunction(implementation) {
|
|
@@ -56652,7 +56642,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56652
56642
|
*/
|
|
56653
56643
|
|
|
56654
56644
|
// cspell:ignore unmarshal
|
|
56655
|
-
/* eslint-disable
|
|
56645
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
56656
56646
|
function isBuffer(val) {
|
|
56657
56647
|
return val && typeof (val.constructor) !== "undefined" && typeof (val.constructor.isBuffer) === "function" && val.constructor.isBuffer(val);
|
|
56658
56648
|
}
|
|
@@ -56825,7 +56815,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56825
56815
|
|
|
56826
56816
|
|
|
56827
56817
|
|
|
56828
|
-
/* eslint-disable deprecation/deprecation */
|
|
56829
56818
|
/** The policy for an RPC operation.
|
|
56830
56819
|
* @internal
|
|
56831
56820
|
*/
|
|
@@ -56969,7 +56958,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56969
56958
|
*/
|
|
56970
56959
|
|
|
56971
56960
|
|
|
56972
|
-
/* eslint-disable
|
|
56961
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
56973
56962
|
/** Manages pending RPC requests and responses.
|
|
56974
56963
|
* @internal
|
|
56975
56964
|
*/
|
|
@@ -57381,7 +57370,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
57381
57370
|
|
|
57382
57371
|
|
|
57383
57372
|
|
|
57384
|
-
/* eslint-disable deprecation/deprecation */
|
|
57385
57373
|
/** @internal */
|
|
57386
57374
|
const REGISTRY = Symbol.for("@itwin/core-common/RpcRegistry");
|
|
57387
57375
|
/** @internal */
|
|
@@ -57524,7 +57512,6 @@ class RpcRegistry {
|
|
|
57524
57512
|
}
|
|
57525
57513
|
interceptOperation(proxy, operation) {
|
|
57526
57514
|
const clientFunction = proxy[operation];
|
|
57527
|
-
// eslint-disable-next-line prefer-arrow/prefer-arrow-functions
|
|
57528
57515
|
proxy[operation] = function () {
|
|
57529
57516
|
const args = Array.from(arguments);
|
|
57530
57517
|
args.push(operation);
|
|
@@ -57602,7 +57589,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
57602
57589
|
|
|
57603
57590
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
57604
57591
|
// cspell:ignore csrf
|
|
57605
|
-
/* eslint-disable
|
|
57592
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
57606
57593
|
/** @internal */
|
|
57607
57594
|
const aggregateLoad = { lastRequest: 0, lastResponse: 0 };
|
|
57608
57595
|
/** @internal */
|
|
@@ -57631,7 +57618,6 @@ class Cancellable {
|
|
|
57631
57618
|
cancel() { }
|
|
57632
57619
|
constructor(task) {
|
|
57633
57620
|
this.promise = new Promise((resolve, reject) => {
|
|
57634
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
57635
57621
|
this.cancel = () => resolve(undefined);
|
|
57636
57622
|
task.then(resolve, reject);
|
|
57637
57623
|
});
|
|
@@ -58095,7 +58081,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
58095
58081
|
/** @packageDocumentation
|
|
58096
58082
|
* @module RpcInterface
|
|
58097
58083
|
*/
|
|
58098
|
-
/* eslint-disable deprecation/deprecation */
|
|
58099
58084
|
/** @beta */
|
|
58100
58085
|
class RpcRoutingToken {
|
|
58101
58086
|
static generate(debugLabel = "") {
|
|
@@ -58142,7 +58127,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
58142
58127
|
|
|
58143
58128
|
|
|
58144
58129
|
|
|
58145
|
-
/* eslint-disable
|
|
58130
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
58146
58131
|
class SessionConfiguration extends _RpcConfiguration__WEBPACK_IMPORTED_MODULE_0__.RpcConfiguration {
|
|
58147
58132
|
constructor() {
|
|
58148
58133
|
super(...arguments);
|
|
@@ -58310,7 +58295,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
58310
58295
|
|
|
58311
58296
|
|
|
58312
58297
|
|
|
58313
|
-
/* eslint-disable deprecation/deprecation */
|
|
58314
58298
|
var AppMode;
|
|
58315
58299
|
(function (AppMode) {
|
|
58316
58300
|
AppMode["MilestoneReview"] = "1";
|
|
@@ -58604,7 +58588,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
58604
58588
|
|
|
58605
58589
|
|
|
58606
58590
|
|
|
58607
|
-
/* eslint-disable
|
|
58591
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
58608
58592
|
/** @internal */
|
|
58609
58593
|
const BACKEND = Symbol.for("@itwin.WebAppRpcLogging.Backend");
|
|
58610
58594
|
const FRONTEND = Symbol.for("@itwin.WebAppRpcLogging.Frontend");
|
|
@@ -59088,7 +59072,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_4__.Rpc
|
|
|
59088
59072
|
}
|
|
59089
59073
|
setupTextTransport(parameters) {
|
|
59090
59074
|
if (this.operation.policy.allowResponseCaching(this)) {
|
|
59091
|
-
const encodedBody = btoa(parameters.objects);
|
|
59075
|
+
const encodedBody = btoa(parameters.objects);
|
|
59092
59076
|
if (encodedBody.length <= _a.maxUrlComponentSize) {
|
|
59093
59077
|
this._request.method = "get";
|
|
59094
59078
|
this._request.body = undefined;
|
|
@@ -59170,7 +59154,6 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
59170
59154
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
59171
59155
|
*/
|
|
59172
59156
|
|
|
59173
|
-
/* eslint-disable deprecation/deprecation */
|
|
59174
59157
|
const START = 0;
|
|
59175
59158
|
const START_BOUNDARY = 1;
|
|
59176
59159
|
const HEADER_FIELD_START = 2;
|
|
@@ -60225,7 +60208,7 @@ class Parser {
|
|
|
60225
60208
|
try {
|
|
60226
60209
|
parsedContentId = ContentIdProvider.create(true, options).specFromId(contentId);
|
|
60227
60210
|
}
|
|
60228
|
-
catch
|
|
60211
|
+
catch {
|
|
60229
60212
|
this.reject("Invalid content Id");
|
|
60230
60213
|
}
|
|
60231
60214
|
if (Object.keys(parsedContentId).some((key) => parsedContentId.hasOwnProperty(key) && typeof parsedContentId[key] === "number" && !Number.isFinite(parsedContentId[key])))
|
|
@@ -66992,7 +66975,7 @@ class OverrideFormat {
|
|
|
66992
66975
|
let prevPos = 1; // Initial position is the character directly after the opening '(' in the override string.
|
|
66993
66976
|
let currPos;
|
|
66994
66977
|
// TODO need to include `,` as a valid search argument.
|
|
66995
|
-
while (-1 !== (currPos = overrideString.indexOf(")", prevPos))) {
|
|
66978
|
+
while (-1 !== (currPos = overrideString.indexOf(")", prevPos))) {
|
|
66996
66979
|
tokens.push(overrideString.substring(prevPos, currPos));
|
|
66997
66980
|
prevPos = currPos + 1;
|
|
66998
66981
|
}
|
|
@@ -70625,12 +70608,12 @@ class SchemaUnitProvider {
|
|
|
70625
70608
|
try {
|
|
70626
70609
|
foundUnit = await this.findUnitByDisplayLabel(findLabel, findSchema, findPhenomenon, findUnitSystem);
|
|
70627
70610
|
}
|
|
70628
|
-
catch
|
|
70611
|
+
catch {
|
|
70629
70612
|
// If there is no Unit with display label that matches label, then check for alternate display labels that may match
|
|
70630
70613
|
foundUnit = await this.findUnitByAltDisplayLabel(findLabel, findSchema, findPhenomenon, findUnitSystem);
|
|
70631
70614
|
}
|
|
70632
70615
|
}
|
|
70633
|
-
catch
|
|
70616
|
+
catch {
|
|
70634
70617
|
throw new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, "Cannot find unit with label", () => {
|
|
70635
70618
|
return { unitLabel };
|
|
70636
70619
|
});
|
|
@@ -71182,10 +71165,10 @@ ECSchemaRpcInterface.version = "2.0.0";
|
|
|
71182
71165
|
ECSchemaRpcInterface.interfaceName = "ECSchemaRpcInterface";
|
|
71183
71166
|
ECSchemaRpcInterface.interfaceVersion = ECSchemaRpcInterface.version;
|
|
71184
71167
|
__decorate([
|
|
71185
|
-
core_common_1.RpcOperation.allowResponseCaching(core_common_1.RpcResponseCacheControl.Immutable)
|
|
71168
|
+
core_common_1.RpcOperation.allowResponseCaching(core_common_1.RpcResponseCacheControl.Immutable)
|
|
71186
71169
|
], ECSchemaRpcInterface.prototype, "getSchemaKeys", null);
|
|
71187
71170
|
__decorate([
|
|
71188
|
-
core_common_1.RpcOperation.allowResponseCaching(core_common_1.RpcResponseCacheControl.Immutable)
|
|
71171
|
+
core_common_1.RpcOperation.allowResponseCaching(core_common_1.RpcResponseCacheControl.Immutable)
|
|
71189
71172
|
], ECSchemaRpcInterface.prototype, "getSchemaJSON", null);
|
|
71190
71173
|
|
|
71191
71174
|
|
|
@@ -71908,7 +71891,6 @@ class AccuDraw {
|
|
|
71908
71891
|
let rMatrix;
|
|
71909
71892
|
let myAxes;
|
|
71910
71893
|
const vecP = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createZero();
|
|
71911
|
-
/* eslint-disable max-statements-per-line */
|
|
71912
71894
|
switch (this.flags.baseRotation) {
|
|
71913
71895
|
case RotationMode.Top:
|
|
71914
71896
|
switch (whichVec) {
|
|
@@ -71988,7 +71970,6 @@ class AccuDraw {
|
|
|
71988
71970
|
}
|
|
71989
71971
|
break;
|
|
71990
71972
|
}
|
|
71991
|
-
/* eslint-enable max-statements-per-line */
|
|
71992
71973
|
return vecP;
|
|
71993
71974
|
}
|
|
71994
71975
|
getBestViewedRotationFromXVector(rotation, vp) {
|
|
@@ -73330,7 +73311,7 @@ class AccuDraw {
|
|
|
73330
73311
|
applyDistanceRoundOff(distance, vp) {
|
|
73331
73312
|
if (!this._distanceRoundOff.active || !this._distanceRoundOff.units.size)
|
|
73332
73313
|
return undefined;
|
|
73333
|
-
let roundValue = this._distanceRoundOff.units.values().next().value;
|
|
73314
|
+
let roundValue = this._distanceRoundOff.units.values().next().value;
|
|
73334
73315
|
if (this._distanceRoundOff.units.size > 1) {
|
|
73335
73316
|
// NOTE: Set isn't ordered, find smallest entry...
|
|
73336
73317
|
this._distanceRoundOff.units.forEach((thisRoundValue) => {
|
|
@@ -73354,7 +73335,7 @@ class AccuDraw {
|
|
|
73354
73335
|
applyAngleRoundOff(angle, distance, vp) {
|
|
73355
73336
|
if (!this._angleRoundOff.active || !this._angleRoundOff.units.size)
|
|
73356
73337
|
return undefined;
|
|
73357
|
-
let roundValue = this._angleRoundOff.units.values().next().value;
|
|
73338
|
+
let roundValue = this._angleRoundOff.units.values().next().value;
|
|
73358
73339
|
if (this._angleRoundOff.units.size > 1) {
|
|
73359
73340
|
// NOTE: Set isn't ordered, find smallest entry...
|
|
73360
73341
|
this._angleRoundOff.units.forEach((thisRoundValue) => {
|
|
@@ -74676,7 +74657,7 @@ class AccuSnap {
|
|
|
74676
74657
|
if (this._toolTipPromise === promise) // have we abandoned this request while awaiting getToolTip?
|
|
74677
74658
|
this.showLocateMessage(viewPt, vp, msg);
|
|
74678
74659
|
}
|
|
74679
|
-
catch
|
|
74660
|
+
catch { } // happens if getToolTip was canceled
|
|
74680
74661
|
});
|
|
74681
74662
|
}
|
|
74682
74663
|
showLocateMessage(viewPt, vp, msg) {
|
|
@@ -75020,7 +75001,7 @@ class AccuSnap {
|
|
|
75020
75001
|
const intersect = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__.IntersectDetail(snap, snap.heat, snap.snapPoint, otherPrimitive, result.intersectId);
|
|
75021
75002
|
return intersect;
|
|
75022
75003
|
}
|
|
75023
|
-
catch
|
|
75004
|
+
catch {
|
|
75024
75005
|
if (out)
|
|
75025
75006
|
out.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.Aborted;
|
|
75026
75007
|
return undefined;
|
|
@@ -76400,7 +76381,7 @@ class BingLocationProvider {
|
|
|
76400
76381
|
},
|
|
76401
76382
|
};
|
|
76402
76383
|
}
|
|
76403
|
-
catch
|
|
76384
|
+
catch {
|
|
76404
76385
|
return undefined;
|
|
76405
76386
|
}
|
|
76406
76387
|
}
|
|
@@ -76673,11 +76654,11 @@ class BriefcaseConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_5__
|
|
|
76673
76654
|
*/
|
|
76674
76655
|
async pullChanges(toIndex, options) {
|
|
76675
76656
|
const removeListeners = [];
|
|
76676
|
-
// eslint-disable-next-line
|
|
76657
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
76677
76658
|
const shouldReportProgress = !!options?.progressCallback || !!options?.downloadProgressCallback;
|
|
76678
76659
|
if (shouldReportProgress) {
|
|
76679
76660
|
const handleProgress = (_evt, data) => {
|
|
76680
|
-
// eslint-disable-next-line
|
|
76661
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
76681
76662
|
options?.progressCallback?.(data);
|
|
76682
76663
|
options?.downloadProgressCallback?.(data);
|
|
76683
76664
|
};
|
|
@@ -77350,7 +77331,7 @@ class CheckpointConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_4_
|
|
|
77350
77331
|
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace(loggerCategory, `IModelConnection.open`, iModelToken);
|
|
77351
77332
|
const startTime = Date.now();
|
|
77352
77333
|
const removeListener = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcRequest.events.addListener((type, request) => {
|
|
77353
|
-
if (type !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcRequestEvent.PendingUpdateReceived) // eslint-disable-line
|
|
77334
|
+
if (type !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcRequestEvent.PendingUpdateReceived) // eslint-disable-line @typescript-eslint/no-deprecated
|
|
77354
77335
|
return;
|
|
77355
77336
|
if (!(openForReadOperation && request.operation === openForReadOperation))
|
|
77356
77337
|
return;
|
|
@@ -77804,11 +77785,11 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
77804
77785
|
if (script)
|
|
77805
77786
|
newState = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderSchedule.ScriptReference(this.id, script);
|
|
77806
77787
|
}
|
|
77807
|
-
catch
|
|
77788
|
+
catch {
|
|
77808
77789
|
// schedule state is undefined.
|
|
77809
77790
|
}
|
|
77810
77791
|
if (newState !== this._scriptReference) {
|
|
77811
|
-
this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line
|
|
77792
|
+
this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line @typescript-eslint/no-deprecated
|
|
77812
77793
|
this.onScheduleScriptChanged.raiseEvent(newState?.script);
|
|
77813
77794
|
this._scriptReference = newState;
|
|
77814
77795
|
}
|
|
@@ -77829,13 +77810,13 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
77829
77810
|
newState = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderSchedule.ScriptReference(timelineId, script);
|
|
77830
77811
|
}
|
|
77831
77812
|
}
|
|
77832
|
-
catch
|
|
77813
|
+
catch {
|
|
77833
77814
|
// schedule state is undefined.
|
|
77834
77815
|
}
|
|
77835
77816
|
}
|
|
77836
77817
|
this._queryRenderTimelinePropsPromise = undefined;
|
|
77837
77818
|
if (newState !== this._scriptReference) {
|
|
77838
|
-
this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line
|
|
77819
|
+
this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line @typescript-eslint/no-deprecated
|
|
77839
77820
|
this.onScheduleScriptChanged.raiseEvent(newState?.script);
|
|
77840
77821
|
this._scriptReference = newState;
|
|
77841
77822
|
}
|
|
@@ -77846,7 +77827,7 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
77846
77827
|
const omitScriptElementIds = !_IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.tileAdmin.enableFrontendScheduleScripts;
|
|
77847
77828
|
return await this.iModel.elements.loadProps(timelineId, { renderTimeline: { omitScriptElementIds } });
|
|
77848
77829
|
}
|
|
77849
|
-
catch
|
|
77830
|
+
catch {
|
|
77850
77831
|
return undefined;
|
|
77851
77832
|
}
|
|
77852
77833
|
}
|
|
@@ -77969,7 +77950,7 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
77969
77950
|
return;
|
|
77970
77951
|
try {
|
|
77971
77952
|
const scriptRef = script ? new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderSchedule.ScriptReference(script) : undefined;
|
|
77972
|
-
this.onScheduleScriptReferenceChanged.raiseEvent(scriptRef); // eslint-disable-line
|
|
77953
|
+
this.onScheduleScriptReferenceChanged.raiseEvent(scriptRef); // eslint-disable-line @typescript-eslint/no-deprecated
|
|
77973
77954
|
this.onScheduleScriptChanged.raiseEvent(script);
|
|
77974
77955
|
this._scriptReference = scriptRef;
|
|
77975
77956
|
this._assigningScript = true;
|
|
@@ -78842,7 +78823,7 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
|
|
|
78842
78823
|
break;
|
|
78843
78824
|
}
|
|
78844
78825
|
}
|
|
78845
|
-
catch
|
|
78826
|
+
catch {
|
|
78846
78827
|
// The version of BisCore ECSchema in the iModel is probably too old to contain the SectionDrawing ECClass.
|
|
78847
78828
|
}
|
|
78848
78829
|
return { spatialView, displaySpatialView, drawingToSpatialTransform };
|
|
@@ -80210,7 +80191,7 @@ class EnvironmentDecorations {
|
|
|
80210
80191
|
else
|
|
80211
80192
|
idToImage.set(spec, image);
|
|
80212
80193
|
}
|
|
80213
|
-
// eslint-disable-next-line
|
|
80194
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
80214
80195
|
const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderTexture.Params(key, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderTexture.Type.SkyBox);
|
|
80215
80196
|
const txImgs = [
|
|
80216
80197
|
idToImage.get(sky.images.front), idToImage.get(sky.images.back), idToImage.get(sky.images.top),
|
|
@@ -82113,7 +82094,6 @@ var _a;
|
|
|
82113
82094
|
// eslint-disable-next-line @itwin/import-within-package
|
|
82114
82095
|
|
|
82115
82096
|
/** @public */
|
|
82116
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
82117
82097
|
const ITWINJS_CORE_VERSION = _package_json__WEBPACK_IMPORTED_MODULE_0__.version;
|
|
82118
82098
|
const COPYRIGHT_NOTICE = 'Copyright © 2017-2024 <a href="https://www.bentley.com" target="_blank" rel="noopener noreferrer">Bentley Systems, Inc.</a>';
|
|
82119
82099
|
|
|
@@ -82440,7 +82420,7 @@ class IModelApp {
|
|
|
82440
82420
|
try {
|
|
82441
82421
|
return (await this.authorizationClient?.getAccessToken()) ?? "";
|
|
82442
82422
|
}
|
|
82443
|
-
catch
|
|
82423
|
+
catch {
|
|
82444
82424
|
return "";
|
|
82445
82425
|
}
|
|
82446
82426
|
}
|
|
@@ -82798,11 +82778,11 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
82798
82778
|
this.hilited = new _SelectionSet__WEBPACK_IMPORTED_MODULE_8__.HiliteSet(this);
|
|
82799
82779
|
this.tiles = new _Tiles__WEBPACK_IMPORTED_MODULE_11__.Tiles(this);
|
|
82800
82780
|
this.geoServices = _GeoServices__WEBPACK_IMPORTED_MODULE_4__.GeoServices.createForIModel(this);
|
|
82801
|
-
/* eslint-disable-next-line
|
|
82781
|
+
/* eslint-disable-next-line @typescript-eslint/no-deprecated */
|
|
82802
82782
|
this.displayedExtents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Range3d.fromJSON(this.projectExtents);
|
|
82803
82783
|
this.onProjectExtentsChanged.addListener(() => {
|
|
82804
82784
|
// Compute new displayed extents as the union of the ranges we previously expanded by with the new project extents.
|
|
82805
|
-
/* eslint-disable-next-line
|
|
82785
|
+
/* eslint-disable-next-line @typescript-eslint/no-deprecated */
|
|
82806
82786
|
this.expandDisplayedExtents(this._extentsExpansion);
|
|
82807
82787
|
});
|
|
82808
82788
|
this.hilited.onModelSubCategoryModeChanged.addListener(() => {
|
|
@@ -83155,9 +83135,9 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
83155
83135
|
*/
|
|
83156
83136
|
expandDisplayedExtents(range) {
|
|
83157
83137
|
this._extentsExpansion.extendRange(range);
|
|
83158
|
-
/* eslint-disable-next-line
|
|
83138
|
+
/* eslint-disable-next-line @typescript-eslint/no-deprecated */
|
|
83159
83139
|
this.displayedExtents.setFrom(this.projectExtents);
|
|
83160
|
-
/* eslint-disable-next-line
|
|
83140
|
+
/* eslint-disable-next-line @typescript-eslint/no-deprecated */
|
|
83161
83141
|
this.displayedExtents.extendRange(this._extentsExpansion);
|
|
83162
83142
|
}
|
|
83163
83143
|
/** @internal */
|
|
@@ -83291,7 +83271,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
83291
83271
|
static async openRemote(fileKey) {
|
|
83292
83272
|
const routingContext = _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext.current || _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext["default"];
|
|
83293
83273
|
_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcManager.setIModel({ iModelId: "undefined", key: fileKey });
|
|
83294
|
-
const openResponse = await _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.SnapshotIModelRpcInterface.getClientForRouting(routingContext.token).openRemote(fileKey); // eslint-disable-line
|
|
83274
|
+
const openResponse = await _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.SnapshotIModelRpcInterface.getClientForRouting(routingContext.token).openRemote(fileKey); // eslint-disable-line @typescript-eslint/no-deprecated
|
|
83295
83275
|
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace(loggerCategory, "SnapshotConnection.openRemote", () => ({ fileKey }));
|
|
83296
83276
|
const connection = new SnapshotConnection(openResponse);
|
|
83297
83277
|
connection.routingContext = routingContext;
|
|
@@ -83375,7 +83355,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
83375
83355
|
const propArray = await this.getProps(notLoaded);
|
|
83376
83356
|
await this.updateLoadedWithModelProps(propArray);
|
|
83377
83357
|
}
|
|
83378
|
-
catch
|
|
83358
|
+
catch {
|
|
83379
83359
|
// ignore error, we had nothing to do.
|
|
83380
83360
|
}
|
|
83381
83361
|
}
|
|
@@ -83390,7 +83370,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
83390
83370
|
}
|
|
83391
83371
|
}
|
|
83392
83372
|
}
|
|
83393
|
-
catch
|
|
83373
|
+
catch {
|
|
83394
83374
|
// ignore error, we had nothing to do.
|
|
83395
83375
|
}
|
|
83396
83376
|
}
|
|
@@ -83721,7 +83701,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
83721
83701
|
* @deprecated in 3.x use ViewStore apis
|
|
83722
83702
|
*/
|
|
83723
83703
|
async getThumbnail(_viewId) {
|
|
83724
|
-
// eslint-disable-next-line
|
|
83704
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
83725
83705
|
const val = await _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this._iModel.routingContext.token).getViewThumbnail(this._iModel.getRpcProps(), _viewId.toString());
|
|
83726
83706
|
const intValues = new Uint32Array(val.buffer, 0, 4);
|
|
83727
83707
|
if (intValues[1] !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ImageSourceFormat.Jpeg && intValues[1] !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ImageSourceFormat.Png)
|
|
@@ -86435,8 +86415,7 @@ class RealityDataSourceCesiumIonAssetImpl {
|
|
|
86435
86415
|
try {
|
|
86436
86416
|
tilesetUrl = await rdSource.getServiceUrl(iTwinId);
|
|
86437
86417
|
}
|
|
86438
|
-
catch
|
|
86439
|
-
}
|
|
86418
|
+
catch { }
|
|
86440
86419
|
return (tilesetUrl !== undefined) ? rdSource : undefined;
|
|
86441
86420
|
}
|
|
86442
86421
|
get isContextShare() {
|
|
@@ -86612,8 +86591,7 @@ class RealityDataSourceContextShareImpl {
|
|
|
86612
86591
|
await rdSource.queryRealityData(iTwinId);
|
|
86613
86592
|
tilesetUrl = await rdSource.getServiceUrl(iTwinId);
|
|
86614
86593
|
}
|
|
86615
|
-
catch
|
|
86616
|
-
}
|
|
86594
|
+
catch { }
|
|
86617
86595
|
return (tilesetUrl !== undefined) ? rdSource : undefined;
|
|
86618
86596
|
}
|
|
86619
86597
|
get isContextShare() {
|
|
@@ -86690,7 +86668,7 @@ class RealityDataSourceContextShareImpl {
|
|
|
86690
86668
|
this._tilesetUrl = await _IModelApp__WEBPACK_IMPORTED_MODULE_4__.IModelApp.realityDataAccess.getRealityDataUrl(resolvedITwinId, rdSourceKey.id);
|
|
86691
86669
|
this._isUrlResolved = true;
|
|
86692
86670
|
}
|
|
86693
|
-
catch
|
|
86671
|
+
catch {
|
|
86694
86672
|
const errMsg = `Error getting URL from ContextShare using realityDataId=${rdSourceKey.id} and iTwinId=${iTwinId}`;
|
|
86695
86673
|
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_1__.Logger.logError(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_3__.FrontendLoggerCategory.RealityData, errMsg);
|
|
86696
86674
|
}
|
|
@@ -86895,7 +86873,7 @@ class RealityDataSourceTilesetUrlImpl {
|
|
|
86895
86873
|
try {
|
|
86896
86874
|
new URL(url);
|
|
86897
86875
|
}
|
|
86898
|
-
catch
|
|
86876
|
+
catch {
|
|
86899
86877
|
return false;
|
|
86900
86878
|
}
|
|
86901
86879
|
return true;
|
|
@@ -88355,7 +88333,7 @@ class SpatialViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_6__.ViewState
|
|
|
88355
88333
|
* @deprecated in 3.6. These extents are based on [[IModelConnection.displayedExtents]], which is deprecated. Consider using [[computeFitRange]] or [[getViewedExtents]] instead.
|
|
88356
88334
|
*/
|
|
88357
88335
|
getDisplayedExtents() {
|
|
88358
|
-
/* eslint-disable-next-line
|
|
88336
|
+
/* eslint-disable-next-line @typescript-eslint/no-deprecated */
|
|
88359
88337
|
const extents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.fromJSON(this.iModel.displayedExtents);
|
|
88360
88338
|
extents.scaleAboutCenterInPlace(1.0001); // projectExtents. lying smack up against the extents is not excluded by frustum...
|
|
88361
88339
|
extents.extendRange(this.getGroundExtents());
|
|
@@ -88812,7 +88790,7 @@ class SubCategoriesCache {
|
|
|
88812
88790
|
this.processResults(results, new Set(), false);
|
|
88813
88791
|
}
|
|
88814
88792
|
}
|
|
88815
|
-
catch
|
|
88793
|
+
catch {
|
|
88816
88794
|
// In case of a truncated response, gracefully handle the error and exit.
|
|
88817
88795
|
}
|
|
88818
88796
|
}
|
|
@@ -89140,7 +89118,7 @@ class TentativePoint {
|
|
|
89140
89118
|
showTentative() {
|
|
89141
89119
|
if (this.isSnapped) {
|
|
89142
89120
|
_IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.viewManager.invalidateDecorationsAllViews();
|
|
89143
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.accuSnap.displayToolTip(this._viewPoint, this.viewport, undefined);
|
|
89121
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.accuSnap.displayToolTip(this._viewPoint, this.viewport, undefined);
|
|
89144
89122
|
}
|
|
89145
89123
|
else {
|
|
89146
89124
|
this.viewport.invalidateDecorations();
|
|
@@ -90558,7 +90536,7 @@ class ViewCreator3d {
|
|
|
90558
90536
|
* Get the Id of the default view.
|
|
90559
90537
|
*/
|
|
90560
90538
|
async _getDefaultViewId() {
|
|
90561
|
-
// eslint-disable-next-line
|
|
90539
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
90562
90540
|
const viewId = await this._imodel.views.queryDefaultViewId();
|
|
90563
90541
|
if (viewId !== _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid)
|
|
90564
90542
|
return viewId;
|
|
@@ -91527,7 +91505,7 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
91527
91505
|
}
|
|
91528
91506
|
/** @internal */
|
|
91529
91507
|
get scheduleScriptReference() {
|
|
91530
|
-
return this.displayStyle.scheduleScriptReference; // eslint-disable-line
|
|
91508
|
+
return this.displayStyle.scheduleScriptReference; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
91531
91509
|
}
|
|
91532
91510
|
/** Get the globe projection mode.
|
|
91533
91511
|
* @internal
|
|
@@ -95888,7 +95866,7 @@ class Viewport {
|
|
|
95888
95866
|
* @deprecated in 3.x. Use readImageBuffer.
|
|
95889
95867
|
*/
|
|
95890
95868
|
readImage(rect = new _common_ViewRect__WEBPACK_IMPORTED_MODULE_27__.ViewRect(1, 1, 0, 0), targetSize = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d.createZero(), flipVertically = false) {
|
|
95891
|
-
// eslint-disable-next-line
|
|
95869
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
95892
95870
|
return this.target.readImage(rect, targetSize, flipVertically);
|
|
95893
95871
|
}
|
|
95894
95872
|
/** Capture the image currently rendered in this viewport, or a subset thereof.
|
|
@@ -96287,7 +96265,6 @@ class ScreenViewport extends Viewport {
|
|
|
96287
96265
|
this.addChildDiv(this.vpDiv, canvas, 10);
|
|
96288
96266
|
this.target.updateViewRect();
|
|
96289
96267
|
// SEE: decorationDiv doc comment
|
|
96290
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
96291
96268
|
this.decorationDiv = this.addNewDiv("overlay-decorators", true, 30);
|
|
96292
96269
|
this.toolTipDiv = this.addNewDiv("overlay-tooltip", true, 40);
|
|
96293
96270
|
this.setCursor();
|
|
@@ -96477,7 +96454,6 @@ class ScreenViewport extends Viewport {
|
|
|
96477
96454
|
/** Populate a set of decoration graphics to be displayed in this viewport. */
|
|
96478
96455
|
addDecorations(decorations) {
|
|
96479
96456
|
// SEE: decorationDiv doc comment
|
|
96480
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
96481
96457
|
ScreenViewport.markAllChildrenForRemoval(this.decorationDiv);
|
|
96482
96458
|
const context = new _ViewContext__WEBPACK_IMPORTED_MODULE_24__.DecorateContext(this, decorations, this._decorationCache);
|
|
96483
96459
|
try {
|
|
@@ -96488,7 +96464,6 @@ class ScreenViewport extends Viewport {
|
|
|
96488
96464
|
this.forEachTiledGraphicsProviderTree((ref) => context.addFromDecorator(ref));
|
|
96489
96465
|
for (const decorator of _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.viewManager.decorators)
|
|
96490
96466
|
context.addFromDecorator(decorator);
|
|
96491
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
96492
96467
|
ScreenViewport.removeMarkedChildren(this.decorationDiv);
|
|
96493
96468
|
}
|
|
96494
96469
|
finally {
|
|
@@ -98280,7 +98255,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMat
|
|
|
98280
98255
|
const material = this.key ?? this.materialParams;
|
|
98281
98256
|
return { isAtlas: false, material };
|
|
98282
98257
|
}
|
|
98283
|
-
// eslint-disable-next-line
|
|
98258
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
98284
98259
|
constructor(params, imdl) {
|
|
98285
98260
|
super(params);
|
|
98286
98261
|
this.materialParams = imdl ?? {
|
|
@@ -98297,7 +98272,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMat
|
|
|
98297
98272
|
};
|
|
98298
98273
|
}
|
|
98299
98274
|
static create(args) {
|
|
98300
|
-
// eslint-disable-next-line
|
|
98275
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
98301
98276
|
const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMaterial.Params();
|
|
98302
98277
|
params.alpha = args.alpha;
|
|
98303
98278
|
if (args.diffuse) {
|
|
@@ -99058,7 +99033,7 @@ class Parser {
|
|
|
99058
99033
|
const materialJson = this._document.renderMaterials[key];
|
|
99059
99034
|
if (!materialJson)
|
|
99060
99035
|
return undefined;
|
|
99061
|
-
// eslint-disable-next-line
|
|
99036
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
99062
99037
|
const materialParams = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMaterial.Params(key);
|
|
99063
99038
|
materialParams.diffuseColor = this.colorDefFromMaterialJson(materialJson.diffuseColor);
|
|
99064
99039
|
if (materialJson.diffuse !== undefined)
|
|
@@ -99078,7 +99053,6 @@ class Parser {
|
|
|
99078
99053
|
materialParams.ambient = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.JsonUtils.asDouble(materialJson.ambient);
|
|
99079
99054
|
if (undefined !== materialJson.textureMapping)
|
|
99080
99055
|
materialParams.textureMapping = this.textureMappingFromJson(materialJson.textureMapping.texture);
|
|
99081
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
99082
99056
|
return new Material(materialParams);
|
|
99083
99057
|
}
|
|
99084
99058
|
parseNamedTexture(namedTex, name) {
|
|
@@ -99235,7 +99209,7 @@ function parseImdlDocument(options) {
|
|
|
99235
99209
|
const parser = new Parser(imdlDoc, binaryData, options, featureTable, stream);
|
|
99236
99210
|
return parser.parse();
|
|
99237
99211
|
}
|
|
99238
|
-
catch
|
|
99212
|
+
catch {
|
|
99239
99213
|
return _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TileReadStatus.InvalidTileData;
|
|
99240
99214
|
}
|
|
99241
99215
|
}
|
|
@@ -106762,7 +106736,7 @@ class BaseUnitFormattingSettingsProvider {
|
|
|
106762
106736
|
async buildQuantityFormatOverridesMap() {
|
|
106763
106737
|
const overrideFormatProps = new Map();
|
|
106764
106738
|
// use map and await all returned promises - overrides are stored by QuantityType
|
|
106765
|
-
for
|
|
106739
|
+
for (const quantityTypeKey of [...this._quantityFormatter.quantityTypesRegistry.keys()]) {
|
|
106766
106740
|
const quantityTypeDef = this._quantityFormatter.quantityTypesRegistry.get(quantityTypeKey);
|
|
106767
106741
|
if (quantityTypeDef) {
|
|
106768
106742
|
const typeKey = quantityTypeDef.key;
|
|
@@ -107013,7 +106987,7 @@ class LocalUnitFormatProvider extends _BaseUnitFormattingSettingsProvider__WEBPA
|
|
|
107013
106987
|
localStorage.setItem(this.buildUnitSystemKey(), unitSystemKey);
|
|
107014
106988
|
return true;
|
|
107015
106989
|
}
|
|
107016
|
-
catch
|
|
106990
|
+
catch {
|
|
107017
106991
|
return false;
|
|
107018
106992
|
}
|
|
107019
106993
|
}
|
|
@@ -107027,7 +107001,7 @@ class LocalUnitFormatProvider extends _BaseUnitFormattingSettingsProvider__WEBPA
|
|
|
107027
107001
|
localStorage.setItem(this.buildOverridesKey(quantityTypeKey), JSON.stringify(overrideProps));
|
|
107028
107002
|
return true;
|
|
107029
107003
|
}
|
|
107030
|
-
catch
|
|
107004
|
+
catch {
|
|
107031
107005
|
return false;
|
|
107032
107006
|
}
|
|
107033
107007
|
}
|
|
@@ -110309,7 +110283,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
110309
110283
|
|
|
110310
110284
|
|
|
110311
110285
|
|
|
110312
|
-
/* eslint-disable no-restricted-syntax */
|
|
110313
110286
|
// cSpell:ignore deserializing subcat uninstanced wiremesh qorigin trimesh
|
|
110314
110287
|
/** An opaque representation of a texture draped on geometry within a [[Viewport]].
|
|
110315
110288
|
* @internal
|
|
@@ -110419,7 +110392,7 @@ class RenderSystem {
|
|
|
110419
110392
|
* @returns the newly-created material, or undefined if the material could not be created or if a material with the same key as that specified in the params already exists.
|
|
110420
110393
|
* @deprecated in 3.x. Use [[createRenderMaterial]].
|
|
110421
110394
|
*/
|
|
110422
|
-
// eslint-disable-next-line
|
|
110395
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
110423
110396
|
createMaterial(_params, _imodel) { return undefined; }
|
|
110424
110397
|
/** Create a [RenderMaterial]($common).
|
|
110425
110398
|
* @see [[CreateRenderMaterialArgs]] for a description of the material parameters.
|
|
@@ -110704,7 +110677,7 @@ class RenderSystem {
|
|
|
110704
110677
|
/** Create a new texture from an [[ImageBuffer]].
|
|
110705
110678
|
* @deprecated in 3.x. Use [[createTexture]].
|
|
110706
110679
|
*/
|
|
110707
|
-
// eslint-disable-next-line
|
|
110680
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
110708
110681
|
createTextureFromImageBuffer(image, iModel, params) {
|
|
110709
110682
|
const ownership = params.key ? { key: params.key, iModel } : (params.isOwned ? "external" : undefined);
|
|
110710
110683
|
return this.createTexture({
|
|
@@ -110719,7 +110692,7 @@ class RenderSystem {
|
|
|
110719
110692
|
/** Create a new texture from an HTML image. Typically the image was extracted from a binary representation of a jpeg or png via [[imageElementFromImageSource]].
|
|
110720
110693
|
* @deprecated in 3.x. Use [[createTexture]].
|
|
110721
110694
|
*/
|
|
110722
|
-
// eslint-disable-next-line
|
|
110695
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
110723
110696
|
createTextureFromImage(image, hasAlpha, iModel, params) {
|
|
110724
110697
|
const ownership = params.key && iModel ? { key: params.key, iModel } : (params.isOwned ? "external" : undefined);
|
|
110725
110698
|
return this.createTexture({
|
|
@@ -110734,7 +110707,7 @@ class RenderSystem {
|
|
|
110734
110707
|
/** Create a new texture from an ImageSource.
|
|
110735
110708
|
* @deprecated in 3.x. Use RenderSystem.createTextureFromSource.
|
|
110736
110709
|
*/
|
|
110737
|
-
// eslint-disable-next-line
|
|
110710
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
110738
110711
|
async createTextureFromImageSource(source, iModel, params) {
|
|
110739
110712
|
const ownership = iModel && params.key ? { iModel, key: params.key } : (params.isOwned ? "external" : undefined);
|
|
110740
110713
|
return this.createTextureFromSource({
|
|
@@ -110766,7 +110739,7 @@ class RenderSystem {
|
|
|
110766
110739
|
}
|
|
110767
110740
|
}
|
|
110768
110741
|
/** Create a new texture by its element ID. This texture will be retrieved asynchronously from the backend. A placeholder image will be associated with the texture until the requested image data loads. */
|
|
110769
|
-
// eslint-disable-next-line
|
|
110742
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
110770
110743
|
createTextureFromElement(_id, _imodel, _params, _format) {
|
|
110771
110744
|
return undefined;
|
|
110772
110745
|
}
|
|
@@ -110776,7 +110749,7 @@ class RenderSystem {
|
|
|
110776
110749
|
/** Create a new texture from a cube of HTML images.
|
|
110777
110750
|
* @internal
|
|
110778
110751
|
*/
|
|
110779
|
-
// eslint-disable-next-line
|
|
110752
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
110780
110753
|
createTextureFromCubeImages(_posX, _negX, _posY, _negY, _posZ, _negZ, _imodel, _params) {
|
|
110781
110754
|
return undefined;
|
|
110782
110755
|
}
|
|
@@ -118640,7 +118613,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.RenderMat
|
|
|
118640
118613
|
get overridesRgb() { return this.rgba[0] >= 0; }
|
|
118641
118614
|
get overridesAlpha() { return this.rgba[3] >= 0; }
|
|
118642
118615
|
get hasTranslucency() { return this.overridesAlpha && this.rgba[3] < 1; }
|
|
118643
|
-
// eslint-disable-next-line
|
|
118616
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
118644
118617
|
constructor(params) {
|
|
118645
118618
|
super(params);
|
|
118646
118619
|
// Used for type-switching vs MaterialAtlas
|
|
@@ -118677,7 +118650,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.RenderMat
|
|
|
118677
118650
|
this.fragUniforms[index] = loByte + hiByte * 256;
|
|
118678
118651
|
}
|
|
118679
118652
|
}
|
|
118680
|
-
// eslint-disable-next-line
|
|
118653
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
118681
118654
|
Material.default = new Material(_itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.RenderMaterial.Params.defaults);
|
|
118682
118655
|
/** Strictly for testing. */
|
|
118683
118656
|
Material.preserveParams = false;
|
|
@@ -123966,7 +123939,7 @@ class Compositor extends SceneCompositor {
|
|
|
123966
123939
|
try {
|
|
123967
123940
|
gl.readPixels(rect.left, bottom, rect.width, rect.height, gl.RGBA, gl.UNSIGNED_BYTE, bytes);
|
|
123968
123941
|
}
|
|
123969
|
-
catch
|
|
123942
|
+
catch {
|
|
123970
123943
|
result = undefined;
|
|
123971
123944
|
}
|
|
123972
123945
|
});
|
|
@@ -127535,7 +127508,7 @@ class IdMap {
|
|
|
127535
127508
|
return this.gradients.get(symb);
|
|
127536
127509
|
}
|
|
127537
127510
|
/** Find or create a new material given material parameters. This will cache the material if its key is valid. */
|
|
127538
|
-
// eslint-disable-next-line
|
|
127511
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
127539
127512
|
getMaterial(params) {
|
|
127540
127513
|
if (!params.key || !_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.isValidId64(params.key)) // Only cache persistent materials.
|
|
127541
127514
|
return new _Material__WEBPACK_IMPORTED_MODULE_21__.Material(params);
|
|
@@ -127554,7 +127527,7 @@ class IdMap {
|
|
|
127554
127527
|
else
|
|
127555
127528
|
return this.findGradient(key);
|
|
127556
127529
|
}
|
|
127557
|
-
// eslint-disable-next-line
|
|
127530
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
127558
127531
|
getTextureFromElement(key, iModel, params, format) {
|
|
127559
127532
|
let tex = this.findTexture(params.key);
|
|
127560
127533
|
if (tex)
|
|
@@ -127606,7 +127579,7 @@ class IdMap {
|
|
|
127606
127579
|
this.texturesFromImageSources.delete(key);
|
|
127607
127580
|
}
|
|
127608
127581
|
}
|
|
127609
|
-
// eslint-disable-next-line
|
|
127582
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
127610
127583
|
getTextureFromCubeImages(posX, negX, posY, negY, posZ, negZ, params) {
|
|
127611
127584
|
let tex = this.findTexture(params.key);
|
|
127612
127585
|
if (tex)
|
|
@@ -127912,7 +127885,7 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_9__.RenderSystem {
|
|
|
127912
127885
|
this.resourceCache.delete(imodel);
|
|
127913
127886
|
}
|
|
127914
127887
|
/** Attempt to create a material for the given iModel using a set of material parameters. */
|
|
127915
|
-
// eslint-disable-next-line
|
|
127888
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
127916
127889
|
createMaterial(params, imodel) {
|
|
127917
127890
|
const idMap = this.getIdMap(imodel);
|
|
127918
127891
|
const material = idMap.getMaterial(params);
|
|
@@ -127924,7 +127897,7 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_9__.RenderSystem {
|
|
|
127924
127897
|
if (cached)
|
|
127925
127898
|
return cached;
|
|
127926
127899
|
}
|
|
127927
|
-
// eslint-disable-next-line
|
|
127900
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
127928
127901
|
const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderMaterial.Params();
|
|
127929
127902
|
params.alpha = args.alpha;
|
|
127930
127903
|
if (undefined !== args.diffuse?.weight)
|
|
@@ -127995,11 +127968,11 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_9__.RenderSystem {
|
|
|
127995
127968
|
return super.createTextureFromSource(args);
|
|
127996
127969
|
return this.getIdMap(args.ownership.iModel).getTextureFromImageSource(args, args.ownership.key);
|
|
127997
127970
|
}
|
|
127998
|
-
// eslint-disable-next-line
|
|
127971
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
127999
127972
|
createTextureFromElement(id, imodel, params, format) {
|
|
128000
127973
|
return this.getIdMap(imodel).getTextureFromElement(id, imodel, params, format);
|
|
128001
127974
|
}
|
|
128002
|
-
// eslint-disable-next-line
|
|
127975
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
128003
127976
|
createTextureFromCubeImages(posX, negX, posY, negY, posZ, negZ, imodel, params) {
|
|
128004
127977
|
return this.getIdMap(imodel).getTextureFromCubeImages(posX, negX, posY, negY, posZ, negZ, params);
|
|
128005
127978
|
}
|
|
@@ -129012,7 +128985,7 @@ class Target extends _RenderTarget__WEBPACK_IMPORTED_MODULE_7__.RenderTarget {
|
|
|
129012
128985
|
try {
|
|
129013
128986
|
context.readPixels(x, y, w, h, context.RGBA, context.UNSIGNED_BYTE, out);
|
|
129014
128987
|
}
|
|
129015
|
-
catch
|
|
128988
|
+
catch {
|
|
129016
128989
|
didSucceed = false;
|
|
129017
128990
|
}
|
|
129018
128991
|
});
|
|
@@ -131426,7 +131399,7 @@ class ExternalTextureLoader {
|
|
|
131426
131399
|
}
|
|
131427
131400
|
}
|
|
131428
131401
|
}
|
|
131429
|
-
catch
|
|
131402
|
+
catch { }
|
|
131430
131403
|
return this._nextRequest(req);
|
|
131431
131404
|
}
|
|
131432
131405
|
async _convertTexture() {
|
|
@@ -131450,7 +131423,7 @@ class ExternalTextureLoader {
|
|
|
131450
131423
|
}
|
|
131451
131424
|
}
|
|
131452
131425
|
}
|
|
131453
|
-
catch
|
|
131426
|
+
catch { }
|
|
131454
131427
|
this._convertPending = false;
|
|
131455
131428
|
}
|
|
131456
131429
|
_requestExists(reqToCheck) {
|
|
@@ -141254,7 +141227,7 @@ function createClassifierId(classifier, source) {
|
|
|
141254
141227
|
if (undefined === classifier)
|
|
141255
141228
|
return { modelId: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid, type: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BatchType.PlanarClassifier, expansion: 0, animationId: undefined };
|
|
141256
141229
|
const type = classifier.flags.isVolumeClassifier ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BatchType.VolumeClassifier : _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BatchType.PlanarClassifier;
|
|
141257
|
-
const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.tileAdmin.getScriptInfoForTreeId(classifier.modelId, source?.scheduleScriptReference); // eslint-disable-line
|
|
141230
|
+
const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.tileAdmin.getScriptInfoForTreeId(classifier.modelId, source?.scheduleScriptReference); // eslint-disable-line @typescript-eslint/no-deprecated
|
|
141258
141231
|
return {
|
|
141259
141232
|
modelId: classifier.modelId,
|
|
141260
141233
|
type,
|
|
@@ -141298,7 +141271,7 @@ class ContextShareProvider {
|
|
|
141298
141271
|
try {
|
|
141299
141272
|
attUrl = new URL(tilesetUrl);
|
|
141300
141273
|
}
|
|
141301
|
-
catch
|
|
141274
|
+
catch {
|
|
141302
141275
|
// Not a valid URL for Context share
|
|
141303
141276
|
return false;
|
|
141304
141277
|
}
|
|
@@ -141329,7 +141302,7 @@ class ContextShareProvider {
|
|
|
141329
141302
|
try {
|
|
141330
141303
|
attUrl = new URL(tilesetUrl);
|
|
141331
141304
|
}
|
|
141332
|
-
catch
|
|
141305
|
+
catch {
|
|
141333
141306
|
// Not a valid URL and not equal, probably $cesiumAsset
|
|
141334
141307
|
return invalidUrlInfo;
|
|
141335
141308
|
}
|
|
@@ -142027,7 +142000,7 @@ class GltfReaderProps {
|
|
|
142027
142000
|
json = JSON.parse(utf8Json);
|
|
142028
142001
|
version = 2;
|
|
142029
142002
|
}
|
|
142030
|
-
catch
|
|
142003
|
+
catch {
|
|
142031
142004
|
return undefined;
|
|
142032
142005
|
}
|
|
142033
142006
|
}
|
|
@@ -142046,7 +142019,7 @@ class GltfReaderProps {
|
|
|
142046
142019
|
return undefined;
|
|
142047
142020
|
json = JSON.parse(jsonStr);
|
|
142048
142021
|
}
|
|
142049
|
-
catch
|
|
142022
|
+
catch {
|
|
142050
142023
|
return undefined;
|
|
142051
142024
|
}
|
|
142052
142025
|
}
|
|
@@ -142600,7 +142573,7 @@ class GltfReader {
|
|
|
142600
142573
|
const bytes = aligned ? bufferData.subarray(offset, offset + length) : bufferData.slice(offset, offset + length);
|
|
142601
142574
|
return new GltfBufferView(bytes, accessor.count, type, accessor, byteStride / dataSize);
|
|
142602
142575
|
}
|
|
142603
|
-
catch
|
|
142576
|
+
catch {
|
|
142604
142577
|
return undefined;
|
|
142605
142578
|
}
|
|
142606
142579
|
}
|
|
@@ -143361,8 +143334,7 @@ class GltfReader {
|
|
|
143361
143334
|
promises.push(this.resolveImage(image));
|
|
143362
143335
|
await Promise.all(promises);
|
|
143363
143336
|
}
|
|
143364
|
-
catch
|
|
143365
|
-
}
|
|
143337
|
+
catch { }
|
|
143366
143338
|
}
|
|
143367
143339
|
async decodeDracoMesh(ext, loader) {
|
|
143368
143340
|
const bv = this._bufferViews[ext.bufferView];
|
|
@@ -143383,7 +143355,7 @@ class GltfReader {
|
|
|
143383
143355
|
resolved.search = this._baseUrl?.search ?? "";
|
|
143384
143356
|
return resolved.toString();
|
|
143385
143357
|
}
|
|
143386
|
-
catch
|
|
143358
|
+
catch {
|
|
143387
143359
|
return undefined;
|
|
143388
143360
|
}
|
|
143389
143361
|
}
|
|
@@ -143401,7 +143373,7 @@ class GltfReader {
|
|
|
143401
143373
|
if (data)
|
|
143402
143374
|
buffer.resolvedBuffer = new Uint8Array(data);
|
|
143403
143375
|
}
|
|
143404
|
-
catch
|
|
143376
|
+
catch {
|
|
143405
143377
|
//
|
|
143406
143378
|
}
|
|
143407
143379
|
}
|
|
@@ -143426,7 +143398,7 @@ class GltfReader {
|
|
|
143426
143398
|
else
|
|
143427
143399
|
image.resolvedImage = await (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_10__.imageElementFromImageSource)(imageSource);
|
|
143428
143400
|
}
|
|
143429
|
-
catch
|
|
143401
|
+
catch {
|
|
143430
143402
|
//
|
|
143431
143403
|
}
|
|
143432
143404
|
return;
|
|
@@ -144901,11 +144873,11 @@ async function loadNamedTexture(name, namedTex, options) {
|
|
|
144901
144873
|
return await options.system.createTextureFromSource({ source, ownership, type: textureType, transparency: namedTex.transparency });
|
|
144902
144874
|
}
|
|
144903
144875
|
// bufferViewJson was undefined, so attempt to request the texture directly from the backend
|
|
144904
|
-
// eslint-disable-next-line
|
|
144876
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
144905
144877
|
const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderTexture.Params(cacheable ? name : undefined, textureType);
|
|
144906
144878
|
return options.system.createTextureFromElement(name, options.iModel, params, namedTex.format);
|
|
144907
144879
|
}
|
|
144908
|
-
catch
|
|
144880
|
+
catch {
|
|
144909
144881
|
return undefined;
|
|
144910
144882
|
}
|
|
144911
144883
|
}
|
|
@@ -144992,7 +144964,7 @@ function getMaterial(mat, options) {
|
|
|
144992
144964
|
function colorDefFromJson(col) {
|
|
144993
144965
|
return col ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorDef.from(col[0] * 255 + 0.5, col[1] * 255 + 0.5, col[2] * 255 + 0.5) : undefined;
|
|
144994
144966
|
}
|
|
144995
|
-
// eslint-disable-next-line
|
|
144967
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
144996
144968
|
const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMaterial.Params(mat);
|
|
144997
144969
|
params.diffuseColor = colorDefFromJson(json.diffuseColor);
|
|
144998
144970
|
if (json.diffuse !== undefined)
|
|
@@ -145012,7 +144984,7 @@ function getMaterial(mat, options) {
|
|
|
145012
144984
|
params.ambient = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.JsonUtils.asDouble(json.ambient);
|
|
145013
144985
|
if (undefined !== json.textureMapping)
|
|
145014
144986
|
params.textureMapping = textureMappingFromJson(json.textureMapping.texture, options);
|
|
145015
|
-
// eslint-disable-next-line
|
|
144987
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
145016
144988
|
return options.system.createMaterial(params, options.iModel);
|
|
145017
144989
|
}
|
|
145018
144990
|
function getModifiers(primitive) {
|
|
@@ -146258,7 +146230,7 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_9__.TileTree {
|
|
|
146258
146230
|
this.viewFlagOverrides = {};
|
|
146259
146231
|
this._tileGraphics = new Map();
|
|
146260
146232
|
const worldContentRange = this.iModelTransform.multiplyRange(cloudRange);
|
|
146261
|
-
/* eslint-disable-next-line
|
|
146233
|
+
/* eslint-disable-next-line @typescript-eslint/no-deprecated */
|
|
146262
146234
|
this.iModel.expandDisplayedExtents(worldContentRange);
|
|
146263
146235
|
this._tileParams = { contentId: "0", range: cloudRange, maximumSize: 256 };
|
|
146264
146236
|
this.rootTile = new OrbitGtRootTile(this._tileParams, this);
|
|
@@ -146362,7 +146334,6 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_9__.TileTree {
|
|
|
146362
146334
|
}
|
|
146363
146335
|
}
|
|
146364
146336
|
/** @internal */
|
|
146365
|
-
// eslint-disable-next-line no-redeclare
|
|
146366
146337
|
(function (OrbitGtTileTree) {
|
|
146367
146338
|
function isValidSASToken(downloadUrl) {
|
|
146368
146339
|
// Create fake URL for and parameter parsing and SAS token URI parsing
|
|
@@ -146682,7 +146653,7 @@ async function readPointCloudTileContent(stream, iModel, modelId, _is3d, tile, s
|
|
|
146682
146653
|
const buf = new Uint8Array(stream.arrayBuffer, dataOffset + draco.byteOffset, draco.byteLength);
|
|
146683
146654
|
props = await decodeDracoPointCloud(buf);
|
|
146684
146655
|
}
|
|
146685
|
-
catch
|
|
146656
|
+
catch {
|
|
146686
146657
|
//
|
|
146687
146658
|
}
|
|
146688
146659
|
}
|
|
@@ -146830,7 +146801,7 @@ class PrimaryTreeSupplier {
|
|
|
146830
146801
|
elevation = (lo + hi) / 2;
|
|
146831
146802
|
}
|
|
146832
146803
|
}
|
|
146833
|
-
catch
|
|
146804
|
+
catch {
|
|
146834
146805
|
//
|
|
146835
146806
|
}
|
|
146836
146807
|
return new PlanProjectionTileTree(params, id.treeId, elevation);
|
|
@@ -146883,7 +146854,7 @@ class PrimaryTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTr
|
|
|
146883
146854
|
return cutApp ? app.extendAppearance(cutApp) : app;
|
|
146884
146855
|
});
|
|
146885
146856
|
}
|
|
146886
|
-
const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(model.id, view.displayStyle.scheduleScriptReference); // eslint-disable-line
|
|
146857
|
+
const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(model.id, view.displayStyle.scheduleScriptReference); // eslint-disable-line @typescript-eslint/no-deprecated
|
|
146887
146858
|
this._id = {
|
|
146888
146859
|
modelId: model.id,
|
|
146889
146860
|
is3d: model.is3d,
|
|
@@ -146928,7 +146899,7 @@ class PrimaryTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTr
|
|
|
146928
146899
|
}
|
|
146929
146900
|
get treeOwner() {
|
|
146930
146901
|
const newId = this.createTreeId(this.view, this._id.modelId);
|
|
146931
|
-
const timeline = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(this._id.modelId, this.view.displayStyle.scheduleScriptReference)?.timeline; // eslint-disable-line
|
|
146902
|
+
const timeline = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(this._id.modelId, this.view.displayStyle.scheduleScriptReference)?.timeline; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
146932
146903
|
if (0 !== (0,_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.compareIModelTileTreeIds)(newId, this._id.treeId) || timeline !== this._id.timeline) {
|
|
146933
146904
|
this._id = {
|
|
146934
146905
|
modelId: this._id.modelId,
|
|
@@ -146954,7 +146925,7 @@ class PrimaryTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTr
|
|
|
146954
146925
|
forceSurfaceDiscard: true,
|
|
146955
146926
|
};
|
|
146956
146927
|
}
|
|
146957
|
-
const animationId = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(modelId, view.displayStyle.scheduleScriptReference)?.animationId; // eslint-disable-line
|
|
146928
|
+
const animationId = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(modelId, view.displayStyle.scheduleScriptReference)?.animationId; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
146958
146929
|
const renderMode = this._viewFlagOverrides.renderMode ?? view.viewFlags.renderMode;
|
|
146959
146930
|
const visibleEdges = this._viewFlagOverrides.visibleEdges ?? view.viewFlags.visibleEdges;
|
|
146960
146931
|
const edgesRequired = visibleEdges || _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderMode.SmoothShade !== renderMode || _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.alwaysRequestEdges;
|
|
@@ -147248,7 +147219,7 @@ class SpatialRefs {
|
|
|
147248
147219
|
this._sectionCutOnlyRefs = new Map();
|
|
147249
147220
|
this._swapSectionCutOnlyRefs = new Map();
|
|
147250
147221
|
this._view = view;
|
|
147251
|
-
this._scheduleScript = view.displayStyle.scheduleScriptReference; // eslint-disable-line
|
|
147222
|
+
this._scheduleScript = view.displayStyle.scheduleScriptReference; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
147252
147223
|
this._sectionCut = this.getSectionCutFromView();
|
|
147253
147224
|
if (excludedModels)
|
|
147254
147225
|
this._excludedModels = new Set(excludedModels);
|
|
@@ -147310,7 +147281,7 @@ class SpatialRefs {
|
|
|
147310
147281
|
this._allLoaded = true;
|
|
147311
147282
|
this.updateModels();
|
|
147312
147283
|
}
|
|
147313
|
-
const curScript = this._view.displayStyle.scheduleScriptReference; // eslint-disable-line
|
|
147284
|
+
const curScript = this._view.displayStyle.scheduleScriptReference; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
147314
147285
|
const prevScript = this._scheduleScript;
|
|
147315
147286
|
if (curScript !== prevScript) {
|
|
147316
147287
|
this._scheduleScript = curScript;
|
|
@@ -147816,14 +147787,13 @@ class RealityModelTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.Realit
|
|
|
147816
147787
|
this._isContentUnbounded = this.rootTile.contentRange.diagonal().magnitude() > 2 * _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Constant.earthRadiusWGS84.equator;
|
|
147817
147788
|
if (!this.isContentUnbounded && !this.rootTile.contentRange.isNull) {
|
|
147818
147789
|
const worldContentRange = this.iModelTransform.multiplyRange(this.rootTile.contentRange);
|
|
147819
|
-
/* eslint-disable-next-line
|
|
147790
|
+
/* eslint-disable-next-line @typescript-eslint/no-deprecated */
|
|
147820
147791
|
this.iModel.expandDisplayedExtents(worldContentRange);
|
|
147821
147792
|
}
|
|
147822
147793
|
}
|
|
147823
147794
|
get isContentUnbounded() { return this._isContentUnbounded; }
|
|
147824
147795
|
}
|
|
147825
147796
|
/** @internal */
|
|
147826
|
-
// eslint-disable-next-line no-redeclare
|
|
147827
147797
|
(function (RealityModelTileTree) {
|
|
147828
147798
|
class Reference extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTreeReference {
|
|
147829
147799
|
// public get classifiers(): SpatialClassifiers | undefined { return undefined !== this._classifier ? this._classifier.classifiers : undefined; }
|
|
@@ -148894,7 +148864,7 @@ class RealityTileLoader {
|
|
|
148894
148864
|
if (content.containsPointCloud)
|
|
148895
148865
|
this._containsPointClouds = true;
|
|
148896
148866
|
}
|
|
148897
|
-
catch
|
|
148867
|
+
catch {
|
|
148898
148868
|
// Failure to load should prevent us from trying to load children
|
|
148899
148869
|
content.isLeaf = true;
|
|
148900
148870
|
}
|
|
@@ -149592,7 +149562,7 @@ class ThreeDTileFormatInterpreter {
|
|
|
149592
149562
|
}
|
|
149593
149563
|
}
|
|
149594
149564
|
}
|
|
149595
|
-
catch
|
|
149565
|
+
catch {
|
|
149596
149566
|
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning(loggerCategory, `Error getSpatialLocationAndExtents - cannot interpret json`);
|
|
149597
149567
|
// return first 1024 char from the json
|
|
149598
149568
|
const getMetaData = () => {
|
|
@@ -150654,7 +150624,6 @@ class TileAdmin {
|
|
|
150654
150624
|
* @internal
|
|
150655
150625
|
*/
|
|
150656
150626
|
isTileInUse(marker) {
|
|
150657
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
150658
150627
|
for (const [_user, markers] of this._tileUsagePerUser)
|
|
150659
150628
|
if (markers.has(marker))
|
|
150660
150629
|
return true;
|
|
@@ -150938,7 +150907,7 @@ class TileAdmin {
|
|
|
150938
150907
|
_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.lookup(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelTileRpcInterface, "requestTileTreeProps").policy.retryInterval = () => retryInterval;
|
|
150939
150908
|
const policy = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.lookup(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelTileRpcInterface, "generateTileContent").policy;
|
|
150940
150909
|
policy.retryInterval = () => retryInterval;
|
|
150941
|
-
policy.allowResponseCaching = () => _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcResponseCacheControl.Immutable;
|
|
150910
|
+
policy.allowResponseCaching = () => _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcResponseCacheControl.Immutable;
|
|
150942
150911
|
}
|
|
150943
150912
|
}
|
|
150944
150913
|
/** @public */
|
|
@@ -151620,7 +151589,7 @@ class TileRequest {
|
|
|
151620
151589
|
this.notifyAndClear();
|
|
151621
151590
|
this.channel.recordCompletion(this.tile, content, Date.now() - start);
|
|
151622
151591
|
}
|
|
151623
|
-
catch
|
|
151592
|
+
catch {
|
|
151624
151593
|
this.setFailed();
|
|
151625
151594
|
}
|
|
151626
151595
|
}
|
|
@@ -152154,7 +152123,7 @@ class TileStorage {
|
|
|
152154
152123
|
});
|
|
152155
152124
|
return new Uint8Array(buffer); // should always be Buffer because transferType === "buffer"
|
|
152156
152125
|
}
|
|
152157
|
-
catch
|
|
152126
|
+
catch {
|
|
152158
152127
|
// @itwin/object-storage re-throws internal implementation-specific errors, so let's treat them all as 404 for now.
|
|
152159
152128
|
return undefined;
|
|
152160
152129
|
}
|
|
@@ -153435,7 +153404,6 @@ class ArcGISTileMap {
|
|
|
153435
153404
|
this._restBaseUrl = restBaseUrl;
|
|
153436
153405
|
this._fetchFunc = fetchFunc;
|
|
153437
153406
|
this._settings = settings;
|
|
153438
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
153439
153407
|
this._callQueues = new Array(ArcGISTileMap.maxLod).fill(Promise.resolve(nonVisibleChildren));
|
|
153440
153408
|
}
|
|
153441
153409
|
async fetchTileMapFromServer(level, row, column, width, height) {
|
|
@@ -153916,7 +153884,7 @@ class ArcGisUtilities {
|
|
|
153916
153884
|
ArcGisUtilities._serviceCache.set(url, (errorCode === undefined ? info : undefined));
|
|
153917
153885
|
return info; // Always return json, even though it contains an error code.
|
|
153918
153886
|
}
|
|
153919
|
-
catch
|
|
153887
|
+
catch {
|
|
153920
153888
|
ArcGisUtilities._serviceCache.set(url, undefined);
|
|
153921
153889
|
return undefined;
|
|
153922
153890
|
}
|
|
@@ -154074,7 +154042,7 @@ class BingElevationProvider {
|
|
|
154074
154042
|
const tileResponseBody = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_0__.request)(requestUrl, "json");
|
|
154075
154043
|
return tileResponseBody.resourceSets[0].resources[0].elevations[0];
|
|
154076
154044
|
}
|
|
154077
|
-
catch
|
|
154045
|
+
catch {
|
|
154078
154046
|
return 0.0;
|
|
154079
154047
|
}
|
|
154080
154048
|
}
|
|
@@ -154089,7 +154057,7 @@ class BingElevationProvider {
|
|
|
154089
154057
|
const tileResponseBody = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_0__.request)(requestUrl, "json");
|
|
154090
154058
|
return tileResponseBody.resourceSets[0].resources[0].elevations;
|
|
154091
154059
|
}
|
|
154092
|
-
catch
|
|
154060
|
+
catch {
|
|
154093
154061
|
return undefined;
|
|
154094
154062
|
}
|
|
154095
154063
|
}
|
|
@@ -154103,7 +154071,7 @@ class BingElevationProvider {
|
|
|
154103
154071
|
const tileResponseBody = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_0__.request)(requestUrl, "json");
|
|
154104
154072
|
return tileResponseBody.resourceSets[0].resources[0].offsets[0];
|
|
154105
154073
|
}
|
|
154106
|
-
catch
|
|
154074
|
+
catch {
|
|
154107
154075
|
return 0.0;
|
|
154108
154076
|
}
|
|
154109
154077
|
}
|
|
@@ -154229,7 +154197,7 @@ async function getCesiumAccessTokenAndEndpointUrl(assetId, requestKey) {
|
|
|
154229
154197
|
}
|
|
154230
154198
|
return { token: apiResponse.accessToken, url: apiResponse.url };
|
|
154231
154199
|
}
|
|
154232
|
-
catch
|
|
154200
|
+
catch {
|
|
154233
154201
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false);
|
|
154234
154202
|
return {};
|
|
154235
154203
|
}
|
|
@@ -154255,7 +154223,7 @@ async function getCesiumTerrainProvider(opts) {
|
|
|
154255
154223
|
const layerUrl = `${accessTokenAndEndpointUrl.url}layer.json`;
|
|
154256
154224
|
layers = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_4__.request)(layerUrl, "json", layerRequestOptions);
|
|
154257
154225
|
}
|
|
154258
|
-
catch
|
|
154226
|
+
catch {
|
|
154259
154227
|
notifyTerrainError();
|
|
154260
154228
|
return undefined;
|
|
154261
154229
|
}
|
|
@@ -154370,7 +154338,7 @@ class CesiumTerrainProvider extends _internal__WEBPACK_IMPORTED_MODULE_8__.Terra
|
|
|
154370
154338
|
const response = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_4__.request)(tileUrl, "arraybuffer", requestOptions);
|
|
154371
154339
|
return new Uint8Array(response);
|
|
154372
154340
|
}
|
|
154373
|
-
catch
|
|
154341
|
+
catch {
|
|
154374
154342
|
return undefined;
|
|
154375
154343
|
}
|
|
154376
154344
|
}
|
|
@@ -154817,7 +154785,7 @@ class ArcGISImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_0__.MapLa
|
|
|
154817
154785
|
try {
|
|
154818
154786
|
metadata = await _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.getServiceJson({ url: this._settings.url, formatId: this._settings.formatId, userName: this._settings.userName, password: this._settings.password, queryParams: this._settings.collectQueryParams() });
|
|
154819
154787
|
}
|
|
154820
|
-
catch
|
|
154788
|
+
catch {
|
|
154821
154789
|
}
|
|
154822
154790
|
if (metadata && metadata.accessTokenRequired) {
|
|
154823
154791
|
const accessClient = _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.mapLayerFormatRegistry.getAccessClient(this._settings.formatId);
|
|
@@ -155518,15 +155486,14 @@ class BingMapsImageryLayerProvider extends _internal__WEBPACK_IMPORTED_MODULE_3_
|
|
|
155518
155486
|
return matchingAttributions;
|
|
155519
155487
|
const unmatchedSet = this._attributions.slice();
|
|
155520
155488
|
for (const tile of tiles) {
|
|
155521
|
-
if (tile instanceof _internal__WEBPACK_IMPORTED_MODULE_3__.MapTile)
|
|
155489
|
+
if (tile instanceof _internal__WEBPACK_IMPORTED_MODULE_3__.MapTile) {
|
|
155522
155490
|
// compare to the set of Bing attributions that we have not yet matched.
|
|
155523
|
-
for (
|
|
155524
|
-
const attribution = unmatchedSet[iAttr];
|
|
155491
|
+
for (const attribution of unmatchedSet) {
|
|
155525
155492
|
if (attribution && attribution.matchesTile(tile, this._mapTilingScheme)) {
|
|
155526
155493
|
matchingAttributions.push(attribution);
|
|
155527
|
-
delete unmatchedSet[iAttr];
|
|
155528
155494
|
}
|
|
155529
155495
|
}
|
|
155496
|
+
}
|
|
155530
155497
|
}
|
|
155531
155498
|
return matchingAttributions;
|
|
155532
155499
|
}
|
|
@@ -155568,7 +155535,7 @@ class BingMapsImageryLayerProvider extends _internal__WEBPACK_IMPORTED_MODULE_3_
|
|
|
155568
155535
|
this._missingTileData = tileData.data;
|
|
155569
155536
|
});
|
|
155570
155537
|
}
|
|
155571
|
-
catch
|
|
155538
|
+
catch {
|
|
155572
155539
|
throw new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.BadModel, "Error in Bing Server communications");
|
|
155573
155540
|
}
|
|
155574
155541
|
}
|
|
@@ -155889,7 +155856,7 @@ class FeatureGraphicsRenderer extends _internal__WEBPACK_IMPORTED_MODULE_3__.Fea
|
|
|
155889
155856
|
const spatialPoints = await this.toSpatial(pointsArray);
|
|
155890
155857
|
this._graphics.push({ type: "pointstring", points: spatialPoints });
|
|
155891
155858
|
}
|
|
155892
|
-
catch
|
|
155859
|
+
catch {
|
|
155893
155860
|
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logError(loggerCategory, "FeatureGraphicsRenderer: Could not reproject points");
|
|
155894
155861
|
}
|
|
155895
155862
|
this._scratchPointsArray.clear();
|
|
@@ -159180,7 +159147,7 @@ class MapTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_3__.RealityTileLo
|
|
|
159180
159147
|
const data = await this.terrainProvider.requestMeshData({ tile, isCanceled });
|
|
159181
159148
|
return undefined !== data ? { data } : undefined;
|
|
159182
159149
|
}
|
|
159183
|
-
catch
|
|
159150
|
+
catch {
|
|
159184
159151
|
return undefined;
|
|
159185
159152
|
}
|
|
159186
159153
|
}
|
|
@@ -166308,7 +166275,7 @@ class MeasureMarker extends _Marker__WEBPACK_IMPORTED_MODULE_7__.Marker {
|
|
|
166308
166275
|
ctx.fill();
|
|
166309
166276
|
ctx.stroke();
|
|
166310
166277
|
};
|
|
166311
|
-
this.drawFunc = markerDrawFunc;
|
|
166278
|
+
this.drawFunc = markerDrawFunc;
|
|
166312
166279
|
this.title = title;
|
|
166313
166280
|
this.label = label;
|
|
166314
166281
|
this.labelFont = "16px sans-serif";
|
|
@@ -166699,7 +166666,7 @@ class MeasureDistanceTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_10__.P
|
|
|
166699
166666
|
ev.viewport.invalidateDecorations();
|
|
166700
166667
|
return true;
|
|
166701
166668
|
};
|
|
166702
|
-
marker.onMouseButton = segMarkerButtonFunc;
|
|
166669
|
+
marker.onMouseButton = segMarkerButtonFunc;
|
|
166703
166670
|
this._acceptedSegments.push({ distance, slope, start, end, delta, adjustedStart, adjustedEnd, adjustedDelta, refAxes, marker });
|
|
166704
166671
|
}
|
|
166705
166672
|
}
|
|
@@ -175580,7 +175547,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
175580
175547
|
*--------------------------------------------------------------------------------------------*/
|
|
175581
175548
|
|
|
175582
175549
|
|
|
175583
|
-
/* eslint-disable @typescript-eslint/naming-convention
|
|
175550
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
175584
175551
|
/**
|
|
175585
175552
|
* Enumeration of the 6 possible orderings of XYZ axis order
|
|
175586
175553
|
* * **Note:** There are 3 axis order with right hand system (XYZ = 0, YZX = 1, ZXY = 2) and 3 axis order with
|
|
@@ -176639,7 +176606,7 @@ class Geometry {
|
|
|
176639
176606
|
* * If the clone method returns `undefined`, then `undefined` is forced into the cloned array.
|
|
176640
176607
|
* @deprecated in 4.x. Use cloneArray.
|
|
176641
176608
|
*/
|
|
176642
|
-
// eslint-disable-next-line
|
|
176609
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
176643
176610
|
static cloneMembers(array) {
|
|
176644
176611
|
if (array === undefined)
|
|
176645
176612
|
return undefined;
|
|
@@ -176886,7 +176853,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
176886
176853
|
*/
|
|
176887
176854
|
// import { Point2d } from "../Geometry2d";
|
|
176888
176855
|
|
|
176889
|
-
/* eslint-disable @typescript-eslint/naming-convention, no-empty */
|
|
176890
176856
|
|
|
176891
176857
|
|
|
176892
176858
|
/** Bspline knots and poles for 1d-to-Nd.
|
|
@@ -177364,13 +177330,14 @@ class BSplineCurve3dBase extends _curve_CurvePrimitive__WEBPACK_IMPORTED_MODULE_
|
|
|
177364
177330
|
* * If the space point is exactly on the curve, this is the reverse of fractionToPoint.
|
|
177365
177331
|
* * Since CurvePrimitive should always have start and end available as candidate points, this method should always succeed
|
|
177366
177332
|
* @param spacePoint point in space
|
|
177367
|
-
* @param _extend ignored. A BSplineCurve3dBase cannot be extended.
|
|
177368
|
-
* @
|
|
177333
|
+
* @param _extend ignored (pass false). A BSplineCurve3dBase cannot be extended.
|
|
177334
|
+
* @param result optional pre-allocated detail to populate and return.
|
|
177335
|
+
* @returns details of the closest point.
|
|
177369
177336
|
*/
|
|
177370
|
-
closestPoint(spacePoint, _extend) {
|
|
177337
|
+
closestPoint(spacePoint, _extend, result) {
|
|
177371
177338
|
// seed at start point -- final point comes with final bezier perpendicular step.
|
|
177372
177339
|
const point = this.fractionToPoint(0);
|
|
177373
|
-
|
|
177340
|
+
result = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveFractionPointDistance(this, 0.0, point, point.distance(spacePoint), result);
|
|
177374
177341
|
let span;
|
|
177375
177342
|
const numSpans = this.numSpan;
|
|
177376
177343
|
for (let i = 0; i < numSpans; i++) {
|
|
@@ -185846,7 +185813,7 @@ class ClipVector {
|
|
|
185846
185813
|
result._clips.push(clipPrim);
|
|
185847
185814
|
}
|
|
185848
185815
|
}
|
|
185849
|
-
catch
|
|
185816
|
+
catch {
|
|
185850
185817
|
result.clear();
|
|
185851
185818
|
}
|
|
185852
185819
|
return result;
|
|
@@ -190342,9 +190309,10 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
|
|
|
190342
190309
|
* has pointer to an additional detail for the child curve.
|
|
190343
190310
|
* @param spacePoint point in space
|
|
190344
190311
|
* @param extend true to extend the curve
|
|
190345
|
-
* @
|
|
190312
|
+
* @param result optional pre-allocated detail to populate and return.
|
|
190313
|
+
* @returns details of the closest point
|
|
190346
190314
|
*/
|
|
190347
|
-
closestPoint(spacePoint, extend) {
|
|
190315
|
+
closestPoint(spacePoint, extend, result) {
|
|
190348
190316
|
let childDetail;
|
|
190349
190317
|
let aMin = Number.MAX_VALUE;
|
|
190350
190318
|
const numChildren = this.path.children.length;
|
|
@@ -190383,7 +190351,7 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
|
|
|
190383
190351
|
}
|
|
190384
190352
|
if (!childDetail)
|
|
190385
190353
|
return undefined;
|
|
190386
|
-
return this.computeChainDetail(childDetail);
|
|
190354
|
+
return this.computeChainDetail(childDetail, result);
|
|
190387
190355
|
}
|
|
190388
190356
|
/**
|
|
190389
190357
|
* Construct an offset of each child as viewed in the xy-plane (ignoring z).
|
|
@@ -190419,17 +190387,18 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
|
|
|
190419
190387
|
/**
|
|
190420
190388
|
* Compute the global chain detail corresponding to a local child detail.
|
|
190421
190389
|
* @param childDetail the local (fragment) detail, captured as-is.
|
|
190422
|
-
* @
|
|
190423
|
-
* field
|
|
190390
|
+
* @param result optional pre-allocated detail to populate and return.
|
|
190391
|
+
* @returns global (chain) detail with its `childDetail` field pointing to the input and its `a`
|
|
190392
|
+
* field copied from the input, but if a PathFragment for `childDetail` cannot be resolved, return undefined.
|
|
190424
190393
|
*/
|
|
190425
|
-
computeChainDetail(childDetail) {
|
|
190394
|
+
computeChainDetail(childDetail, result) {
|
|
190426
190395
|
if (!childDetail.curve)
|
|
190427
190396
|
return undefined;
|
|
190428
190397
|
const fragment = this.curveAndChildFractionToFragment(childDetail.curve, childDetail.fraction);
|
|
190429
190398
|
if (fragment) {
|
|
190430
190399
|
const chainDistance = fragment.childFractionToChainDistance(childDetail.fraction);
|
|
190431
190400
|
const chainFraction = this.chainDistanceToChainFraction(chainDistance);
|
|
190432
|
-
const chainDetail = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail.createCurveFractionPoint(this, chainFraction, childDetail.point);
|
|
190401
|
+
const chainDetail = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail.createCurveFractionPoint(this, chainFraction, childDetail.point, result);
|
|
190433
190402
|
chainDetail.childDetail = childDetail;
|
|
190434
190403
|
chainDetail.a = childDetail.a;
|
|
190435
190404
|
return chainDetail;
|
|
@@ -190489,16 +190458,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
190489
190458
|
/* harmony export */ "CurveCollection": () => (/* binding */ CurveCollection)
|
|
190490
190459
|
/* harmony export */ });
|
|
190491
190460
|
/* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
|
|
190492
|
-
/* harmony import */ var
|
|
190493
|
-
/* harmony import */ var
|
|
190461
|
+
/* harmony import */ var _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
|
|
190462
|
+
/* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
|
|
190494
190463
|
/* harmony import */ var _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GeometryQuery */ "../../core/geometry/lib/esm/curve/GeometryQuery.js");
|
|
190495
|
-
/* harmony import */ var
|
|
190496
|
-
/* harmony import */ var
|
|
190497
|
-
/* harmony import */ var
|
|
190498
|
-
/* harmony import */ var
|
|
190464
|
+
/* harmony import */ var _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./internalContexts/CloneCurvesContext */ "../../core/geometry/lib/esm/curve/internalContexts/CloneCurvesContext.js");
|
|
190465
|
+
/* harmony import */ var _internalContexts_CloneWithExpandedLineStrings__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./internalContexts/CloneWithExpandedLineStrings */ "../../core/geometry/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.js");
|
|
190466
|
+
/* harmony import */ var _internalContexts_CountLinearPartsSearchContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./internalContexts/CountLinearPartsSearchContext */ "../../core/geometry/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js");
|
|
190467
|
+
/* harmony import */ var _internalContexts_GapSearchContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./internalContexts/GapSearchContext */ "../../core/geometry/lib/esm/curve/internalContexts/GapSearchContext.js");
|
|
190499
190468
|
/* harmony import */ var _internalContexts_PlaneAltitudeRangeContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./internalContexts/PlaneAltitudeRangeContext */ "../../core/geometry/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js");
|
|
190500
190469
|
/* harmony import */ var _internalContexts_SumLengthsContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internalContexts/SumLengthsContext */ "../../core/geometry/lib/esm/curve/internalContexts/SumLengthsContext.js");
|
|
190501
|
-
/* harmony import */ var
|
|
190470
|
+
/* harmony import */ var _internalContexts_TransformInPlaceContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./internalContexts/TransformInPlaceContext */ "../../core/geometry/lib/esm/curve/internalContexts/TransformInPlaceContext.js");
|
|
190502
190471
|
/* harmony import */ var _LineString3d__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./LineString3d */ "../../core/geometry/lib/esm/curve/LineString3d.js");
|
|
190503
190472
|
/* harmony import */ var _ProxyCurve__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ProxyCurve */ "../../core/geometry/lib/esm/curve/ProxyCurve.js");
|
|
190504
190473
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -190546,19 +190515,20 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
|
|
|
190546
190515
|
sumLengths() {
|
|
190547
190516
|
return _internalContexts_SumLengthsContext__WEBPACK_IMPORTED_MODULE_1__.SumLengthsContext.sumLengths(this);
|
|
190548
190517
|
}
|
|
190549
|
-
/**
|
|
190550
|
-
|
|
190518
|
+
/**
|
|
190519
|
+
* Return the closest point on the contained curves.
|
|
190520
|
+
* @param spacePoint point in space.
|
|
190521
|
+
* @param _extend unused here (pass false), but applicable to overrides in [[Path]] and [[BagOfCurves]].
|
|
190522
|
+
* @param result optional pre-allocated detail to populate and return.
|
|
190523
|
+
* @returns details of the closest point.
|
|
190524
|
+
*/
|
|
190525
|
+
closestPoint(spacePoint, _extend = false, result) {
|
|
190551
190526
|
let detailA;
|
|
190527
|
+
const detailB = new _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail();
|
|
190552
190528
|
if (this.children !== undefined) {
|
|
190553
190529
|
for (const child of this.children) {
|
|
190554
|
-
if (child
|
|
190555
|
-
|
|
190556
|
-
detailA = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.chooseSmallerA(detailA, detailB);
|
|
190557
|
-
}
|
|
190558
|
-
else if (child instanceof CurveCollection) {
|
|
190559
|
-
const detailB = child.closestPoint(spacePoint);
|
|
190560
|
-
detailA = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.chooseSmallerA(detailA, detailB);
|
|
190561
|
-
}
|
|
190530
|
+
if (child.closestPoint(spacePoint, false, detailB))
|
|
190531
|
+
detailA = result = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.chooseSmallerA(detailA, detailB).clone(result);
|
|
190562
190532
|
}
|
|
190563
190533
|
}
|
|
190564
190534
|
return detailA;
|
|
@@ -190571,27 +190541,27 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
|
|
|
190571
190541
|
* "unstructured" so gaps should not be semantically meaningful.
|
|
190572
190542
|
*/
|
|
190573
190543
|
maxGap() {
|
|
190574
|
-
return
|
|
190544
|
+
return _internalContexts_GapSearchContext__WEBPACK_IMPORTED_MODULE_3__.GapSearchContext.maxGap(this);
|
|
190575
190545
|
}
|
|
190576
190546
|
/** Return true if the curve collection has any primitives other than LineSegment3d and LineString3d */
|
|
190577
190547
|
checkForNonLinearPrimitives() {
|
|
190578
|
-
return
|
|
190548
|
+
return _internalContexts_CountLinearPartsSearchContext__WEBPACK_IMPORTED_MODULE_4__.CountLinearPartsSearchContext.hasNonLinearPrimitives(this);
|
|
190579
190549
|
}
|
|
190580
190550
|
/** Apply transform recursively to children */
|
|
190581
190551
|
tryTransformInPlace(transform) {
|
|
190582
|
-
return
|
|
190552
|
+
return _internalContexts_TransformInPlaceContext__WEBPACK_IMPORTED_MODULE_5__.TransformInPlaceContext.tryTransformInPlace(this, transform);
|
|
190583
190553
|
}
|
|
190584
190554
|
/** Return a deep copy. */
|
|
190585
190555
|
clone() {
|
|
190586
|
-
return
|
|
190556
|
+
return _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_6__.CloneCurvesContext.clone(this);
|
|
190587
190557
|
}
|
|
190588
190558
|
/** Create a deep copy of transformed curves. */
|
|
190589
190559
|
cloneTransformed(transform) {
|
|
190590
|
-
return
|
|
190560
|
+
return _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_6__.CloneCurvesContext.clone(this, transform);
|
|
190591
190561
|
}
|
|
190592
190562
|
/** Create a deep copy with all linestrings broken down into multiple LineSegment3d. */
|
|
190593
190563
|
cloneWithExpandedLineStrings() {
|
|
190594
|
-
return
|
|
190564
|
+
return _internalContexts_CloneWithExpandedLineStrings__WEBPACK_IMPORTED_MODULE_7__.CloneWithExpandedLineStrings.clone(this);
|
|
190595
190565
|
}
|
|
190596
190566
|
/**
|
|
190597
190567
|
* Push all CurvePrimitives contained in the instance onto the `results` array.
|
|
@@ -190601,7 +190571,7 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
|
|
|
190601
190571
|
collectCurvePrimitivesGo(results, smallestPossiblePrimitives, explodeLinestrings = false) {
|
|
190602
190572
|
if (this.children) {
|
|
190603
190573
|
for (const child of this.children) {
|
|
190604
|
-
if (child instanceof
|
|
190574
|
+
if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive)
|
|
190605
190575
|
child.collectCurvePrimitivesGo(results, smallestPossiblePrimitives, explodeLinestrings);
|
|
190606
190576
|
else if (child instanceof CurveCollection)
|
|
190607
190577
|
child.collectCurvePrimitivesGo(results, smallestPossiblePrimitives, explodeLinestrings);
|
|
@@ -190681,8 +190651,8 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
|
|
|
190681
190651
|
static createCurveLocationDetailOnAnyCurvePrimitive(source, fraction = 0.5) {
|
|
190682
190652
|
if (!source)
|
|
190683
190653
|
return undefined;
|
|
190684
|
-
if (source instanceof
|
|
190685
|
-
return
|
|
190654
|
+
if (source instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive) {
|
|
190655
|
+
return _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveEvaluatedFraction(source, fraction);
|
|
190686
190656
|
}
|
|
190687
190657
|
else if (source instanceof CurveCollection && source.children !== undefined)
|
|
190688
190658
|
for (const child of source.children) {
|
|
@@ -190724,6 +190694,22 @@ class CurveChain extends CurveCollection {
|
|
|
190724
190694
|
get children() {
|
|
190725
190695
|
return this._curves;
|
|
190726
190696
|
}
|
|
190697
|
+
/** Return the start point of the curve chain (start point of the first child). */
|
|
190698
|
+
startPoint(result) {
|
|
190699
|
+
const firstChild = this.getChild(0);
|
|
190700
|
+
if (firstChild)
|
|
190701
|
+
return firstChild.fractionToPoint(0.0, result);
|
|
190702
|
+
else
|
|
190703
|
+
return undefined;
|
|
190704
|
+
}
|
|
190705
|
+
/** Return the end point of the curve chain (end point of the last child). */
|
|
190706
|
+
endPoint(result) {
|
|
190707
|
+
const lastChild = this.getChild(this._curves.length - 1);
|
|
190708
|
+
if (lastChild)
|
|
190709
|
+
return lastChild.fractionToPoint(1.0, result);
|
|
190710
|
+
else
|
|
190711
|
+
return undefined;
|
|
190712
|
+
}
|
|
190727
190713
|
/**
|
|
190728
190714
|
* Return the curve primitive at the given `index`, optionally using `modulo` to map `index` to the cyclic indexing.
|
|
190729
190715
|
* * In particular, `-1` is the final curve.
|
|
@@ -190768,7 +190754,7 @@ class CurveChain extends CurveCollection {
|
|
|
190768
190754
|
* @return whether the child was added
|
|
190769
190755
|
*/
|
|
190770
190756
|
tryAddChild(child) {
|
|
190771
|
-
if (child && child instanceof
|
|
190757
|
+
if (child && child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive) {
|
|
190772
190758
|
this._curves.push(child);
|
|
190773
190759
|
return true;
|
|
190774
190760
|
}
|
|
@@ -190818,7 +190804,7 @@ class CurveChain extends CurveCollection {
|
|
|
190818
190804
|
primitiveIndexAndFractionToCurveLocationDetailPointAndDerivative(index, fraction, cyclic = false, result) {
|
|
190819
190805
|
const primitive = this.cyclicCurvePrimitive(index, cyclic);
|
|
190820
190806
|
if (primitive) {
|
|
190821
|
-
return
|
|
190807
|
+
return _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveEvaluatedFractionPointAndDerivative(primitive, fraction, result);
|
|
190822
190808
|
}
|
|
190823
190809
|
return undefined;
|
|
190824
190810
|
}
|
|
@@ -190865,7 +190851,7 @@ class BagOfCurves extends CurveCollection {
|
|
|
190865
190851
|
const clone = new BagOfCurves();
|
|
190866
190852
|
let child;
|
|
190867
190853
|
for (child of this.children) {
|
|
190868
|
-
if (child instanceof
|
|
190854
|
+
if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive) {
|
|
190869
190855
|
const ls = _LineString3d__WEBPACK_IMPORTED_MODULE_11__.LineString3d.create();
|
|
190870
190856
|
child.emitStrokes(ls, options);
|
|
190871
190857
|
if (ls)
|
|
@@ -190879,6 +190865,24 @@ class BagOfCurves extends CurveCollection {
|
|
|
190879
190865
|
}
|
|
190880
190866
|
return clone;
|
|
190881
190867
|
}
|
|
190868
|
+
/**
|
|
190869
|
+
* Return the closest point on the contained curves.
|
|
190870
|
+
* @param spacePoint point in space.
|
|
190871
|
+
* @param extend applicable only to children of type [[CurvePrimitive]], [[Path]], or [[BagOfCurves]]
|
|
190872
|
+
* @param result optional pre-allocated detail to populate and return.
|
|
190873
|
+
* @returns details of the closest point.
|
|
190874
|
+
*/
|
|
190875
|
+
closestPoint(spacePoint, extend = false, result) {
|
|
190876
|
+
let detailA;
|
|
190877
|
+
const detailB = new _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail();
|
|
190878
|
+
if (this.children !== undefined) {
|
|
190879
|
+
for (const child of this.children) {
|
|
190880
|
+
if (child.closestPoint(spacePoint, extend, detailB))
|
|
190881
|
+
detailA = result = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.chooseSmallerA(detailA, detailB).clone(result);
|
|
190882
|
+
}
|
|
190883
|
+
}
|
|
190884
|
+
return detailA;
|
|
190885
|
+
}
|
|
190882
190886
|
/** Return an empty `BagOfCurves` */
|
|
190883
190887
|
cloneEmptyPeer() {
|
|
190884
190888
|
return new BagOfCurves();
|
|
@@ -191067,7 +191071,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
191067
191071
|
* @module Curve
|
|
191068
191072
|
*/
|
|
191069
191073
|
|
|
191070
|
-
/**
|
|
191074
|
+
/**
|
|
191075
|
+
* Enumeration of condition for extending a curve beyond start or end point.
|
|
191071
191076
|
* * Not all CurvePrimitives support these modes.
|
|
191072
191077
|
* @public
|
|
191073
191078
|
*/
|
|
@@ -191075,17 +191080,18 @@ var CurveExtendMode;
|
|
|
191075
191080
|
(function (CurveExtendMode) {
|
|
191076
191081
|
/** No extension allowed. */
|
|
191077
191082
|
CurveExtendMode[CurveExtendMode["None"] = 0] = "None";
|
|
191078
|
-
/** Extend along continuation of the end tangent */
|
|
191083
|
+
/** Extend along continuation of the end tangent. */
|
|
191079
191084
|
CurveExtendMode[CurveExtendMode["OnTangent"] = 1] = "OnTangent";
|
|
191080
191085
|
/** Extend along continuation of the curve. */
|
|
191081
191086
|
CurveExtendMode[CurveExtendMode["OnCurve"] = 2] = "OnCurve";
|
|
191082
191087
|
})(CurveExtendMode || (CurveExtendMode = {}));
|
|
191083
|
-
/**
|
|
191088
|
+
/**
|
|
191089
|
+
* Logic for deciding how a curve may be extended for closest point or intersection searches.
|
|
191084
191090
|
* @public
|
|
191085
191091
|
*/
|
|
191086
191092
|
class CurveExtendOptions {
|
|
191087
191093
|
/**
|
|
191088
|
-
* Given
|
|
191094
|
+
* Given a `VariantCurveExtendParameter`, isolate the particular CurveExtendMode in effect at an end.
|
|
191089
191095
|
* * Return `CurveExtendMode.None` if `param === false`.
|
|
191090
191096
|
* * Return `CurveExtendMode.OnCurve` if `param === true`.
|
|
191091
191097
|
* * Return the param if it is a single CurveExtendMode.
|
|
@@ -191097,15 +191103,14 @@ class CurveExtendOptions {
|
|
|
191097
191103
|
if (param === true)
|
|
191098
191104
|
return CurveExtendMode.OnCurve;
|
|
191099
191105
|
if (Array.isArray(param))
|
|
191100
|
-
return param[endIndex];
|
|
191106
|
+
return param.length > endIndex ? param[endIndex] : CurveExtendMode.None;
|
|
191101
191107
|
return param;
|
|
191102
191108
|
}
|
|
191103
191109
|
/**
|
|
191104
|
-
*
|
|
191105
|
-
* *
|
|
191106
|
-
* *
|
|
191107
|
-
* *
|
|
191108
|
-
*
|
|
191110
|
+
* Correct fraction to be within [0,1].
|
|
191111
|
+
* * If fraction is in [0,1] return it unchanged.
|
|
191112
|
+
* * If fraction is less than 0 use `extendParam` to decide whether to return it unchanged, or to return 0.
|
|
191113
|
+
* * If fraction is greater than 1 use `extendParam` to decide whether to return it unchanged, or to return 1.
|
|
191109
191114
|
*/
|
|
191110
191115
|
static correctFraction(extendParam, fraction) {
|
|
191111
191116
|
if (fraction < 0) {
|
|
@@ -191122,10 +191127,10 @@ class CurveExtendOptions {
|
|
|
191122
191127
|
}
|
|
191123
191128
|
/**
|
|
191124
191129
|
* Adjust a radians value to an angle sweep, allowing the extendParam to affect choice among periodic fractions.
|
|
191125
|
-
* *
|
|
191126
|
-
* *
|
|
191127
|
-
* * fraction below 0
|
|
191128
|
-
* * fraction above 1
|
|
191130
|
+
* * If radians is within the sweep, convert it to a fraction of the sweep.
|
|
191131
|
+
* * If radians is outside, use the extendParam to choose among:
|
|
191132
|
+
* * fraction below 0.
|
|
191133
|
+
* * fraction above 1.
|
|
191129
191134
|
*/
|
|
191130
191135
|
static resolveRadiansToSweepFraction(extendParam, radians, sweep) {
|
|
191131
191136
|
let fraction = sweep.radiansToSignedPeriodicFraction(radians);
|
|
@@ -191135,11 +191140,11 @@ class CurveExtendOptions {
|
|
|
191135
191140
|
const mode1 = CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extendParam, 1);
|
|
191136
191141
|
if (mode0 !== CurveExtendMode.None) {
|
|
191137
191142
|
if (mode1 !== CurveExtendMode.None) {
|
|
191138
|
-
// both extensions possible
|
|
191143
|
+
// both extensions possible; let the sweep resolve to the "closer" end
|
|
191139
191144
|
fraction = sweep.radiansToSignedPeriodicFraction(radians);
|
|
191140
191145
|
}
|
|
191141
191146
|
else {
|
|
191142
|
-
// only extend to negative
|
|
191147
|
+
// only extend to negative
|
|
191143
191148
|
if (fraction > 1.0)
|
|
191144
191149
|
fraction -= fractionPeriod;
|
|
191145
191150
|
}
|
|
@@ -191148,7 +191153,7 @@ class CurveExtendOptions {
|
|
|
191148
191153
|
if (fraction < 0.0)
|
|
191149
191154
|
fraction += fractionPeriod;
|
|
191150
191155
|
}
|
|
191151
|
-
else { // both clamped
|
|
191156
|
+
else { // both clamped
|
|
191152
191157
|
fraction = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.clamp(fraction, 0, 1);
|
|
191153
191158
|
}
|
|
191154
191159
|
}
|
|
@@ -192852,11 +192857,15 @@ class CurvePrimitive extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_1__.Geometr
|
|
|
192852
192857
|
* Search for a point on the curve that is closest to the spacePoint.
|
|
192853
192858
|
* * If the space point is exactly on the curve, this is the reverse of fractionToPoint.
|
|
192854
192859
|
* * Since CurvePrimitive should always have start and end available as candidate points, this method should always
|
|
192855
|
-
* succeed
|
|
192856
|
-
* @param spacePoint point in space
|
|
192857
|
-
* @param extend
|
|
192858
|
-
*
|
|
192859
|
-
*
|
|
192860
|
+
* succeed.
|
|
192861
|
+
* @param spacePoint point in space.
|
|
192862
|
+
* @param extend if applicable, compute the closest point to the curve extended according to variant type:
|
|
192863
|
+
* * false: do not extend the curve
|
|
192864
|
+
* * true: extend the curve at both start and end
|
|
192865
|
+
* * CurveExtendOptions: extend the curve in the specified manner at both start and end
|
|
192866
|
+
* * CurveExtendOptions[]: first entry applies to curve start; second, to curve end; any other entries ignored
|
|
192867
|
+
* @param result optional pre-allocated detail to populate and return.
|
|
192868
|
+
* @returns details of the closest point.
|
|
192860
192869
|
*/
|
|
192861
192870
|
closestPoint(spacePoint, extend, result) {
|
|
192862
192871
|
const strokeHandler = new _internalContexts_ClosestPointStrokeHandler__WEBPACK_IMPORTED_MODULE_10__.ClosestPointStrokeHandler(spacePoint, extend, result);
|
|
@@ -193097,7 +193106,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
193097
193106
|
/* harmony export */ });
|
|
193098
193107
|
/* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
|
|
193099
193108
|
|
|
193100
|
-
/* eslint-disable @typescript-eslint/naming-convention, no-empty */
|
|
193101
193109
|
/** base class for detailed traversal of curve artifacts.
|
|
193102
193110
|
* * This recurses to children in the quickest way (no records of path)
|
|
193103
193111
|
* * Use the RecursiveCurveProcessorWithStack to record the path along the visit.
|
|
@@ -193436,7 +193444,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
193436
193444
|
|
|
193437
193445
|
|
|
193438
193446
|
|
|
193439
|
-
/* eslint-disable @typescript-eslint/naming-convention, no-empty */
|
|
193440
193447
|
/**
|
|
193441
193448
|
* A LineSegment3d is:
|
|
193442
193449
|
* * A 3d line segment represented by its start and end coordinates
|
|
@@ -195617,14 +195624,14 @@ class JointOptions {
|
|
|
195617
195624
|
* * leftOffsetDistance is required
|
|
195618
195625
|
* * minArcDegrees and maxChamferDegrees are optional.
|
|
195619
195626
|
*/
|
|
195620
|
-
constructor(leftOffsetDistance, minArcDegrees = 180, maxChamferDegrees =
|
|
195627
|
+
constructor(leftOffsetDistance, minArcDegrees = 180, maxChamferDegrees = 91, preserveEllipticalArcs = false, allowSharpestCorners = false) {
|
|
195621
195628
|
/**
|
|
195622
195629
|
* Smallest arc to construct.
|
|
195623
195630
|
* * If this control angle is 180 degrees or more, arcs are never created.
|
|
195624
195631
|
*/
|
|
195625
195632
|
this.minArcDegrees = 180.0;
|
|
195626
195633
|
/** Largest turn angle at which to construct a sharp corner, or largest turn angle in a multi-segment chamfer. */
|
|
195627
|
-
this.maxChamferTurnDegrees =
|
|
195634
|
+
this.maxChamferTurnDegrees = 91.0;
|
|
195628
195635
|
/**
|
|
195629
195636
|
* Whether to remove the internal turn angle upper bound for sharp corner construction.
|
|
195630
195637
|
* * By default, a sharp corner is not created at a joint when the turn angle is too large, so as to avoid offsets whose
|
|
@@ -195670,7 +195677,7 @@ class JointOptions {
|
|
|
195670
195677
|
}
|
|
195671
195678
|
/** Return true if the options indicate this amount of turn should be handled with an arc. */
|
|
195672
195679
|
needArc(theta) {
|
|
195673
|
-
return Math.abs(theta.degrees) >= this.minArcDegrees;
|
|
195680
|
+
return Math.abs(theta.degrees) >= this.minArcDegrees - _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallAngleDegrees;
|
|
195674
195681
|
}
|
|
195675
195682
|
/** Return the number of corners needed to chamfer the given turn angle. */
|
|
195676
195683
|
numChamferPoints(theta) {
|
|
@@ -195681,7 +195688,7 @@ class JointOptions {
|
|
|
195681
195688
|
maxStepDegreesClamp = this.maxChamferTurnDegrees;
|
|
195682
195689
|
}
|
|
195683
195690
|
const stepDegrees = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.clamp(this.maxChamferTurnDegrees, minStepDegreesClamp, maxStepDegreesClamp);
|
|
195684
|
-
if (degrees <= stepDegrees)
|
|
195691
|
+
if (degrees <= stepDegrees + _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallAngleDegrees)
|
|
195685
195692
|
return 1;
|
|
195686
195693
|
return Math.ceil(degrees / stepDegrees);
|
|
195687
195694
|
}
|
|
@@ -195902,6 +195909,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
195902
195909
|
/* harmony import */ var _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../geometry3d/Point3dVector3d */ "../../core/geometry/lib/esm/geometry3d/Point3dVector3d.js");
|
|
195903
195910
|
/* harmony import */ var _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CurveChainWithDistanceIndex */ "../../core/geometry/lib/esm/curve/CurveChainWithDistanceIndex.js");
|
|
195904
195911
|
/* harmony import */ var _CurveCollection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CurveCollection */ "../../core/geometry/lib/esm/curve/CurveCollection.js");
|
|
195912
|
+
/* harmony import */ var _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CurveExtendMode */ "../../core/geometry/lib/esm/curve/CurveExtendMode.js");
|
|
195913
|
+
/* harmony import */ var _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
|
|
195905
195914
|
/* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
|
|
195906
195915
|
/* harmony import */ var _LineString3d__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LineString3d */ "../../core/geometry/lib/esm/curve/LineString3d.js");
|
|
195907
195916
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -195913,6 +195922,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
195913
195922
|
|
|
195914
195923
|
|
|
195915
195924
|
|
|
195925
|
+
|
|
195926
|
+
|
|
195916
195927
|
/**
|
|
195917
195928
|
* * A `Path` object is a collection of curves that join head-to-tail to form a path.
|
|
195918
195929
|
* * A `Path` object does not bound a planar region. Use `Loop` to indicate region bounding.
|
|
@@ -195966,6 +195977,31 @@ class Path extends _CurveCollection__WEBPACK_IMPORTED_MODULE_0__.CurveChain {
|
|
|
195966
195977
|
curve.emitStrokes(strokes, options);
|
|
195967
195978
|
return Path.create(strokes);
|
|
195968
195979
|
}
|
|
195980
|
+
/**
|
|
195981
|
+
* Return the closest point on the contained curves.
|
|
195982
|
+
* @param spacePoint point in space.
|
|
195983
|
+
* @param extend compute the closest point to the path extended according to variant type:
|
|
195984
|
+
* * false: do not extend the path
|
|
195985
|
+
* * true: extend the path at both start and end
|
|
195986
|
+
* * CurveExtendOptions: extend the path in the specified manner at both start and end
|
|
195987
|
+
* * CurveExtendOptions[]: first entry applies to path start; second, to path end; any other entries ignored
|
|
195988
|
+
* @param result optional pre-allocated detail to populate and return.
|
|
195989
|
+
* @returns details of the closest point.
|
|
195990
|
+
*/
|
|
195991
|
+
closestPoint(spacePoint, extend = false, result) {
|
|
195992
|
+
let detailA;
|
|
195993
|
+
const detailB = new _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail();
|
|
195994
|
+
if (this.children !== undefined) {
|
|
195995
|
+
for (let i = 0; i < this.children.length; i++) {
|
|
195996
|
+
const child = this.children[i]; // head only extends at start; tail, only at end. NOTE: child may be both head and tail!
|
|
195997
|
+
const mode0 = (i === 0) ? _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extend, 0) : _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendMode.None;
|
|
195998
|
+
const mode1 = (i === this.children.length - 1) ? _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extend, 1) : _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendMode.None;
|
|
195999
|
+
if (child.closestPoint(spacePoint, [mode0, mode1], detailB))
|
|
196000
|
+
detailA = result = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail.chooseSmallerA(detailA, detailB).clone(result);
|
|
196001
|
+
}
|
|
196002
|
+
}
|
|
196003
|
+
return detailA;
|
|
196004
|
+
}
|
|
195969
196005
|
/** Return the boundary type (1) of a corresponding MicroStation CurveVector */
|
|
195970
196006
|
dgnBoundaryType() {
|
|
195971
196007
|
return 1;
|
|
@@ -196009,7 +196045,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
196009
196045
|
|
|
196010
196046
|
|
|
196011
196047
|
|
|
196012
|
-
/* eslint-disable @typescript-eslint/naming-convention, no-empty */
|
|
196013
196048
|
/**
|
|
196014
196049
|
* A PointString3d is an array of points.
|
|
196015
196050
|
* * PointString3D is first class (displayable, possibly persistent) geometry derived from the GeometryQuery base class.
|
|
@@ -199559,7 +199594,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
199559
199594
|
*/
|
|
199560
199595
|
|
|
199561
199596
|
|
|
199562
|
-
/* eslint-disable @typescript-eslint/naming-convention, no-empty */
|
|
199563
199597
|
/**
|
|
199564
199598
|
* Tolerance blob for various stroking methods.
|
|
199565
199599
|
*
|
|
@@ -205132,7 +205166,7 @@ var JointMode;
|
|
|
205132
205166
|
* @internal
|
|
205133
205167
|
*/
|
|
205134
205168
|
class Joint {
|
|
205135
|
-
// capture references to all data
|
|
205169
|
+
// capture references to all data members
|
|
205136
205170
|
constructor(curve0, curve1, swingPoint) {
|
|
205137
205171
|
this.curve0 = curve0;
|
|
205138
205172
|
this.curve1 = curve1;
|
|
@@ -205269,9 +205303,10 @@ class Joint {
|
|
|
205269
205303
|
}
|
|
205270
205304
|
/**
|
|
205271
205305
|
* Visit joints on a chain.
|
|
205272
|
-
* *
|
|
205273
|
-
* @param start first (and, for cyclic chain, final) joint
|
|
205306
|
+
* * Terminates if `callback` returns `false`.
|
|
205307
|
+
* @param start first (and, for cyclic chain, final) joint.
|
|
205274
205308
|
* @param callback function to call with each Joint as a single parameter.
|
|
205309
|
+
* @param maxTest
|
|
205275
205310
|
*/
|
|
205276
205311
|
static visitJointsOnChain(start, callback, maxTest = 100) {
|
|
205277
205312
|
let joint = start;
|
|
@@ -205652,7 +205687,7 @@ class CurveChainWireOffsetContext {
|
|
|
205652
205687
|
for (const c of curves.children) {
|
|
205653
205688
|
const c1 = CurveChainWireOffsetContext.createSingleOffsetPrimitiveXY(c, offsetOptions);
|
|
205654
205689
|
if (c1 === undefined) {
|
|
205655
|
-
// bad
|
|
205690
|
+
// bad; maybe arc to inside?
|
|
205656
205691
|
}
|
|
205657
205692
|
else if (c1 instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_12__.CurvePrimitive) {
|
|
205658
205693
|
simpleOffsets.push(c1);
|
|
@@ -211715,7 +211750,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
211715
211750
|
|
|
211716
211751
|
|
|
211717
211752
|
|
|
211718
|
-
/* eslint-disable @typescript-eslint/naming-convention, no-empty */
|
|
211719
211753
|
/**
|
|
211720
211754
|
* Helper class to accumulate points and vectors until there is enough data to define a coordinate system.
|
|
211721
211755
|
*
|
|
@@ -219214,7 +219248,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219214
219248
|
/** @packageDocumentation
|
|
219215
219249
|
* @module CartesianGeometry
|
|
219216
219250
|
*/
|
|
219217
|
-
/* eslint-disable @typescript-eslint/naming-convention, no-empty */
|
|
219218
219251
|
|
|
219219
219252
|
|
|
219220
219253
|
/**
|
|
@@ -221788,7 +221821,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
221788
221821
|
/** @packageDocumentation
|
|
221789
221822
|
* @module CartesianGeometry
|
|
221790
221823
|
*/
|
|
221791
|
-
/* eslint-disable @typescript-eslint/naming-convention, no-empty */
|
|
221792
221824
|
|
|
221793
221825
|
|
|
221794
221826
|
|
|
@@ -231894,7 +231926,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
231894
231926
|
|
|
231895
231927
|
|
|
231896
231928
|
|
|
231897
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
231898
231929
|
/**
|
|
231899
231930
|
* * BezierCoffs is an abstract base class for one-dimensional (u to f(u)) Bezier polynomials.
|
|
231900
231931
|
* * The base class carries a Float64Array with coefficients.
|
|
@@ -239151,7 +239182,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
239151
239182
|
|
|
239152
239183
|
|
|
239153
239184
|
|
|
239154
|
-
/* eslint-disable @itwin/prefer-get */
|
|
239155
239185
|
/**
|
|
239156
239186
|
* An `IndexedPolyfaceVisitor` is an iterator-like object that "visits" facets of a mesh.
|
|
239157
239187
|
* * The visitor extends `PolyfaceData`, so it can at any time hold all the data of a single facet.
|
|
@@ -239449,7 +239479,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
239449
239479
|
/** @packageDocumentation
|
|
239450
239480
|
* @module Polyface
|
|
239451
239481
|
*/
|
|
239452
|
-
/* eslint-disable @typescript-eslint/naming-convention, no-empty */
|
|
239453
239482
|
// cspell:word internaldocs
|
|
239454
239483
|
|
|
239455
239484
|
|
|
@@ -241215,7 +241244,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
241215
241244
|
const children = data.children;
|
|
241216
241245
|
if (children)
|
|
241217
241246
|
for (const child of children)
|
|
241218
|
-
// eslint-disable-next-line
|
|
241247
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
241219
241248
|
this.applyStrokeCountsToCurvePrimitives(child);
|
|
241220
241249
|
}
|
|
241221
241250
|
}
|
|
@@ -242126,7 +242155,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
242126
242155
|
/** @packageDocumentation
|
|
242127
242156
|
* @module Polyface
|
|
242128
242157
|
*/
|
|
242129
|
-
/* eslint-disable @typescript-eslint/naming-convention, no-empty */
|
|
242130
242158
|
|
|
242131
242159
|
|
|
242132
242160
|
|
|
@@ -243470,7 +243498,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
243470
243498
|
/** @packageDocumentation
|
|
243471
243499
|
* @module Polyface
|
|
243472
243500
|
*/
|
|
243473
|
-
/* eslint-disable @typescript-eslint/naming-convention, no-empty */
|
|
243474
243501
|
// cspell:word internaldocs
|
|
243475
243502
|
|
|
243476
243503
|
|
|
@@ -256058,7 +256085,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
256058
256085
|
/** @packageDocumentation
|
|
256059
256086
|
* @module Serialization
|
|
256060
256087
|
*/
|
|
256061
|
-
/* eslint-disable quote-props */
|
|
256062
256088
|
/**
|
|
256063
256089
|
* Utilities to compare json objects by searching through their properties.
|
|
256064
256090
|
* @public
|
|
@@ -269463,7 +269489,7 @@ class ITwinLocalization {
|
|
|
269463
269489
|
locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));
|
|
269464
269490
|
}
|
|
269465
269491
|
}
|
|
269466
|
-
catch
|
|
269492
|
+
catch {
|
|
269467
269493
|
locales = [];
|
|
269468
269494
|
}
|
|
269469
269495
|
// if we removed every locale from the array, it wasn't loaded.
|
|
@@ -287638,7 +287664,6 @@ class Formatter {
|
|
|
287638
287664
|
const compositeStrings = [];
|
|
287639
287665
|
// Caller will deal with appending +||-||() value sign as specified by formatting options so just format positive value
|
|
287640
287666
|
let posMagnitude = Math.abs(magnitude);
|
|
287641
|
-
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
|
287642
287667
|
for (let i = 0; i < spec.unitConversions.length; i++) {
|
|
287643
287668
|
const currentLabel = spec.unitConversions[i].label;
|
|
287644
287669
|
const unitConversion = spec.unitConversions[i].conversion;
|
|
@@ -287982,7 +288007,6 @@ class Formatter {
|
|
|
287982
288007
|
}
|
|
287983
288008
|
}
|
|
287984
288009
|
}
|
|
287985
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
287986
288010
|
Formatter.FPV_MINTHRESHOLD = 1.0e-14;
|
|
287987
288011
|
|
|
287988
288012
|
|
|
@@ -288372,7 +288396,6 @@ class Parser {
|
|
|
288372
288396
|
uomSeparatorToIgnore = format.uomSeparator.charCodeAt(0);
|
|
288373
288397
|
skipCodes.push(uomSeparatorToIgnore);
|
|
288374
288398
|
}
|
|
288375
|
-
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
|
288376
288399
|
for (let i = 0; i < str.length; i++) {
|
|
288377
288400
|
const charCode = str.charCodeAt(i);
|
|
288378
288401
|
if (Parser.isDigitOrDecimalSeparator(charCode, format)) {
|
|
@@ -290092,9 +290115,9 @@ class Settings {
|
|
|
290092
290115
|
this.iModel = {};
|
|
290093
290116
|
const isFrontend = (typeof (process) === "undefined");
|
|
290094
290117
|
if (!isFrontend && undefined === env.TF_BUILD) {
|
|
290095
|
-
const path = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"); // eslint-disable-line @typescript-eslint/no-
|
|
290096
|
-
const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"); // eslint-disable-line @typescript-eslint/no-
|
|
290097
|
-
const dotenvExpand = __webpack_require__(/*! dotenv-expand */ "../../common/temp/node_modules/.pnpm/dotenv-expand@5.1.0/node_modules/dotenv-expand/lib/main.js"); // eslint-disable-line @typescript-eslint/no-
|
|
290118
|
+
const path = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
290119
|
+
const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
290120
|
+
const dotenvExpand = __webpack_require__(/*! dotenv-expand */ "../../common/temp/node_modules/.pnpm/dotenv-expand@5.1.0/node_modules/dotenv-expand/lib/main.js"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
290098
290121
|
// First check in process.cwd() for the config
|
|
290099
290122
|
let result = dotenv.config();
|
|
290100
290123
|
if (result.error) {
|
|
@@ -290660,7 +290683,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290660
290683
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
290661
290684
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
290662
290685
|
*--------------------------------------------------------------------------------------------*/
|
|
290663
|
-
/* eslint-disable
|
|
290686
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
290664
290687
|
/** @packageDocumentation
|
|
290665
290688
|
* @module UiItemsProvider
|
|
290666
290689
|
*/
|
|
@@ -290991,7 +291014,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290991
291014
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
290992
291015
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
290993
291016
|
*--------------------------------------------------------------------------------------------*/
|
|
290994
|
-
/* eslint-disable
|
|
291017
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
290995
291018
|
/** @packageDocumentation
|
|
290996
291019
|
* @module UiItemsProvider
|
|
290997
291020
|
*/
|
|
@@ -291237,14 +291260,14 @@ var BackstageItemType;
|
|
|
291237
291260
|
* @public
|
|
291238
291261
|
*/
|
|
291239
291262
|
const isActionItem = (item) => {
|
|
291240
|
-
return item.execute !== undefined; // eslint-disable-line
|
|
291263
|
+
return item.execute !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
291241
291264
|
};
|
|
291242
291265
|
/** BackstageStageLauncher type guard.
|
|
291243
291266
|
* @deprecated in 3.6. Use [isBackstageStageLauncher]($appui-react) instead.
|
|
291244
291267
|
* @public
|
|
291245
291268
|
*/
|
|
291246
291269
|
const isStageLauncher = (item) => {
|
|
291247
|
-
return item.stageId !== undefined; // eslint-disable-line
|
|
291270
|
+
return item.stageId !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
291248
291271
|
};
|
|
291249
291272
|
/** Utilities for creating and maintaining backstage items
|
|
291250
291273
|
* @deprecated in 3.6. Use [BackstageItemUtilities]($appui-react) instead.
|
|
@@ -291500,7 +291523,7 @@ var SpecialKey;
|
|
|
291500
291523
|
* @public @deprecated in 4.3. Please use a custom implementation moving forward.
|
|
291501
291524
|
*/
|
|
291502
291525
|
function isArrowKey(key) {
|
|
291503
|
-
// eslint-disable-next-line
|
|
291526
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
291504
291527
|
return (key === SpecialKey.ArrowLeft || key === SpecialKey.ArrowRight || key === SpecialKey.ArrowUp || key === SpecialKey.ArrowDown);
|
|
291505
291528
|
}
|
|
291506
291529
|
|
|
@@ -291545,7 +291568,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
291545
291568
|
/** @packageDocumentation
|
|
291546
291569
|
* @module ContentView
|
|
291547
291570
|
*/
|
|
291548
|
-
/* eslint-disable
|
|
291571
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
291549
291572
|
/**
|
|
291550
291573
|
* Class that define Standard Content Layouts that can be used to specify how the content is arranged in a frontstage.
|
|
291551
291574
|
* @public
|
|
@@ -293089,21 +293112,21 @@ var StatusBarLabelSide;
|
|
|
293089
293112
|
* @public
|
|
293090
293113
|
*/
|
|
293091
293114
|
const isAbstractStatusBarActionItem = (item) => {
|
|
293092
|
-
return item.execute !== undefined; // eslint-disable-line
|
|
293115
|
+
return item.execute !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
293093
293116
|
};
|
|
293094
293117
|
/** AbstractStatusBarLabelItem type guard.
|
|
293095
293118
|
* @deprecated in 3.6. Use [isStatusBarLabelItem]($appui-react) instead.
|
|
293096
293119
|
* @public
|
|
293097
293120
|
*/
|
|
293098
293121
|
const isAbstractStatusBarLabelItem = (item) => {
|
|
293099
|
-
return item.label !== undefined && item.execute === undefined; // eslint-disable-line
|
|
293122
|
+
return item.label !== undefined && item.execute === undefined; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
293100
293123
|
};
|
|
293101
293124
|
/** AbstractStatusBarCustomItem type guard.
|
|
293102
293125
|
* @deprecated in 3.6. Use [isStatusBarCustomItem]($appui-react) instead.
|
|
293103
293126
|
* @public
|
|
293104
293127
|
*/
|
|
293105
293128
|
const isAbstractStatusBarCustomItem = (item) => {
|
|
293106
|
-
return !!item.isCustom; // eslint-disable-line
|
|
293129
|
+
return !!item.isCustom; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
293107
293130
|
};
|
|
293108
293131
|
/** Helper class to create Abstract StatusBar Item definitions.
|
|
293109
293132
|
* @deprecated in 3.6. Use [StatusBarItemUtilities]($appui-react) instead.
|
|
@@ -293623,7 +293646,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
293623
293646
|
/** @packageDocumentation
|
|
293624
293647
|
* @module Utilities
|
|
293625
293648
|
*/
|
|
293626
|
-
/* eslint-disable
|
|
293649
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
293627
293650
|
/** Creates an IconSpec with an SVG source and gets the SVG source from an IconSpec.
|
|
293628
293651
|
* @public @deprecated in 4.3. AppUI libraries >= 4.7.x support loading SVGs sources without prefixes, eliminating the need for these utilities.
|
|
293629
293652
|
*/
|
|
@@ -293777,7 +293800,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
293777
293800
|
* @public
|
|
293778
293801
|
* @deprecated in 4.2.x Use [[UiSyncEvent]] from @itwin/appui-react.
|
|
293779
293802
|
*/
|
|
293780
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
293781
293803
|
class UiSyncEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiEvent {
|
|
293782
293804
|
}
|
|
293783
293805
|
/** This class is used to send eventIds to interested UI components so the component can determine if it needs
|
|
@@ -293789,7 +293811,7 @@ class UiEventDispatcher {
|
|
|
293789
293811
|
constructor() {
|
|
293790
293812
|
this._eventIds = new Set();
|
|
293791
293813
|
this._eventIdAdded = false;
|
|
293792
|
-
// eslint-disable-next-line
|
|
293814
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
293793
293815
|
this._uiSyncEvent = new UiSyncEvent();
|
|
293794
293816
|
this._timeoutPeriod = 100;
|
|
293795
293817
|
this._secondaryTimeoutPeriod = this._timeoutPeriod / 2;
|
|
@@ -293818,7 +293840,7 @@ class UiEventDispatcher {
|
|
|
293818
293840
|
return this._eventIds;
|
|
293819
293841
|
}
|
|
293820
293842
|
/** Return UiSyncEvent so callers can register an event callback. */
|
|
293821
|
-
// eslint-disable-next-line
|
|
293843
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
293822
293844
|
get onSyncUiEvent() {
|
|
293823
293845
|
return this._uiSyncEvent;
|
|
293824
293846
|
}
|
|
@@ -304328,7 +304350,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
304328
304350
|
/***/ ((module) => {
|
|
304329
304351
|
|
|
304330
304352
|
"use strict";
|
|
304331
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.
|
|
304353
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.33","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run --coverage","test:debug":"vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.10.0-dev.33","@itwin/core-bentley":"workspace:^4.10.0-dev.33","@itwin/core-common":"workspace:^4.10.0-dev.33","@itwin/core-geometry":"workspace:^4.10.0-dev.33","@itwin/core-orbitgt":"workspace:^4.10.0-dev.33","@itwin/core-quantity":"workspace:^4.10.0-dev.33"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.0","@vitest/coverage-v8":"^2.1.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^2.1.0","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.2.5","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
|
|
304332
304354
|
|
|
304333
304355
|
/***/ })
|
|
304334
304356
|
|