@itwin/ecschema-rpcinterface-tests 4.0.0-dev.15 → 4.0.0-dev.18
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/dist/_07c5.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +88 -52
- 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/object-storage.bundled-tests.js.map +1 -1
- package/lib/dist/{vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_4_0_node_modules_itwin_obj-3576c6.bundled-tests.js → vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_5_0_node_modules_itwin_obj-e3e81d.bundled-tests.js} +169 -158
- package/lib/dist/vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_5_0_node_modules_itwin_obj-e3e81d.bundled-tests.js.map +1 -0
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_13_node_modules_loaders_gl_draco_d-e0d984.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3.bundled-tests.js.map +1 -1
- package/package.json +17 -17
- package/lib/dist/vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_4_0_node_modules_itwin_obj-3576c6.bundled-tests.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_07c5.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\
|
|
1
|
+
{"version":3,"file":"_07c5.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\4\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.2.13\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -53811,7 +53811,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
53811
53811
|
/* eslint-disable deprecation/deprecation */
|
|
53812
53812
|
/**
|
|
53813
53813
|
* @beta
|
|
53814
|
-
* @deprecated in 3.x.
|
|
53814
|
+
* @deprecated in 3.x. Use [TileStorage]($frontend) (frontend) and [TileStorage]($backend) (backend) instead.
|
|
53815
53815
|
*/
|
|
53816
53816
|
var CloudStorageProvider;
|
|
53817
53817
|
(function (CloudStorageProvider) {
|
|
@@ -53823,7 +53823,7 @@ var CloudStorageProvider;
|
|
|
53823
53823
|
})(CloudStorageProvider || (CloudStorageProvider = {}));
|
|
53824
53824
|
/**
|
|
53825
53825
|
* @beta
|
|
53826
|
-
* @deprecated in 3.x.
|
|
53826
|
+
* @deprecated in 3.x. Use [TileStorage]($frontend) (frontend) and [TileStorage]($backend) (backend) instead.
|
|
53827
53827
|
*/
|
|
53828
53828
|
var CloudStorageContainerUrl;
|
|
53829
53829
|
(function (CloudStorageContainerUrl) {
|
|
@@ -53839,7 +53839,7 @@ var CloudStorageContainerUrl;
|
|
|
53839
53839
|
})(CloudStorageContainerUrl || (CloudStorageContainerUrl = {}));
|
|
53840
53840
|
/**
|
|
53841
53841
|
* @beta
|
|
53842
|
-
* @deprecated in 3.x.
|
|
53842
|
+
* @deprecated in 3.x. Use [TileStorage]($frontend) (frontend) and [TileStorage]($backend) (backend) instead.
|
|
53843
53843
|
*/
|
|
53844
53844
|
class CloudStorageCache {
|
|
53845
53845
|
constructor() {
|
|
@@ -53938,7 +53938,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
53938
53938
|
|
|
53939
53939
|
/**
|
|
53940
53940
|
* @beta
|
|
53941
|
-
* @deprecated in 3.x.
|
|
53941
|
+
* @deprecated in 3.x. Use [TileStorage]($frontend) (frontend) and [TileStorage]($backend) (backend) instead.
|
|
53942
53942
|
*/
|
|
53943
53943
|
class CloudStorageTileCache extends _CloudStorage__WEBPACK_IMPORTED_MODULE_0__.CloudStorageCache {
|
|
53944
53944
|
constructor() {
|
|
@@ -76437,8 +76437,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
76437
76437
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
76438
76438
|
/* harmony export */ "FrustumPlanes": () => (/* binding */ FrustumPlanes)
|
|
76439
76439
|
/* harmony export */ });
|
|
76440
|
-
/* harmony import */ var
|
|
76441
|
-
/* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
76440
|
+
/* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
76442
76441
|
/*---------------------------------------------------------------------------------------------
|
|
76443
76442
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
76444
76443
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -76447,7 +76446,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
76447
76446
|
* @module Geometry
|
|
76448
76447
|
*/
|
|
76449
76448
|
|
|
76450
|
-
|
|
76451
76449
|
const planePointIndices = [
|
|
76452
76450
|
[1, 3, 5],
|
|
76453
76451
|
[0, 4, 2],
|
|
@@ -76462,14 +76460,13 @@ function computeFrustumPlanes(frustum) {
|
|
|
76462
76460
|
const expandPlaneDistance = 1e-6;
|
|
76463
76461
|
for (const indices of planePointIndices) {
|
|
76464
76462
|
const i0 = indices[0], i1 = indices[1], i2 = indices[2];
|
|
76465
|
-
const normal =
|
|
76463
|
+
const normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createCrossProductToPoints(points[i2], points[i1], points[i0]);
|
|
76466
76464
|
normal.normalizeInPlace();
|
|
76467
|
-
const plane =
|
|
76465
|
+
const plane = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.ClipPlane.createNormalAndDistance(normal, normal.dotProduct(points[i0]) - expandPlaneDistance);
|
|
76468
76466
|
if (!plane)
|
|
76469
76467
|
return [];
|
|
76470
76468
|
planes.push(plane);
|
|
76471
76469
|
}
|
|
76472
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(planes.length === 6);
|
|
76473
76470
|
return planes;
|
|
76474
76471
|
}
|
|
76475
76472
|
// Scratch variable used by FrustumPlanes.computeContainment.
|
|
@@ -76547,7 +76544,6 @@ class FrustumPlanes {
|
|
|
76547
76544
|
* @returns the degree to which all of the points are contained within the clipping planes.
|
|
76548
76545
|
*/
|
|
76549
76546
|
computeContainment(points, sphere, tolerance = 1.0e-8) {
|
|
76550
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(this.isValid);
|
|
76551
76547
|
if (undefined === this._planes)
|
|
76552
76548
|
return FrustumPlanes.Containment.Outside;
|
|
76553
76549
|
// Do the cheap test against bounding sphere first.
|
|
@@ -76585,7 +76581,6 @@ class FrustumPlanes {
|
|
|
76585
76581
|
* @returns true if the ray extending from `origin` in the specified `direction` intersects at least one of the clipping planes.
|
|
76586
76582
|
*/
|
|
76587
76583
|
intersectsRay(origin, direction) {
|
|
76588
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(this.isValid);
|
|
76589
76584
|
if (undefined === this._planes) {
|
|
76590
76585
|
return false;
|
|
76591
76586
|
}
|
|
@@ -78758,7 +78753,11 @@ class DevToolsRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__.Rp
|
|
|
78758
78753
|
// Returns JSON object with backend performance and memory statistics
|
|
78759
78754
|
async stats(_iModelToken, _options) { return this.forward(arguments); }
|
|
78760
78755
|
// Returns JSON object with backend versions (application and iModelJs)
|
|
78761
|
-
async versions(_iModelToken) {
|
|
78756
|
+
async versions(_iModelToken) {
|
|
78757
|
+
const versions = await this.forward(arguments) || {};
|
|
78758
|
+
versions.availableRpcs = await _RpcManager__WEBPACK_IMPORTED_MODULE_1__.RpcManager.describeAvailableEndpoints();
|
|
78759
|
+
return versions;
|
|
78760
|
+
}
|
|
78762
78761
|
// Sets a new log level for the specified category and returns the old log level
|
|
78763
78762
|
async setLogLevel(_iModelToken, _loggerCategory, _logLevel) { return this.forward(arguments); }
|
|
78764
78763
|
}
|
|
@@ -78767,7 +78766,7 @@ DevToolsRpcInterface.interfaceName = "DevToolsRpcInterface";
|
|
|
78767
78766
|
/** The semantic version of the interface.
|
|
78768
78767
|
* @note The DevToolsRpcInterface will remain at 0.x since it is for testing only and not intended for production.
|
|
78769
78768
|
*/
|
|
78770
|
-
DevToolsRpcInterface.interfaceVersion = "0.
|
|
78769
|
+
DevToolsRpcInterface.interfaceVersion = "0.7.0";
|
|
78771
78770
|
|
|
78772
78771
|
|
|
78773
78772
|
/***/ }),
|
|
@@ -78848,7 +78847,7 @@ class IModelReadRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_2__.
|
|
|
78848
78847
|
async getViewStateData(_iModelToken, _viewDefinitionId, _options) { return this.forward(arguments); }
|
|
78849
78848
|
async readFontJson(_iModelToken) { return this.forward(arguments); }
|
|
78850
78849
|
async getToolTipMessage(_iModelToken, _elementId) { return this.forward(arguments); }
|
|
78851
|
-
/** @deprecated in 3.x. */
|
|
78850
|
+
/** @deprecated in 3.x with no replacement; thumbnails are rarely added to the iModel. */
|
|
78852
78851
|
async getViewThumbnail(_iModelToken, _viewId) { return this.forward(arguments); }
|
|
78853
78852
|
async getDefaultViewId(_iModelToken) { return this.forward(arguments); }
|
|
78854
78853
|
async getCustomViewState3dData(_iModelToken, _options) { return this.forward(arguments); }
|
|
@@ -78960,13 +78959,13 @@ class IModelTileRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_2__.
|
|
|
78960
78959
|
/**
|
|
78961
78960
|
* Returns connection information for external tile cache or an empty `CloudStorageContainerUrl` if no external tile cache is configured on the backend.
|
|
78962
78961
|
* @beta
|
|
78963
|
-
* @deprecated in 3.x.
|
|
78962
|
+
* @deprecated in 3.x. Use [[getTileCacheConfig]] instead.
|
|
78964
78963
|
*/
|
|
78965
78964
|
async getTileCacheContainerUrl(_tokenProps, _id) {
|
|
78966
78965
|
return this.forward(arguments);
|
|
78967
78966
|
}
|
|
78968
78967
|
/** Returns true if an external tile cache is configured on the backend.
|
|
78969
|
-
* @internal @deprecated in 3.x.
|
|
78968
|
+
* @internal @deprecated in 3.x. Use [[getTileCacheConfig]] instead.
|
|
78970
78969
|
*/
|
|
78971
78970
|
async isUsingExternalTileCache() {
|
|
78972
78971
|
return this.forward(arguments);
|
|
@@ -104323,9 +104322,7 @@ class IModelApp {
|
|
|
104323
104322
|
* @internal
|
|
104324
104323
|
*/
|
|
104325
104324
|
static get mapLayerFormatRegistry() { return this._mapLayerFormatRegistry; }
|
|
104326
|
-
/** The [[TerrainProviderRegistry]] for this session.
|
|
104327
|
-
* @beta
|
|
104328
|
-
*/
|
|
104325
|
+
/** The [[TerrainProviderRegistry]] for this session. */
|
|
104329
104326
|
static get terrainProviderRegistry() { return this._terrainProviderRegistry; }
|
|
104330
104327
|
/** The [[RealityDataSourceProviderRegistry]] for this session.
|
|
104331
104328
|
* @alpha
|
|
@@ -105742,7 +105739,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
105742
105739
|
* @param viewId The id of the view of the thumbnail.
|
|
105743
105740
|
* @returns A Promise of the ThumbnailProps.
|
|
105744
105741
|
* @throws "No content" error if invalid thumbnail.
|
|
105745
|
-
* @deprecated in 3.x.
|
|
105742
|
+
* @deprecated in 3.x with no replacement; thumbnails are rarely added to the iModel.
|
|
105746
105743
|
*/
|
|
105747
105744
|
async getThumbnail(_viewId) {
|
|
105748
105745
|
// eslint-disable-next-line deprecation/deprecation
|
|
@@ -123886,7 +123883,7 @@ function precondition(condition, message) {
|
|
|
123886
123883
|
message = message();
|
|
123887
123884
|
throw new Error(`Logic Error: ${message}`);
|
|
123888
123885
|
}
|
|
123889
|
-
/** @
|
|
123886
|
+
/** @public */
|
|
123890
123887
|
var RealityMeshParams;
|
|
123891
123888
|
(function (RealityMeshParams) {
|
|
123892
123889
|
/** @internal */
|
|
@@ -164318,7 +164315,7 @@ const additiveRefinementThreshold = 10000; // Additive tiles (Cesium OSM tileset
|
|
|
164318
164315
|
const additiveRefinementDepthLimit = 20;
|
|
164319
164316
|
const scratchFrustum = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Frustum();
|
|
164320
164317
|
/** A [[Tile]] within a [[RealityTileTree]], representing part of a reality model (e.g., a point cloud or photogrammetry mesh) or 3d terrain with map imagery.
|
|
164321
|
-
* @
|
|
164318
|
+
* @public
|
|
164322
164319
|
*/
|
|
164323
164320
|
class RealityTile extends _internal__WEBPACK_IMPORTED_MODULE_5__.Tile {
|
|
164324
164321
|
/** @internal */
|
|
@@ -165092,7 +165089,7 @@ const scratchX = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.crea
|
|
|
165092
165089
|
const scratchMatrix = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createZero(), scratchTransform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createZero();
|
|
165093
165090
|
/** Base class for a [[TileTree]] representing a reality model (e.g., a point cloud or photogrammetry mesh) or 3d terrain with map imagery.
|
|
165094
165091
|
* The tiles within the tree are instances of [[RealityTile]]s.
|
|
165095
|
-
* @
|
|
165092
|
+
* @public
|
|
165096
165093
|
*/
|
|
165097
165094
|
class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
|
|
165098
165095
|
/** @internal */
|
|
@@ -166303,7 +166300,7 @@ class TileAdmin {
|
|
|
166303
166300
|
this._tileStoragePromise = (async () => {
|
|
166304
166301
|
await __webpack_require__.e(/*! import() */ "vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3").then(__webpack_require__.t.bind(__webpack_require__, /*! reflect-metadata */ "../../common/temp/node_modules/.pnpm/reflect-metadata@0.1.13/node_modules/reflect-metadata/Reflect.js", 23));
|
|
166305
166302
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
166306
|
-
const { AzureFrontendStorage, FrontendBlockBlobClientWrapperFactory } = await Promise.all(/*! import() | object-storage */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3"), __webpack_require__.e("vendors-common_temp_node_modules_pnpm_itwin_object-storage-
|
|
166303
|
+
const { AzureFrontendStorage, FrontendBlockBlobClientWrapperFactory } = await Promise.all(/*! import() | object-storage */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3"), __webpack_require__.e("vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_5_0_node_modules_itwin_obj-e3e81d"), __webpack_require__.e("object-storage")]).then(__webpack_require__.t.bind(__webpack_require__, /*! @itwin/object-storage-azure/lib/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+object-storage-azure@1.5.0/node_modules/@itwin/object-storage-azure/lib/frontend/index.js", 23));
|
|
166307
166304
|
const azureStorage = new AzureFrontendStorage(new FrontendBlockBlobClientWrapperFactory());
|
|
166308
166305
|
this._tileStorage = new _internal__WEBPACK_IMPORTED_MODULE_6__.TileStorage(azureStorage);
|
|
166309
166306
|
return this._tileStorage;
|
|
@@ -167500,6 +167497,7 @@ class TileRequest {
|
|
|
167500
167497
|
return;
|
|
167501
167498
|
}
|
|
167502
167499
|
try {
|
|
167500
|
+
const start = Date.now();
|
|
167503
167501
|
if (!content) {
|
|
167504
167502
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== data);
|
|
167505
167503
|
content = await this.tile.readContent(data, _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.renderSystem, () => this.isCanceled);
|
|
@@ -167509,7 +167507,7 @@ class TileRequest {
|
|
|
167509
167507
|
this._state = TileRequest.State.Completed;
|
|
167510
167508
|
this.tile.setContent(content);
|
|
167511
167509
|
this.notifyAndClear();
|
|
167512
|
-
this.channel.recordCompletion(this.tile, content);
|
|
167510
|
+
this.channel.recordCompletion(this.tile, content, Date.now() - start);
|
|
167513
167511
|
}
|
|
167514
167512
|
catch (_err) {
|
|
167515
167513
|
this.setFailed();
|
|
@@ -167604,6 +167602,15 @@ class TileRequestChannelStatistics {
|
|
|
167604
167602
|
this.totalDispatchedRequests = 0;
|
|
167605
167603
|
/** The total number of tiles for which content requests were dispatched and then canceled on the backend before completion. */
|
|
167606
167604
|
this.totalAbortedRequests = 0;
|
|
167605
|
+
/** Statistics summarizing time spent decoding tile content.
|
|
167606
|
+
* @beta
|
|
167607
|
+
*/
|
|
167608
|
+
this.decoding = {
|
|
167609
|
+
total: 0,
|
|
167610
|
+
mean: 0,
|
|
167611
|
+
max: Number.MIN_SAFE_INTEGER,
|
|
167612
|
+
min: Number.MAX_SAFE_INTEGER,
|
|
167613
|
+
};
|
|
167607
167614
|
}
|
|
167608
167615
|
/** @internal */
|
|
167609
167616
|
addTo(stats) {
|
|
@@ -167611,11 +167618,27 @@ class TileRequestChannelStatistics {
|
|
|
167611
167618
|
const key = propName;
|
|
167612
167619
|
const val = this[key];
|
|
167613
167620
|
if (typeof val === "number") {
|
|
167614
|
-
// This type guard ought to suffice but doesn't.
|
|
167615
167621
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof stats[key] === "number");
|
|
167616
167622
|
stats[key] += val;
|
|
167617
167623
|
}
|
|
167618
167624
|
}
|
|
167625
|
+
stats.decoding.total += this.decoding.total;
|
|
167626
|
+
stats.decoding.max = Math.max(this.decoding.max, stats.decoding.max);
|
|
167627
|
+
stats.decoding.min = Math.min(this.decoding.min, stats.decoding.min);
|
|
167628
|
+
if (stats.totalCompletedRequests > 0)
|
|
167629
|
+
stats.decoding.mean = (stats.decoding.total) / stats.totalCompletedRequests;
|
|
167630
|
+
}
|
|
167631
|
+
/** @internal */
|
|
167632
|
+
recordCompletion(tile, elapsedMilliseconds) {
|
|
167633
|
+
++this.totalCompletedRequests;
|
|
167634
|
+
if (tile.isEmpty)
|
|
167635
|
+
++this.totalEmptyTiles;
|
|
167636
|
+
else if (!tile.isDisplayable)
|
|
167637
|
+
++this.totalUndisplayableTiles;
|
|
167638
|
+
this.decoding.total += elapsedMilliseconds;
|
|
167639
|
+
this.decoding.mean = this.decoding.total / this.totalCompletedRequests;
|
|
167640
|
+
this.decoding.max = Math.max(this.decoding.max, elapsedMilliseconds);
|
|
167641
|
+
this.decoding.min = Math.min(this.decoding.min, elapsedMilliseconds);
|
|
167619
167642
|
}
|
|
167620
167643
|
}
|
|
167621
167644
|
/** A channel over which requests for tile content can be made. The channel may request content over HTTP, calls to the backend via IPC or RPC, or any other method like generating the content
|
|
@@ -167689,12 +167712,8 @@ class TileRequestChannel {
|
|
|
167689
167712
|
/** Invoked by [[TileRequest]] after a request completes.
|
|
167690
167713
|
* @internal
|
|
167691
167714
|
*/
|
|
167692
|
-
recordCompletion(tile, content) {
|
|
167693
|
-
|
|
167694
|
-
if (tile.isEmpty)
|
|
167695
|
-
++this._statistics.totalEmptyTiles;
|
|
167696
|
-
else if (!tile.isDisplayable)
|
|
167697
|
-
++this._statistics.totalUndisplayableTiles;
|
|
167715
|
+
recordCompletion(tile, content, elapsedMilliseconds) {
|
|
167716
|
+
this._statistics.recordCompletion(tile, elapsedMilliseconds);
|
|
167698
167717
|
if (this.contentCallback)
|
|
167699
167718
|
this.contentCallback(tile, content);
|
|
167700
167719
|
}
|
|
@@ -170295,21 +170314,31 @@ const scratchPoint2d = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d
|
|
|
170295
170314
|
const scratchPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.createZero();
|
|
170296
170315
|
const scratchEllipsoid = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Ellipsoid.create(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createIdentity());
|
|
170297
170316
|
const scratchZeroRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range1d.createXX(0, 0);
|
|
170298
|
-
/**
|
|
170317
|
+
/** A terrain mesh provider that produces geometry that represents a smooth ellipsoid without any height perturbations.
|
|
170299
170318
|
* The area within the project extents are represented as planar tiles and other tiles are facetted approximations
|
|
170300
170319
|
* of the WGS84 ellipsoid.
|
|
170301
|
-
*
|
|
170302
|
-
* @
|
|
170320
|
+
* This is the terrain provider used when the background map is enabled but 3d terrain is disabled.
|
|
170321
|
+
* @public
|
|
170303
170322
|
*/
|
|
170304
170323
|
class EllipsoidTerrainProvider extends _internal__WEBPACK_IMPORTED_MODULE_3__.TerrainMeshProvider {
|
|
170324
|
+
/** Construct a new terrain provider.
|
|
170325
|
+
* @note [[TerrainMeshProviderOptions.wantNormals]] is ignored - no normals are produced.
|
|
170326
|
+
*/
|
|
170305
170327
|
constructor(opts) {
|
|
170306
170328
|
super();
|
|
170307
170329
|
this._tilingScheme = new _internal__WEBPACK_IMPORTED_MODULE_3__.WebMercatorTilingScheme();
|
|
170308
170330
|
this._wantSkirts = opts.wantSkirts;
|
|
170309
170331
|
}
|
|
170332
|
+
/** @internal override */
|
|
170310
170333
|
get maxDepth() { return 22; }
|
|
170311
|
-
|
|
170312
|
-
|
|
170334
|
+
/** @internal override */
|
|
170335
|
+
getChildHeightRange(_quadId, _rectangle, _parent) {
|
|
170336
|
+
return scratchZeroRange;
|
|
170337
|
+
}
|
|
170338
|
+
/** @internal override */
|
|
170339
|
+
get tilingScheme() {
|
|
170340
|
+
return this._tilingScheme;
|
|
170341
|
+
}
|
|
170313
170342
|
createSkirtlessPlanarMesh(tile) {
|
|
170314
170343
|
const projection = tile.getProjection();
|
|
170315
170344
|
const builder = new _render_RealityMeshParams__WEBPACK_IMPORTED_MODULE_2__.RealityMeshParamsBuilder({
|
|
@@ -170357,6 +170386,7 @@ class EllipsoidTerrainProvider extends _internal__WEBPACK_IMPORTED_MODULE_3__.Te
|
|
|
170357
170386
|
}
|
|
170358
170387
|
return builder.finish();
|
|
170359
170388
|
}
|
|
170389
|
+
/** @internal override */
|
|
170360
170390
|
async readMesh(args) {
|
|
170361
170391
|
const tile = args.tile;
|
|
170362
170392
|
if (tile.isPlanar)
|
|
@@ -170424,6 +170454,7 @@ class EllipsoidTerrainProvider extends _internal__WEBPACK_IMPORTED_MODULE_3__.Te
|
|
|
170424
170454
|
}
|
|
170425
170455
|
return builder.finish();
|
|
170426
170456
|
}
|
|
170457
|
+
/** @internal override */
|
|
170427
170458
|
async requestMeshData() {
|
|
170428
170459
|
return "";
|
|
170429
170460
|
}
|
|
@@ -171958,7 +171989,7 @@ const scratchPoint2d = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point2d
|
|
|
171958
171989
|
* The `y` components of the `low` and `high` points refer to the southern and northern latitudes, respectively.
|
|
171959
171990
|
* Longitudes are stored in radians in the range [-pi, pi].
|
|
171960
171991
|
* Latitudes are stored in radians in the range [-pi/2, pi/2].
|
|
171961
|
-
* @
|
|
171992
|
+
* @public
|
|
171962
171993
|
*/
|
|
171963
171994
|
class MapCartoRectangle extends _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Range2d {
|
|
171964
171995
|
/** Construct a new rectangle with angles specified in radians.
|
|
@@ -173064,7 +173095,7 @@ class PlanarTilePatch {
|
|
|
173064
173095
|
}
|
|
173065
173096
|
/** Projects points within the rectangular region of a [[MapTile]] into 3d space.
|
|
173066
173097
|
* @see [[MapTile.getProjection]] to obtain the projection for a [[MapTile]].
|
|
173067
|
-
* @
|
|
173098
|
+
* @public
|
|
173068
173099
|
*/
|
|
173069
173100
|
class MapTileProjection {
|
|
173070
173101
|
/** @alpha */
|
|
@@ -173116,7 +173147,7 @@ const scratchPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.c
|
|
|
173116
173147
|
const scratchClipPlanes = [_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.ClipPlane.createNormalAndPoint(scratchNormal, scratchPoint), _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.ClipPlane.createNormalAndPoint(scratchNormal, scratchPoint), _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.ClipPlane.createNormalAndPoint(scratchNormal, scratchPoint), _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.ClipPlane.createNormalAndPoint(scratchNormal, scratchPoint)];
|
|
173117
173148
|
const scratchCorners = [_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.createZero(), _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.createZero(), _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.createZero(), _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.createZero(), _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.createZero(), _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.createZero(), _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.createZero(), _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.createZero()];
|
|
173118
173149
|
/** A [[Tile]] belonging to a [[MapTileTree]] representing a rectangular region of a map of the Earth.
|
|
173119
|
-
* @
|
|
173150
|
+
* @public
|
|
173120
173151
|
*/
|
|
173121
173152
|
class MapTile extends _internal__WEBPACK_IMPORTED_MODULE_7__.RealityTile {
|
|
173122
173153
|
/** @internal */
|
|
@@ -174122,7 +174153,7 @@ var MapTileTreeScaleRangeVisibility;
|
|
|
174122
174153
|
*
|
|
174123
174154
|
* The map or globe may be smooth, or feature 3d geometry supplied by a [[TerrainProvider]].
|
|
174124
174155
|
* The terrain displayed in a [[Viewport]] is determined by its [TerrainSettings]($common).
|
|
174125
|
-
* @
|
|
174156
|
+
* @public
|
|
174126
174157
|
*/
|
|
174127
174158
|
class MapTileTree extends _internal__WEBPACK_IMPORTED_MODULE_7__.RealityTileTree {
|
|
174128
174159
|
/** @internal */
|
|
@@ -175203,7 +175234,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
175203
175234
|
* An X fraction of 0 corresponds to the easternmost longitude and an X fraction of 1 to the westernmost longitude.
|
|
175204
175235
|
* The scheme can choose to correlate a Y fraction of 0 with either the north or south pole, as specified by [[rowZeroAtNorthPole]].
|
|
175205
175236
|
* Implementing a tiling scheme only requires implementing the abstract method [[yFractionToLatitude]] and its inverse, [[latitudeToYFraction]].
|
|
175206
|
-
* @
|
|
175237
|
+
* @public
|
|
175207
175238
|
*/
|
|
175208
175239
|
class MapTilingScheme {
|
|
175209
175240
|
constructor(numberOfLevelZeroTilesX, numberOfLevelZeroTilesY, rowZeroAtNorthPole) {
|
|
@@ -175449,7 +175480,7 @@ const scratchCartographic2 = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Car
|
|
|
175449
175480
|
/** Identifies a node within a [quad tree](https://en.wikipedia.org/wiki/Quadtree), such as a [[MapTile]] within a [[MapTileTree]].
|
|
175450
175481
|
* A quad tree recursively sub-divides a two-dimensional space along the X and Y axes such that each node on level L has four child nodes on
|
|
175451
175482
|
* level L+1.
|
|
175452
|
-
* @
|
|
175483
|
+
* @public
|
|
175453
175484
|
*/
|
|
175454
175485
|
class QuadId {
|
|
175455
175486
|
/** Construct a new QuadId. The inputs are expected to be non-negative integers. */
|
|
@@ -175562,7 +175593,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
175562
175593
|
* Each mesh represents the terrain within a rectangular region of the Earth associated with a [[MapTile]].
|
|
175563
175594
|
* The display system drapes background map imagery onto these meshes.
|
|
175564
175595
|
* `TerrainMeshProvider`s are obtained from [[TerrainProvider]]s.
|
|
175565
|
-
* @
|
|
175596
|
+
* @note A terrain mesh provider is expected to produce terrain for all areas of the globe. If it lacks terrain data for an area of the globe,
|
|
175597
|
+
* it might choose to fall back to producing smooth terrain using an [[EllipsoidTerrainProvider]].
|
|
175598
|
+
* @see [[EllipsoidTerrainProvider]] for an example implementation that provides smooth terrain meshes.
|
|
175599
|
+
* @see [BingTerrainMeshProvider](https://github.com/iTwin/itwinjs-core/blob/master/test-apps/display-test-app/src/frontend/BingTerrainProvider.ts) for an example
|
|
175600
|
+
* implementation that produces 3d terrain meshes from elevations provided by [[BingElevationProvider]].
|
|
175601
|
+
* @public
|
|
175566
175602
|
*/
|
|
175567
175603
|
class TerrainMeshProvider {
|
|
175568
175604
|
/** Add attribution logo cards for the terrain data supplied by this provider to the [[Viewport]]'s logo div.
|
|
@@ -175619,7 +175655,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
175619
175655
|
* Any number of additional providers can be [[register]]ed.
|
|
175620
175656
|
*
|
|
175621
175657
|
* When terrain is enabled for a [[Viewport]], the display system will attempt to look up the [[TerrainProvider]] corresponding to the [TerrainSettings.providerName]($common) specified by the [[Viewport]]'s [DisplayStyleSettings]($common). If a provider by that name is registered, it will be used to obtain terrain meshes; otherwise, the display system will produce flat terrain meshes.
|
|
175622
|
-
* @
|
|
175658
|
+
* @public
|
|
175623
175659
|
*/
|
|
175624
175660
|
class TerrainProviderRegistry {
|
|
175625
175661
|
/** @internal */
|
|
@@ -296507,7 +296543,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
296507
296543
|
class IconSpecUtilities {
|
|
296508
296544
|
/** Create an IconSpec for an SVG loaded into web component with sprite loader
|
|
296509
296545
|
* This method is deprecated -- use createWebComponentIconSpec()
|
|
296510
|
-
* @public @deprecated in 3.2.
|
|
296546
|
+
* @public @deprecated in 3.2. Please avoid using the Sprite loader and use IconSpecUtilities.createWebComponentIconSpec() instead.
|
|
296511
296547
|
*/
|
|
296512
296548
|
static createSvgIconSpec(svgSrc) {
|
|
296513
296549
|
return `${IconSpecUtilities.SVG_PREFIX}${svgSrc}`;
|
|
@@ -296520,7 +296556,7 @@ class IconSpecUtilities {
|
|
|
296520
296556
|
}
|
|
296521
296557
|
/** Get the SVG Source from an sprite IconSpec
|
|
296522
296558
|
* This method is deprecated -- use getWebComponentSource()
|
|
296523
|
-
* @public @deprecated in 3.2.
|
|
296559
|
+
* @public @deprecated in 3.2. avoid using the Sprite loader and use IconSpecUtilities.getWebComponentSource() instead.
|
|
296524
296560
|
*/
|
|
296525
296561
|
static getSvgSource(iconSpec) {
|
|
296526
296562
|
if (iconSpec.startsWith(IconSpecUtilities.SVG_PREFIX) && iconSpec.length > 4) {
|
|
@@ -298155,7 +298191,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
298155
298191
|
* @module Widget
|
|
298156
298192
|
*/
|
|
298157
298193
|
/** Enum for AppUi 1 `Zone` locations that can have widgets added to them at run-time via [[UiItemsProvider]].
|
|
298158
|
-
* @public @deprecated in 3.0.
|
|
298194
|
+
* @public @deprecated in 3.0. UI 1.0 support will be removed in AppUi 4.0.
|
|
298159
298195
|
*/
|
|
298160
298196
|
var AbstractZoneLocation;
|
|
298161
298197
|
(function (AbstractZoneLocation) {
|
|
@@ -298171,12 +298207,12 @@ var AbstractZoneLocation;
|
|
|
298171
298207
|
var StagePanelLocation;
|
|
298172
298208
|
(function (StagePanelLocation) {
|
|
298173
298209
|
StagePanelLocation[StagePanelLocation["Top"] = 101] = "Top";
|
|
298174
|
-
/** @deprecated
|
|
298210
|
+
/** @deprecated in 3.6 UI 1.0 support will be removed in AppUi 4.0. */
|
|
298175
298211
|
StagePanelLocation[StagePanelLocation["TopMost"] = 102] = "TopMost";
|
|
298176
298212
|
StagePanelLocation[StagePanelLocation["Left"] = 103] = "Left";
|
|
298177
298213
|
StagePanelLocation[StagePanelLocation["Right"] = 104] = "Right";
|
|
298178
298214
|
StagePanelLocation[StagePanelLocation["Bottom"] = 105] = "Bottom";
|
|
298179
|
-
/** @deprecated
|
|
298215
|
+
/** @deprecated in 3.6 UI 1.0 support will be removed in AppUi 4.0. */
|
|
298180
298216
|
StagePanelLocation[StagePanelLocation["BottomMost"] = 106] = "BottomMost";
|
|
298181
298217
|
})(StagePanelLocation || (StagePanelLocation = {}));
|
|
298182
298218
|
/** Enum for Stage Panel Sections
|
|
@@ -303595,7 +303631,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
303595
303631
|
/***/ ((module) => {
|
|
303596
303632
|
|
|
303597
303633
|
"use strict";
|
|
303598
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.
|
|
303634
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.18","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"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","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.0.0-dev.8","@itwin/core-bentley":"workspace:^4.0.0-dev.18","@itwin/core-common":"workspace:^4.0.0-dev.18","@itwin/core-geometry":"workspace:^4.0.0-dev.18","@itwin/core-orbitgt":"workspace:^4.0.0-dev.18","@itwin/core-quantity":"workspace:^4.0.0-dev.18"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//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/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.3","semver":"^7.3.5","superagent":"^7.1.5","wms-capabilities":"0.4.0","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
|
|
303599
303635
|
|
|
303600
303636
|
/***/ })
|
|
303601
303637
|
|