@itwin/rpcinterface-full-stack-tests 3.6.0-dev.62 → 3.6.0-dev.66
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 +182 -121
- 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.map +1 -1
- 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 +14 -14
|
@@ -49242,6 +49242,8 @@ var DbResult;
|
|
|
49242
49242
|
DbResult[DbResult["BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes"] = 352321546] = "BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes";
|
|
49243
49243
|
/** Recommended that the schemas found in the database be upgraded */
|
|
49244
49244
|
DbResult[DbResult["BE_SQLITE_ERROR_SchemaUpgradeRecommended"] = 369098762] = "BE_SQLITE_ERROR_SchemaUpgradeRecommended";
|
|
49245
|
+
/** schema update require data transform */
|
|
49246
|
+
DbResult[DbResult["BE_SQLITE_ERROR_DataTransformRequired"] = 385875978] = "BE_SQLITE_ERROR_DataTransformRequired";
|
|
49245
49247
|
DbResult[DbResult["BE_SQLITE_LOCKED_SHAREDCACHE"] = 262] = "BE_SQLITE_LOCKED_SHAREDCACHE";
|
|
49246
49248
|
DbResult[DbResult["BE_SQLITE_BUSY_RECOVERY"] = 261] = "BE_SQLITE_BUSY_RECOVERY";
|
|
49247
49249
|
DbResult[DbResult["BE_SQLITE_CANTOPEN_NOTEMPDIR"] = 270] = "BE_SQLITE_CANTOPEN_NOTEMPDIR";
|
|
@@ -49762,6 +49764,7 @@ class BentleyError extends Error {
|
|
|
49762
49764
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_IOERR_SHMMAP: return "BE_SQLITE_IOERR_SHMMAP";
|
|
49763
49765
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_IOERR_SEEK: return "BE_SQLITE_IOERR_SEEK";
|
|
49764
49766
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_IOERR_DELETE_NOENT: return "BE_SQLITE_IOERR_DELETE_NOENT";
|
|
49767
|
+
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_DataTransformRequired: return "Schema update require to transform data";
|
|
49765
49768
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_FileExists: return "File Exists";
|
|
49766
49769
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_AlreadyOpen: return "Already Open";
|
|
49767
49770
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_NoPropertyTable: return "No Property Table";
|
|
@@ -51695,6 +51698,12 @@ class TransientIdSequence {
|
|
|
51695
51698
|
getNext() {
|
|
51696
51699
|
return Id64.fromLocalAndBriefcaseIds(++this._localId, 0xffffff);
|
|
51697
51700
|
}
|
|
51701
|
+
/** Preview the transient Id64String that will be returned by the next call to [[getNext]].
|
|
51702
|
+
* This is primarily useful for tests.
|
|
51703
|
+
*/
|
|
51704
|
+
peekNext() {
|
|
51705
|
+
return Id64.fromLocalAndBriefcaseIds(this._localId + 1, 0xffffff);
|
|
51706
|
+
}
|
|
51698
51707
|
}
|
|
51699
51708
|
/**
|
|
51700
51709
|
* The Guid namespace provides facilities for working with GUID strings using the "8-4-4-4-12" pattern.
|
|
@@ -58552,13 +58561,8 @@ class ContextRealityModel {
|
|
|
58552
58561
|
* @public
|
|
58553
58562
|
*/
|
|
58554
58563
|
class ContextRealityModels {
|
|
58555
|
-
/**
|
|
58556
|
-
|
|
58557
|
-
* to become out of sync with the JSON representation.
|
|
58558
|
-
* @param container The object that holds the JSON representation of the list.
|
|
58559
|
-
* @param createContextRealityModel Optional function used to instantiate ContextRealityModels added to the list.
|
|
58560
|
-
*/
|
|
58561
|
-
constructor(container, createContextRealityModel) {
|
|
58564
|
+
/** @internal */
|
|
58565
|
+
constructor(arg0, createContextRealityModel) {
|
|
58562
58566
|
this._models = [];
|
|
58563
58567
|
/** Event dispatched just before [[ContextRealityModel.planarClipMaskSettings]] is modified for one of the reality models. */
|
|
58564
58568
|
this.onPlanarClipMaskChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
@@ -58570,9 +58574,29 @@ class ContextRealityModels {
|
|
|
58570
58574
|
this.onDisplaySettingsChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
58571
58575
|
/** Event dispatched when a model is [[add]]ed, [[delete]]d, [[replace]]d, or [[update]]d. */
|
|
58572
58576
|
this.onChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
58577
|
+
let container;
|
|
58578
|
+
let defer = false;
|
|
58579
|
+
if (arg0.container) {
|
|
58580
|
+
container = arg0.container;
|
|
58581
|
+
createContextRealityModel = arg0.createContextRealityModel;
|
|
58582
|
+
defer = true === arg0.deferPopulating;
|
|
58583
|
+
}
|
|
58584
|
+
else {
|
|
58585
|
+
container = arg0;
|
|
58586
|
+
}
|
|
58573
58587
|
this._container = container;
|
|
58574
58588
|
this._createModel = createContextRealityModel !== null && createContextRealityModel !== void 0 ? createContextRealityModel : ((props) => new ContextRealityModel(props));
|
|
58575
|
-
|
|
58589
|
+
if (!defer)
|
|
58590
|
+
this.populate();
|
|
58591
|
+
}
|
|
58592
|
+
/** @internal needs to be invoked after DisplayStyleSettings constructor by DisplayStyleState constructor.*/
|
|
58593
|
+
/** Populate the list of [[models]] from the container that was supplied to the constructor.
|
|
58594
|
+
* This should only be invoked once, and only if [[ContextRealityModelsArgs.deferPopulating]] was specified as `true` when calling the constructor.
|
|
58595
|
+
* @public
|
|
58596
|
+
*/
|
|
58597
|
+
populate() {
|
|
58598
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(this._models.length === 0, "do not call ContextRealityModels.populate more than once");
|
|
58599
|
+
const models = this._container.contextRealityModels;
|
|
58576
58600
|
if (models)
|
|
58577
58601
|
for (const model of models)
|
|
58578
58602
|
this._models.push(this.createModel(model));
|
|
@@ -59014,7 +59038,11 @@ class DisplayStyleSettings {
|
|
|
59014
59038
|
const settings = _PlanarClipMask__WEBPACK_IMPORTED_MODULE_8__.PlanarClipMaskSettings.fromJSON(props);
|
|
59015
59039
|
return settings.isValid ? settings : undefined;
|
|
59016
59040
|
});
|
|
59017
|
-
this._contextRealityModels = new _ContextRealityModel__WEBPACK_IMPORTED_MODULE_20__.ContextRealityModels(
|
|
59041
|
+
this._contextRealityModels = new _ContextRealityModel__WEBPACK_IMPORTED_MODULE_20__.ContextRealityModels({
|
|
59042
|
+
container: this._json,
|
|
59043
|
+
createContextRealityModel: options === null || options === void 0 ? void 0 : options.createContextRealityModel,
|
|
59044
|
+
deferPopulating: options === null || options === void 0 ? void 0 : options.deferContextRealityModels,
|
|
59045
|
+
});
|
|
59018
59046
|
}
|
|
59019
59047
|
/** Returns true if this is a [[DisplayStyle3dSettings]]. */
|
|
59020
59048
|
is3d() {
|
|
@@ -82204,7 +82232,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
82204
82232
|
/* eslint-disable deprecation/deprecation */
|
|
82205
82233
|
/** An RPC operation control response.
|
|
82206
82234
|
* @public
|
|
82207
|
-
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in version 5.0.
|
|
82208
82235
|
*/
|
|
82209
82236
|
class RpcControlResponse {
|
|
82210
82237
|
constructor() {
|
|
@@ -82213,7 +82240,6 @@ class RpcControlResponse {
|
|
|
82213
82240
|
}
|
|
82214
82241
|
/** A pending RPC operation response.
|
|
82215
82242
|
* @public
|
|
82216
|
-
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in version 5.0.
|
|
82217
82243
|
*/
|
|
82218
82244
|
class RpcPendingResponse extends RpcControlResponse {
|
|
82219
82245
|
/** Constructs a pending response. */
|
|
@@ -82224,7 +82250,6 @@ class RpcPendingResponse extends RpcControlResponse {
|
|
|
82224
82250
|
}
|
|
82225
82251
|
/** A RPC operation response.
|
|
82226
82252
|
* @public
|
|
82227
|
-
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in version 5.0.
|
|
82228
82253
|
*/
|
|
82229
82254
|
class RpcNotFoundResponse extends RpcControlResponse {
|
|
82230
82255
|
constructor() {
|
|
@@ -93703,7 +93728,11 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
93703
93728
|
class DisplayStyle2dState extends DisplayStyleState {
|
|
93704
93729
|
constructor(props, iModel) {
|
|
93705
93730
|
super(props, iModel);
|
|
93706
|
-
this._settings = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.DisplayStyleSettings(this.jsonProperties, {
|
|
93731
|
+
this._settings = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.DisplayStyleSettings(this.jsonProperties, {
|
|
93732
|
+
createContextRealityModel: (modelProps) => this.createRealityModel(modelProps),
|
|
93733
|
+
deferContextRealityModels: true,
|
|
93734
|
+
});
|
|
93735
|
+
this._settings.contextRealityModels.populate();
|
|
93707
93736
|
this.registerSettingsEventListeners();
|
|
93708
93737
|
}
|
|
93709
93738
|
/** @internal */
|
|
@@ -93719,7 +93748,11 @@ class DisplayStyle2dState extends DisplayStyleState {
|
|
|
93719
93748
|
class DisplayStyle3dState extends DisplayStyleState {
|
|
93720
93749
|
constructor(props, iModel, source) {
|
|
93721
93750
|
super(props, iModel, source);
|
|
93722
|
-
this._settings = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.DisplayStyle3dSettings(this.jsonProperties, {
|
|
93751
|
+
this._settings = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.DisplayStyle3dSettings(this.jsonProperties, {
|
|
93752
|
+
createContextRealityModel: (modelProps) => this.createRealityModel(modelProps),
|
|
93753
|
+
deferContextRealityModels: true,
|
|
93754
|
+
});
|
|
93755
|
+
this._settings.contextRealityModels.populate();
|
|
93723
93756
|
this.registerSettingsEventListeners();
|
|
93724
93757
|
}
|
|
93725
93758
|
/** @internal */
|
|
@@ -112386,6 +112419,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
112386
112419
|
/* harmony export */ "OffScreenViewport": () => (/* reexport safe */ _Viewport__WEBPACK_IMPORTED_MODULE_60__.OffScreenViewport),
|
|
112387
112420
|
/* harmony export */ "OnScreenTarget": () => (/* reexport safe */ _render_webgl_Target__WEBPACK_IMPORTED_MODULE_102__.OnScreenTarget),
|
|
112388
112421
|
/* harmony export */ "OrbitGtTileTree": () => (/* reexport safe */ _tile_internal__WEBPACK_IMPORTED_MODULE_104__.OrbitGtTileTree),
|
|
112422
|
+
/* harmony export */ "OrbitGtTreeReference": () => (/* reexport safe */ _tile_internal__WEBPACK_IMPORTED_MODULE_104__.OrbitGtTreeReference),
|
|
112389
112423
|
/* harmony export */ "OrthographicViewState": () => (/* reexport safe */ _SpatialViewState__WEBPACK_IMPORTED_MODULE_48__.OrthographicViewState),
|
|
112390
112424
|
/* harmony export */ "OutputMessageAlert": () => (/* reexport safe */ _NotificationManager__WEBPACK_IMPORTED_MODULE_43__.OutputMessageAlert),
|
|
112391
112425
|
/* harmony export */ "OutputMessagePriority": () => (/* reexport safe */ _NotificationManager__WEBPACK_IMPORTED_MODULE_43__.OutputMessagePriority),
|
|
@@ -156496,6 +156530,7 @@ class OPCFormatInterpreter {
|
|
|
156496
156530
|
__webpack_require__.r(__webpack_exports__);
|
|
156497
156531
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
156498
156532
|
/* harmony export */ "OrbitGtTileTree": () => (/* binding */ OrbitGtTileTree),
|
|
156533
|
+
/* harmony export */ "OrbitGtTreeReference": () => (/* binding */ OrbitGtTreeReference),
|
|
156499
156534
|
/* harmony export */ "createOrbitGtTileTreeReference": () => (/* binding */ createOrbitGtTileTreeReference)
|
|
156500
156535
|
/* harmony export */ });
|
|
156501
156536
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
@@ -156503,10 +156538,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
156503
156538
|
/* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
156504
156539
|
/* harmony import */ var _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-orbitgt */ "../../core/orbitgt/lib/esm/core-orbitgt.js");
|
|
156505
156540
|
/* harmony import */ var _BackgroundMapGeometry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../BackgroundMapGeometry */ "../../core/frontend/lib/esm/BackgroundMapGeometry.js");
|
|
156506
|
-
/* harmony import */ var
|
|
156507
|
-
/* harmony import */ var
|
|
156508
|
-
/* harmony import */ var
|
|
156509
|
-
/* harmony import */ var
|
|
156541
|
+
/* harmony import */ var _DisplayStyleState__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../DisplayStyleState */ "../../core/frontend/lib/esm/DisplayStyleState.js");
|
|
156542
|
+
/* harmony import */ var _IModelApp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../IModelApp */ "../../core/frontend/lib/esm/IModelApp.js");
|
|
156543
|
+
/* harmony import */ var _RealityDataSource__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../RealityDataSource */ "../../core/frontend/lib/esm/RealityDataSource.js");
|
|
156544
|
+
/* harmony import */ var _render_primitives_mesh_MeshPrimitives__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../render/primitives/mesh/MeshPrimitives */ "../../core/frontend/lib/esm/render/primitives/mesh/MeshPrimitives.js");
|
|
156545
|
+
/* harmony import */ var _internal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./internal */ "../../core/frontend/lib/esm/tile/internal.js");
|
|
156510
156546
|
/*---------------------------------------------------------------------------------------------
|
|
156511
156547
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
156512
156548
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -156523,8 +156559,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
156523
156559
|
|
|
156524
156560
|
|
|
156525
156561
|
|
|
156562
|
+
|
|
156526
156563
|
const scratchRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Range3d.create();
|
|
156527
156564
|
const scratchWorldFrustum = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Frustum();
|
|
156565
|
+
function compareSourceKeys(lhs, rhs) {
|
|
156566
|
+
return (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareStringsOrUndefined)(lhs.id, rhs.id) || (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareStringsOrUndefined)(lhs.format, rhs.format) || (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareStringsOrUndefined)(lhs.iTwinId, rhs.iTwinId);
|
|
156567
|
+
}
|
|
156528
156568
|
class OrbitGtTreeSupplier {
|
|
156529
156569
|
getOwner(treeId, iModel) {
|
|
156530
156570
|
return iModel.tiles.getTileTreeOwner(treeId, this);
|
|
@@ -156533,14 +156573,21 @@ class OrbitGtTreeSupplier {
|
|
|
156533
156573
|
return OrbitGtTileTree.createOrbitGtTileTree(treeId.rdSourceKey, iModel, treeId.modelId);
|
|
156534
156574
|
}
|
|
156535
156575
|
compareTileTreeIds(lhs, rhs) {
|
|
156536
|
-
|
|
156537
|
-
|
|
156538
|
-
|
|
156539
|
-
|
|
156540
|
-
|
|
156541
|
-
|
|
156542
|
-
|
|
156543
|
-
|
|
156576
|
+
return (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareStringsOrUndefined)(lhs.modelId, rhs.modelId) || compareSourceKeys(lhs.rdSourceKey, rhs.rdSourceKey);
|
|
156577
|
+
}
|
|
156578
|
+
findCompatibleContextRealityModelId(sourceKey, style) {
|
|
156579
|
+
const owners = style.iModel.tiles.getTreeOwnersForSupplier(this);
|
|
156580
|
+
for (const owner of owners) {
|
|
156581
|
+
// Find an existing tree with the same reality data source key.
|
|
156582
|
+
if (0 === compareSourceKeys(sourceKey, owner.id.rdSourceKey)) {
|
|
156583
|
+
const modelId = owner.id.modelId;
|
|
156584
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== modelId);
|
|
156585
|
+
// If the model Id is unused by any other context reality model in the view and does not identify a persistent reality model, use it.
|
|
156586
|
+
if (_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.isTransientId64(modelId) && !style.contextRealityModelStates.some((model) => model.modelId === modelId))
|
|
156587
|
+
return modelId;
|
|
156588
|
+
}
|
|
156589
|
+
}
|
|
156590
|
+
return undefined;
|
|
156544
156591
|
}
|
|
156545
156592
|
}
|
|
156546
156593
|
const orbitGtTreeSupplier = new OrbitGtTreeSupplier();
|
|
@@ -156580,12 +156627,12 @@ class OrbitGtTileTreeParams {
|
|
|
156580
156627
|
this.modelId = modelId;
|
|
156581
156628
|
this.iModel = iModel;
|
|
156582
156629
|
}
|
|
156583
|
-
get priority() { return
|
|
156630
|
+
get priority() { return _internal__WEBPACK_IMPORTED_MODULE_9__.TileLoadPriority.Context; }
|
|
156584
156631
|
}
|
|
156585
|
-
class OrbitGtRootTile extends
|
|
156632
|
+
class OrbitGtRootTile extends _internal__WEBPACK_IMPORTED_MODULE_9__.Tile {
|
|
156586
156633
|
_loadChildren(_resolve, _reject) { }
|
|
156587
156634
|
async requestContent(_isCanceled) { return undefined; }
|
|
156588
|
-
get channel() { return
|
|
156635
|
+
get channel() { return _IModelApp__WEBPACK_IMPORTED_MODULE_6__.IModelApp.tileAdmin.channels.getForHttp("itwinjs-orbitgit"); }
|
|
156589
156636
|
async readContent(_data, _system, _isCanceled) { return {}; }
|
|
156590
156637
|
freeMemory() { }
|
|
156591
156638
|
constructor(params, tree) { super(params, tree); }
|
|
@@ -156651,7 +156698,7 @@ class TileSortProjector {
|
|
|
156651
156698
|
coordinate.z = point.z;
|
|
156652
156699
|
}
|
|
156653
156700
|
}
|
|
156654
|
-
class OrbitGtTileGraphic extends
|
|
156701
|
+
class OrbitGtTileGraphic extends _internal__WEBPACK_IMPORTED_MODULE_9__.TileUsageMarker {
|
|
156655
156702
|
constructor(graphic, viewport, time) {
|
|
156656
156703
|
super();
|
|
156657
156704
|
this.graphic = graphic;
|
|
@@ -156662,7 +156709,7 @@ class OrbitGtTileGraphic extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileUsag
|
|
|
156662
156709
|
}
|
|
156663
156710
|
}
|
|
156664
156711
|
/** @internal */
|
|
156665
|
-
class OrbitGtTileTree extends
|
|
156712
|
+
class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_9__.TileTree {
|
|
156666
156713
|
constructor(treeParams, _dataManager, cloudRange, _centerOffset, _ecefTransform) {
|
|
156667
156714
|
super(treeParams);
|
|
156668
156715
|
this._dataManager = _dataManager;
|
|
@@ -156721,7 +156768,7 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTree {
|
|
|
156721
156768
|
let totalPointCount = 0;
|
|
156722
156769
|
const tileCount = frameData.tilesToRender.size();
|
|
156723
156770
|
// Inform TileAdmin about tiles we are handling ourselves...
|
|
156724
|
-
|
|
156771
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_6__.IModelApp.tileAdmin.addExternalTilesForUser(args.context.viewport, { requested: frameData.tilesToLoad.size() + (frameData.hasMissingData() ? 1 : 0), selected: tileCount, ready: tileCount });
|
|
156725
156772
|
if (debugBuilder)
|
|
156726
156773
|
debugBuilder.setSymbology(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ColorDef.red, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ColorDef.red, 1);
|
|
156727
156774
|
let minLevel = 100, maxLevel = -100;
|
|
@@ -156742,8 +156789,8 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTree {
|
|
|
156742
156789
|
range.high.addInPlace(this._centerOffset);
|
|
156743
156790
|
const qParams = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QParams3d.fromRange(range, undefined, (tile.points8 != null) ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Quantization.rangeScale8 : _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Quantization.rangeScale16);
|
|
156744
156791
|
const featureTable = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FeatureTable(1, this.modelId, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BatchType.Primary);
|
|
156745
|
-
const features = new
|
|
156746
|
-
const system =
|
|
156792
|
+
const features = new _render_primitives_mesh_MeshPrimitives__WEBPACK_IMPORTED_MODULE_8__.Mesh.Features(featureTable);
|
|
156793
|
+
const system = _IModelApp__WEBPACK_IMPORTED_MODULE_6__.IModelApp.renderSystem;
|
|
156747
156794
|
const voxelSize = (range.high.x - range.low.x) / 64;
|
|
156748
156795
|
features.add(new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Feature(this.modelId), 1);
|
|
156749
156796
|
const tilePoints = (tile.points8 != null) ? tile.points8.toNativeBuffer() : tile.points16.toNativeBuffer();
|
|
@@ -156770,7 +156817,7 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTree {
|
|
|
156770
156817
|
}
|
|
156771
156818
|
args.drawGraphics();
|
|
156772
156819
|
if (frameData.hasMissingData()) {
|
|
156773
|
-
this._dataManager.loadData(frameData).then(() =>
|
|
156820
|
+
this._dataManager.loadData(frameData).then(() => _IModelApp__WEBPACK_IMPORTED_MODULE_6__.IModelApp.tileAdmin.onTileLoad.raiseEvent(this.rootTile)).catch((_err) => undefined);
|
|
156774
156821
|
}
|
|
156775
156822
|
}
|
|
156776
156823
|
}
|
|
@@ -156799,7 +156846,7 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTree {
|
|
|
156799
156846
|
return isValidSASToken(props.sasToken);
|
|
156800
156847
|
}
|
|
156801
156848
|
async function createOrbitGtTileTree(rdSourceKey, iModel, modelId) {
|
|
156802
|
-
const rdSource = await
|
|
156849
|
+
const rdSource = await _RealityDataSource__WEBPACK_IMPORTED_MODULE_7__.RealityDataSource.fromKey(rdSourceKey, iModel.iTwinId);
|
|
156803
156850
|
const isContextShare = rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.ContextShare;
|
|
156804
156851
|
const isTilestUrl = rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.TilesetUrl;
|
|
156805
156852
|
let blobStringUrl;
|
|
@@ -156810,7 +156857,7 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTree {
|
|
|
156810
156857
|
const docRootName = realityData.rootDocument;
|
|
156811
156858
|
if (!docRootName)
|
|
156812
156859
|
return undefined;
|
|
156813
|
-
const token = await
|
|
156860
|
+
const token = await _IModelApp__WEBPACK_IMPORTED_MODULE_6__.IModelApp.getAccessToken();
|
|
156814
156861
|
const blobUrl = await realityData.getBlobUrl(token, docRootName);
|
|
156815
156862
|
blobStringUrl = blobUrl.toString();
|
|
156816
156863
|
}
|
|
@@ -156818,7 +156865,7 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTree {
|
|
|
156818
156865
|
blobStringUrl = rdSourceKey.id;
|
|
156819
156866
|
}
|
|
156820
156867
|
else {
|
|
156821
|
-
const orbitGtBlobProps =
|
|
156868
|
+
const orbitGtBlobProps = _RealityDataSource__WEBPACK_IMPORTED_MODULE_7__.RealityDataSource.createOrbitGtBlobPropsFromKey(rdSourceKey);
|
|
156822
156869
|
if (orbitGtBlobProps === undefined)
|
|
156823
156870
|
return undefined;
|
|
156824
156871
|
if (!isValidOrbitGtBlobProps(orbitGtBlobProps))
|
|
@@ -156891,9 +156938,9 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTree {
|
|
|
156891
156938
|
OrbitGtTileTree.createOrbitGtTileTree = createOrbitGtTileTree;
|
|
156892
156939
|
})(OrbitGtTileTree || (OrbitGtTileTree = {}));
|
|
156893
156940
|
/** Supplies a reality data [[TileTree]] from a URL. May be associated with a persistent [[GeometricModelState]], or attached at run-time via a [[ContextOrbitGtState]].
|
|
156894
|
-
* @internal
|
|
156941
|
+
* @internal exported strictly for tests.
|
|
156895
156942
|
*/
|
|
156896
|
-
class OrbitGtTreeReference extends
|
|
156943
|
+
class OrbitGtTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_9__.RealityModelTileTree.Reference {
|
|
156897
156944
|
constructor(props) {
|
|
156898
156945
|
super(props);
|
|
156899
156946
|
// Create rdSourceKey if not provided
|
|
@@ -156901,24 +156948,30 @@ class OrbitGtTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_8__.Realit
|
|
|
156901
156948
|
this._rdSourceKey = props.rdSourceKey;
|
|
156902
156949
|
}
|
|
156903
156950
|
else if (props.orbitGtBlob) {
|
|
156904
|
-
this._rdSourceKey =
|
|
156951
|
+
this._rdSourceKey = _RealityDataSource__WEBPACK_IMPORTED_MODULE_7__.RealityDataSource.createKeyFromOrbitGtBlobProps(props.orbitGtBlob);
|
|
156905
156952
|
}
|
|
156906
156953
|
else {
|
|
156907
156954
|
// TODO: Maybe we should throw an exception
|
|
156908
|
-
this._rdSourceKey =
|
|
156955
|
+
this._rdSourceKey = _RealityDataSource__WEBPACK_IMPORTED_MODULE_7__.RealityDataSource.createKeyFromBlobUrl("", _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.OrbitGtBlob, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataFormat.OPC);
|
|
156909
156956
|
}
|
|
156957
|
+
// ###TODO find compatible model Id
|
|
156958
|
+
let modelId = props.modelId;
|
|
156959
|
+
if (undefined === modelId && this._source instanceof _DisplayStyleState__WEBPACK_IMPORTED_MODULE_5__.DisplayStyleState)
|
|
156960
|
+
modelId = orbitGtTreeSupplier.findCompatibleContextRealityModelId(this._rdSourceKey, this._source);
|
|
156961
|
+
this._modelId = modelId !== null && modelId !== void 0 ? modelId : props.iModel.transientIds.getNext();
|
|
156910
156962
|
const ogtTreeId = { rdSourceKey: this._rdSourceKey, modelId: this.modelId };
|
|
156911
156963
|
this.treeOwner = orbitGtTreeSupplier.getOwner(ogtTreeId, props.iModel);
|
|
156912
156964
|
}
|
|
156913
156965
|
get castsShadows() { return false; }
|
|
156966
|
+
get modelId() { return this._modelId; }
|
|
156914
156967
|
async getToolTip(hit) {
|
|
156915
156968
|
const tree = this.treeOwner.tileTree;
|
|
156916
156969
|
if (undefined === tree || hit.iModel !== tree.iModel)
|
|
156917
156970
|
return undefined;
|
|
156918
156971
|
const strings = [];
|
|
156919
|
-
strings.push(
|
|
156972
|
+
strings.push(_IModelApp__WEBPACK_IMPORTED_MODULE_6__.IModelApp.localization.getLocalizedString("iModelJs:RealityModelTypes.OrbitGTPointCloud"));
|
|
156920
156973
|
if (this._name)
|
|
156921
|
-
strings.push(`${
|
|
156974
|
+
strings.push(`${_IModelApp__WEBPACK_IMPORTED_MODULE_6__.IModelApp.localization.getLocalizedString("iModelJs:TooltipInfo.Name")} ${this._name}`);
|
|
156922
156975
|
const div = document.createElement("div");
|
|
156923
156976
|
div.innerHTML = strings.join("<br>");
|
|
156924
156977
|
return div;
|
|
@@ -157748,10 +157801,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
157748
157801
|
/* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
157749
157802
|
/* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
157750
157803
|
/* harmony import */ var _BackgroundMapGeometry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../BackgroundMapGeometry */ "../../core/frontend/lib/esm/BackgroundMapGeometry.js");
|
|
157751
|
-
/* harmony import */ var
|
|
157752
|
-
/* harmony import */ var
|
|
157753
|
-
/* harmony import */ var
|
|
157754
|
-
/* harmony import */ var
|
|
157804
|
+
/* harmony import */ var _DisplayStyleState__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../DisplayStyleState */ "../../core/frontend/lib/esm/DisplayStyleState.js");
|
|
157805
|
+
/* harmony import */ var _IModelApp__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../IModelApp */ "../../core/frontend/lib/esm/IModelApp.js");
|
|
157806
|
+
/* harmony import */ var _PlanarClipMaskState__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../PlanarClipMaskState */ "../../core/frontend/lib/esm/PlanarClipMaskState.js");
|
|
157807
|
+
/* harmony import */ var _RealityDataSource__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../RealityDataSource */ "../../core/frontend/lib/esm/RealityDataSource.js");
|
|
157808
|
+
/* harmony import */ var _internal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./internal */ "../../core/frontend/lib/esm/tile/internal.js");
|
|
157755
157809
|
/*---------------------------------------------------------------------------------------------
|
|
157756
157810
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
157757
157811
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -157767,34 +157821,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
157767
157821
|
|
|
157768
157822
|
|
|
157769
157823
|
|
|
157824
|
+
|
|
157770
157825
|
function getUrl(content) {
|
|
157771
157826
|
return content ? (content.url ? content.url : content.uri) : undefined;
|
|
157772
157827
|
}
|
|
157773
|
-
|
|
157774
|
-
|
|
157775
|
-
|
|
157776
|
-
|
|
157777
|
-
if (0 === cmp)
|
|
157778
|
-
cmp = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareNumbers)(lhs.z, rhs.z);
|
|
157828
|
+
var RealityTreeId;
|
|
157829
|
+
(function (RealityTreeId) {
|
|
157830
|
+
function compareOrigins(lhs, rhs) {
|
|
157831
|
+
return (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareNumbers)(lhs.x, rhs.x) || (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareNumbers)(lhs.y, rhs.y) || (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareNumbers)(lhs.z, rhs.z);
|
|
157779
157832
|
}
|
|
157780
|
-
|
|
157781
|
-
|
|
157782
|
-
|
|
157783
|
-
|
|
157784
|
-
|
|
157785
|
-
|
|
157786
|
-
|
|
157833
|
+
function compareMatrices(lhs, rhs) {
|
|
157834
|
+
for (let i = 0; i < 9; i++) {
|
|
157835
|
+
const cmp = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareNumbers)(lhs.coffs[i], rhs.coffs[i]);
|
|
157836
|
+
if (0 !== cmp)
|
|
157837
|
+
return cmp;
|
|
157838
|
+
}
|
|
157839
|
+
return 0;
|
|
157787
157840
|
}
|
|
157788
|
-
|
|
157789
|
-
|
|
157790
|
-
|
|
157791
|
-
|
|
157792
|
-
return
|
|
157793
|
-
|
|
157794
|
-
|
|
157795
|
-
|
|
157796
|
-
|
|
157797
|
-
|
|
157841
|
+
function compareTransforms(lhs, rhs) {
|
|
157842
|
+
return compareOrigins(lhs.origin, rhs.origin) || compareMatrices(lhs.matrix, rhs.matrix);
|
|
157843
|
+
}
|
|
157844
|
+
function compareRealityDataSourceKeys(lhs, rhs) {
|
|
157845
|
+
return (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareStringsOrUndefined)(lhs.id, rhs.id) || (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareStringsOrUndefined)(lhs.format, rhs.format) || (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareStringsOrUndefined)(lhs.iTwinId, rhs.iTwinId);
|
|
157846
|
+
}
|
|
157847
|
+
function compareWithoutModelId(lhs, rhs) {
|
|
157848
|
+
return compareRealityDataSourceKeys(lhs.rdSourceKey, rhs.rdSourceKey)
|
|
157849
|
+
|| (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareBooleans)(lhs.deduplicateVertices, rhs.deduplicateVertices)
|
|
157850
|
+
|| (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareBooleansOrUndefined)(lhs.produceGeometry, rhs.produceGeometry)
|
|
157851
|
+
|| (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareStringsOrUndefined)(lhs.maskModelIds, rhs.maskModelIds)
|
|
157852
|
+
|| (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.comparePossiblyUndefined)((ltf, rtf) => compareTransforms(ltf, rtf), lhs.transform, rhs.transform);
|
|
157853
|
+
}
|
|
157854
|
+
RealityTreeId.compareWithoutModelId = compareWithoutModelId;
|
|
157855
|
+
function compare(lhs, rhs) {
|
|
157856
|
+
return (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareStrings)(lhs.modelId, rhs.modelId) || compareWithoutModelId(lhs, rhs);
|
|
157857
|
+
}
|
|
157858
|
+
RealityTreeId.compare = compare;
|
|
157859
|
+
})(RealityTreeId || (RealityTreeId = {}));
|
|
157798
157860
|
class RealityTreeSupplier {
|
|
157799
157861
|
constructor() {
|
|
157800
157862
|
this.isEcefDependent = true;
|
|
@@ -157809,30 +157871,21 @@ class RealityTreeSupplier {
|
|
|
157809
157871
|
return RealityModelTileTree.createRealityModelTileTree(treeId.rdSourceKey, iModel, treeId.modelId, treeId.transform, opts);
|
|
157810
157872
|
}
|
|
157811
157873
|
compareTileTreeIds(lhs, rhs) {
|
|
157812
|
-
|
|
157813
|
-
|
|
157814
|
-
|
|
157815
|
-
|
|
157816
|
-
|
|
157817
|
-
|
|
157818
|
-
|
|
157819
|
-
|
|
157820
|
-
|
|
157821
|
-
|
|
157874
|
+
return RealityTreeId.compare(lhs, rhs);
|
|
157875
|
+
}
|
|
157876
|
+
findCompatibleContextRealityModelId(id, style) {
|
|
157877
|
+
const owners = style.iModel.tiles.getTreeOwnersForSupplier(this);
|
|
157878
|
+
for (const owner of owners) {
|
|
157879
|
+
// Find an existing tree with the same Id, ignoring its model Id.
|
|
157880
|
+
if (0 === RealityTreeId.compareWithoutModelId(id, owner.id)) {
|
|
157881
|
+
const modelId = owner.id.modelId;
|
|
157882
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== modelId);
|
|
157883
|
+
// If the model Id is unused by any other context reality model in the view and does not identify a persistent reality model, use it.
|
|
157884
|
+
if (_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.isTransientId64(modelId) && !style.contextRealityModelStates.some((model) => model.modelId === modelId))
|
|
157885
|
+
return modelId;
|
|
157822
157886
|
}
|
|
157823
157887
|
}
|
|
157824
|
-
|
|
157825
|
-
return cmp;
|
|
157826
|
-
cmp = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareStringsOrUndefined)(lhs.maskModelIds, rhs.maskModelIds);
|
|
157827
|
-
if (0 !== cmp)
|
|
157828
|
-
return cmp;
|
|
157829
|
-
cmp = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.compareBooleansOrUndefined)(lhs.produceGeometry, rhs.produceGeometry);
|
|
157830
|
-
if (0 !== cmp)
|
|
157831
|
-
return cmp;
|
|
157832
|
-
cmp = compareTransforms(lhs.transform, rhs.transform);
|
|
157833
|
-
if (0 !== cmp)
|
|
157834
|
-
return cmp;
|
|
157835
|
-
return compareTransforms(lhs.toEcefTransform, rhs.toEcefTransform);
|
|
157888
|
+
return undefined;
|
|
157836
157889
|
}
|
|
157837
157890
|
}
|
|
157838
157891
|
const realityTreeSupplier = new RealityTreeSupplier();
|
|
@@ -157930,7 +157983,7 @@ class RealityModelTileUtils {
|
|
|
157930
157983
|
return range ? { range, corners } : undefined;
|
|
157931
157984
|
}
|
|
157932
157985
|
static maximumSizeFromGeometricTolerance(range, geometricError) {
|
|
157933
|
-
const minToleranceRatio = true ===
|
|
157986
|
+
const minToleranceRatio = true === _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.renderSystem.isMobile ? _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tileAdmin.mobileRealityTileMinToleranceRatio : 1.0; // Nominally the error on screen size of a tile. Increasing generally increases performance (fewer draw calls) at expense of higher load times.
|
|
157934
157987
|
// NB: We increase the above minToleranceRatio on mobile devices in order to help avoid pruning too often based on the memory threshold for
|
|
157935
157988
|
// pruning currently used by reality tile trees on mobile.
|
|
157936
157989
|
return minToleranceRatio * range.diagonal().magnitude() / geometricError;
|
|
@@ -158072,7 +158125,7 @@ async function expandSubTree(root, rdsource) {
|
|
|
158072
158125
|
return subTree.root;
|
|
158073
158126
|
}
|
|
158074
158127
|
/** @internal */
|
|
158075
|
-
class RealityModelTileLoader extends
|
|
158128
|
+
class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_8__.RealityTileLoader {
|
|
158076
158129
|
constructor(tree, batchedIdMap, opts) {
|
|
158077
158130
|
var _a, _b;
|
|
158078
158131
|
super((_a = opts === null || opts === void 0 ? void 0 : opts.produceGeometry) !== null && _a !== void 0 ? _a : false);
|
|
@@ -158082,7 +158135,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_7__.Real
|
|
|
158082
158135
|
let clipVolume;
|
|
158083
158136
|
if (RealityTileRegion.isGlobal(tree.tilesetJson.boundingVolume))
|
|
158084
158137
|
clipVolume = false;
|
|
158085
|
-
this._viewFlagOverrides = (0,
|
|
158138
|
+
this._viewFlagOverrides = (0,_internal__WEBPACK_IMPORTED_MODULE_8__.createDefaultViewFlagOverrides)({ lighting: true, clipVolume });
|
|
158086
158139
|
// Display edges if they are present (Cesium outline extension) and enabled for view.
|
|
158087
158140
|
this._viewFlagOverrides.visibleEdges = undefined;
|
|
158088
158141
|
this._viewFlagOverrides.hiddenEdges = undefined;
|
|
@@ -158093,7 +158146,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_7__.Real
|
|
|
158093
158146
|
get wantDeduplicatedVertices() { return this._deduplicateVertices; }
|
|
158094
158147
|
get maxDepth() { return 32; } // Can be removed when element tile selector is working.
|
|
158095
158148
|
get minDepth() { return 0; }
|
|
158096
|
-
get priority() { return
|
|
158149
|
+
get priority() { return _internal__WEBPACK_IMPORTED_MODULE_8__.TileLoadPriority.Context; }
|
|
158097
158150
|
getBatchIdMap() { return this._batchedIdMap; }
|
|
158098
158151
|
get clipLowResolutionTiles() { return true; }
|
|
158099
158152
|
get viewFlagOverrides() { return this._viewFlagOverrides; }
|
|
@@ -158136,7 +158189,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_7__.Real
|
|
|
158136
158189
|
}
|
|
158137
158190
|
getRequestChannel(_tile) {
|
|
158138
158191
|
// ###TODO: May want to extract the hostname from the URL.
|
|
158139
|
-
return
|
|
158192
|
+
return _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tileAdmin.channels.getForHttp("itwinjs-reality-model");
|
|
158140
158193
|
}
|
|
158141
158194
|
async requestTileContent(tile, isCanceled) {
|
|
158142
158195
|
const foundChild = await this.findTileInJson(this.tree.tilesetJson, tile.contentId, "");
|
|
@@ -158168,7 +158221,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_7__.Real
|
|
|
158168
158221
|
}
|
|
158169
158222
|
}
|
|
158170
158223
|
/** @internal */
|
|
158171
|
-
class RealityModelTileTree extends
|
|
158224
|
+
class RealityModelTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.RealityTileTree {
|
|
158172
158225
|
constructor(params) {
|
|
158173
158226
|
super(params);
|
|
158174
158227
|
this._isContentUnbounded = this.rootTile.contentRange.diagonal().magnitude() > 2 * _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Constant.earthRadiusWGS84.equator;
|
|
@@ -158183,11 +158236,10 @@ class RealityModelTileTree extends _internal__WEBPACK_IMPORTED_MODULE_7__.Realit
|
|
|
158183
158236
|
/** @internal */
|
|
158184
158237
|
// eslint-disable-next-line no-redeclare
|
|
158185
158238
|
(function (RealityModelTileTree) {
|
|
158186
|
-
class Reference extends
|
|
158239
|
+
class Reference extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTreeReference {
|
|
158187
158240
|
constructor(props) {
|
|
158188
158241
|
super();
|
|
158189
158242
|
this._name = undefined !== props.name ? props.name : "";
|
|
158190
|
-
this._modelId = props.modelId ? props.modelId : props.iModel.transientIds.getNext();
|
|
158191
158243
|
let transform;
|
|
158192
158244
|
if (undefined !== props.tilesetToDbTransform) {
|
|
158193
158245
|
const tf = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Transform.fromJSON(props.tilesetToDbTransform);
|
|
@@ -158199,11 +158251,10 @@ class RealityModelTileTree extends _internal__WEBPACK_IMPORTED_MODULE_7__.Realit
|
|
|
158199
158251
|
this._source = props.source;
|
|
158200
158252
|
this._getDisplaySettings = () => props.getDisplaySettings();
|
|
158201
158253
|
if (props.planarClipMask)
|
|
158202
|
-
this._planarClipMask =
|
|
158254
|
+
this._planarClipMask = _PlanarClipMaskState__WEBPACK_IMPORTED_MODULE_6__.PlanarClipMaskState.create(props.planarClipMask);
|
|
158203
158255
|
if (undefined !== props.classifiers)
|
|
158204
|
-
this._classifier = (0,
|
|
158256
|
+
this._classifier = (0,_internal__WEBPACK_IMPORTED_MODULE_8__.createClassifierTileTreeReference)(props.classifiers, this, props.iModel, props.source);
|
|
158205
158257
|
}
|
|
158206
|
-
get modelId() { return this._modelId; }
|
|
158207
158258
|
// public get classifiers(): SpatialClassifiers | undefined { return undefined !== this._classifier ? this._classifier.classifiers : undefined; }
|
|
158208
158259
|
get planarClipMask() { return this._planarClipMask; }
|
|
158209
158260
|
set planarClipMask(planarClipMask) { this._planarClipMask = planarClipMask; }
|
|
@@ -158269,7 +158320,7 @@ class RealityModelTileTree extends _internal__WEBPACK_IMPORTED_MODULE_7__.Realit
|
|
|
158269
158320
|
if (args) {
|
|
158270
158321
|
args.graphics.realityModelDisplaySettings = this._getDisplaySettings();
|
|
158271
158322
|
args.graphics.realityModelRange = args.tree.rootTile.contentRange;
|
|
158272
|
-
if (args.tree instanceof
|
|
158323
|
+
if (args.tree instanceof _internal__WEBPACK_IMPORTED_MODULE_8__.RealityTileTree) {
|
|
158273
158324
|
const maxSSE = args.tree.loader.maximumScreenSpaceError;
|
|
158274
158325
|
if (undefined !== maxSSE)
|
|
158275
158326
|
args.maximumScreenSpaceError = maxSSE;
|
|
@@ -158280,7 +158331,7 @@ class RealityModelTileTree extends _internal__WEBPACK_IMPORTED_MODULE_7__.Realit
|
|
|
158280
158331
|
}
|
|
158281
158332
|
RealityModelTileTree.Reference = Reference;
|
|
158282
158333
|
async function createRealityModelTileTree(rdSourceKey, iModel, modelId, tilesetToDb, opts) {
|
|
158283
|
-
const rdSource = await
|
|
158334
|
+
const rdSource = await _RealityDataSource__WEBPACK_IMPORTED_MODULE_7__.RealityDataSource.fromKey(rdSourceKey, iModel.iTwinId);
|
|
158284
158335
|
// If we can get a valid connection from sourceKey, returns the tile tree
|
|
158285
158336
|
if (rdSource) {
|
|
158286
158337
|
// Serialize the reality data source key into a string to uniquely identify this tile tree
|
|
@@ -158288,8 +158339,8 @@ class RealityModelTileTree extends _internal__WEBPACK_IMPORTED_MODULE_7__.Realit
|
|
|
158288
158339
|
if (tileTreeId === undefined)
|
|
158289
158340
|
return undefined;
|
|
158290
158341
|
const props = await getTileTreeProps(rdSource, tilesetToDb, iModel);
|
|
158291
|
-
const loader = new RealityModelTileLoader(props, new
|
|
158292
|
-
const gcsConverterAvailable = await (0,
|
|
158342
|
+
const loader = new RealityModelTileLoader(props, new _internal__WEBPACK_IMPORTED_MODULE_8__.BatchedTileIdMap(iModel), opts);
|
|
158343
|
+
const gcsConverterAvailable = await (0,_internal__WEBPACK_IMPORTED_MODULE_8__.getGcsConverterAvailable)(iModel);
|
|
158293
158344
|
const params = new RealityModelTileTreeParams(tileTreeId, iModel, modelId, loader, gcsConverterAvailable, props.tilesetToEcef);
|
|
158294
158345
|
return new RealityModelTileTree(params);
|
|
158295
158346
|
}
|
|
@@ -158356,20 +158407,29 @@ class RealityTreeReference extends RealityModelTileTree.Reference {
|
|
|
158356
158407
|
if (props.rdSourceKey)
|
|
158357
158408
|
this._rdSourceKey = props.rdSourceKey;
|
|
158358
158409
|
else
|
|
158359
|
-
this._rdSourceKey =
|
|
158410
|
+
this._rdSourceKey = _RealityDataSource__WEBPACK_IMPORTED_MODULE_7__.RealityDataSource.createKeyFromUrl((_a = props.url) !== null && _a !== void 0 ? _a : "", _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.ContextShare);
|
|
158360
158411
|
if (this._produceGeometry)
|
|
158361
158412
|
this.collectTileGeometry = (collector) => this._collectTileGeometry(collector);
|
|
158413
|
+
let modelId = props.modelId;
|
|
158414
|
+
if (undefined === modelId && this._source instanceof _DisplayStyleState__WEBPACK_IMPORTED_MODULE_4__.DisplayStyleState) {
|
|
158415
|
+
const treeId = this.createTreeId(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid);
|
|
158416
|
+
modelId = realityTreeSupplier.findCompatibleContextRealityModelId(treeId, this._source);
|
|
158417
|
+
}
|
|
158418
|
+
this._modelId = modelId !== null && modelId !== void 0 ? modelId : props.iModel.transientIds.getNext();
|
|
158362
158419
|
}
|
|
158363
|
-
get
|
|
158364
|
-
|
|
158420
|
+
get modelId() { return this._modelId; }
|
|
158421
|
+
createTreeId(modelId) {
|
|
158422
|
+
return {
|
|
158365
158423
|
rdSourceKey: this._rdSourceKey,
|
|
158366
158424
|
transform: this._transform,
|
|
158367
|
-
modelId
|
|
158425
|
+
modelId,
|
|
158368
158426
|
maskModelIds: this.maskModelIds,
|
|
158369
158427
|
deduplicateVertices: this._wantWiremesh,
|
|
158370
158428
|
produceGeometry: this._produceGeometry,
|
|
158371
158429
|
};
|
|
158372
|
-
|
|
158430
|
+
}
|
|
158431
|
+
get treeOwner() {
|
|
158432
|
+
return realityTreeSupplier.getOwner(this.createTreeId(this.modelId), this._iModel);
|
|
158373
158433
|
}
|
|
158374
158434
|
_createGeometryTreeReference() {
|
|
158375
158435
|
const ref = new RealityTreeReference({
|
|
@@ -158433,21 +158493,21 @@ class RealityTreeReference extends RealityModelTileTree.Reference {
|
|
|
158433
158493
|
// Case insensitive
|
|
158434
158494
|
switch (type.toUpperCase()) {
|
|
158435
158495
|
case _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.DefaultSupportedTypes.RealityMesh3dTiles.toUpperCase():
|
|
158436
|
-
strings.push(
|
|
158496
|
+
strings.push(_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.localization.getLocalizedString("iModelJs:RealityModelTypes.RealityMesh3DTiles"));
|
|
158437
158497
|
break;
|
|
158438
158498
|
case _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.DefaultSupportedTypes.Terrain3dTiles.toUpperCase():
|
|
158439
|
-
strings.push(
|
|
158499
|
+
strings.push(_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.localization.getLocalizedString("iModelJs:RealityModelTypes.Terrain3DTiles"));
|
|
158440
158500
|
break;
|
|
158441
158501
|
case _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.DefaultSupportedTypes.Cesium3dTiles.toUpperCase():
|
|
158442
|
-
strings.push(
|
|
158502
|
+
strings.push(_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.localization.getLocalizedString("iModelJs:RealityModelTypes.Cesium3DTiles"));
|
|
158443
158503
|
break;
|
|
158444
158504
|
}
|
|
158445
158505
|
}
|
|
158446
158506
|
if (this._name) {
|
|
158447
|
-
strings.push(`${
|
|
158507
|
+
strings.push(`${_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.localization.getLocalizedString("iModelJs:TooltipInfo.Name")} ${this._name}`);
|
|
158448
158508
|
}
|
|
158449
158509
|
else {
|
|
158450
|
-
const cesiumAsset = this._rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.CesiumIonAsset ?
|
|
158510
|
+
const cesiumAsset = this._rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.CesiumIonAsset ? _internal__WEBPACK_IMPORTED_MODULE_8__.CesiumIonAssetProvider.parseCesiumUrl(this._rdSourceKey.id) : undefined;
|
|
158451
158511
|
strings.push(cesiumAsset ? `Cesium Asset: ${cesiumAsset.id}` : this._rdSourceKey.id);
|
|
158452
158512
|
}
|
|
158453
158513
|
if (batch !== undefined)
|
|
@@ -158461,7 +158521,7 @@ class RealityTreeReference extends RealityModelTileTree.Reference {
|
|
|
158461
158521
|
addLogoCards(cards) {
|
|
158462
158522
|
if (this._rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.CesiumIonAsset && !cards.dataset.openStreetMapLogoCard) {
|
|
158463
158523
|
cards.dataset.openStreetMapLogoCard = "true";
|
|
158464
|
-
cards.appendChild(
|
|
158524
|
+
cards.appendChild(_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.makeLogoCard({ heading: "OpenStreetMap", notice: `©<a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> ${_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.localization.getLocalizedString("iModelJs:BackgroundMap:OpenStreetMapContributors")}` }));
|
|
158465
158525
|
}
|
|
158466
158526
|
}
|
|
158467
158527
|
}
|
|
@@ -163106,6 +163166,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
163106
163166
|
/* harmony export */ "ModelMapLayerTileTreeReference": () => (/* reexport safe */ _PrimaryTileTree__WEBPACK_IMPORTED_MODULE_69__.ModelMapLayerTileTreeReference),
|
|
163107
163167
|
/* harmony export */ "OPCFormatInterpreter": () => (/* reexport safe */ _OPCFormatInterpreter__WEBPACK_IMPORTED_MODULE_78__.OPCFormatInterpreter),
|
|
163108
163168
|
/* harmony export */ "OrbitGtTileTree": () => (/* reexport safe */ _OrbitGtTileTree__WEBPACK_IMPORTED_MODULE_71__.OrbitGtTileTree),
|
|
163169
|
+
/* harmony export */ "OrbitGtTreeReference": () => (/* reexport safe */ _OrbitGtTileTree__WEBPACK_IMPORTED_MODULE_71__.OrbitGtTreeReference),
|
|
163109
163170
|
/* harmony export */ "PlanarTilePatch": () => (/* reexport safe */ _map_MapTile__WEBPACK_IMPORTED_MODULE_58__.PlanarTilePatch),
|
|
163110
163171
|
/* harmony export */ "QuadId": () => (/* reexport safe */ _map_QuadId__WEBPACK_IMPORTED_MODULE_2__.QuadId),
|
|
163111
163172
|
/* harmony export */ "ReadonlyTileUserSet": () => (/* reexport safe */ _TileUserSet__WEBPACK_IMPORTED_MODULE_29__.ReadonlyTileUserSet),
|
|
@@ -286711,7 +286772,7 @@ class TestContext {
|
|
|
286711
286772
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
286712
286773
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
286713
286774
|
await core_frontend_1.NoRenderApp.startup({
|
|
286714
|
-
applicationVersion: "3.6.0-dev.
|
|
286775
|
+
applicationVersion: "3.6.0-dev.66",
|
|
286715
286776
|
applicationId: this.settings.gprid,
|
|
286716
286777
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
286717
286778
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -306140,7 +306201,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
306140
306201
|
/***/ ((module) => {
|
|
306141
306202
|
|
|
306142
306203
|
"use strict";
|
|
306143
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0-dev.
|
|
306204
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0-dev.66","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:^3.6.0-dev.66","@itwin/core-bentley":"workspace:^3.6.0-dev.66","@itwin/core-common":"workspace:^3.6.0-dev.66","@itwin/core-geometry":"workspace:^3.6.0-dev.66","@itwin/core-orbitgt":"workspace:^3.6.0-dev.66","@itwin/core-quantity":"workspace:^3.6.0-dev.66","@itwin/webgl-compatibility":"workspace:^3.6.0-dev.66"},"//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.4.0","@itwin/cloud-agnostic-core":"~1.4.0","@itwin/object-storage-core":"~1.4.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.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"}}]}}');
|
|
306144
306205
|
|
|
306145
306206
|
/***/ }),
|
|
306146
306207
|
|