@itwin/rpcinterface-full-stack-tests 4.0.0-dev.73 → 4.0.0-dev.76
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/bundled-tests.js +195 -188
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/frontend/Elements.test.js +1 -2
- package/lib/frontend/Elements.test.js.map +1 -1
- package/lib/frontend/workflows/BasicScenarios.test.js +1 -2
- package/lib/frontend/workflows/BasicScenarios.test.js.map +1 -1
- package/package.json +13 -13
|
@@ -80554,8 +80554,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
80554
80554
|
/* harmony import */ var _IModelApp__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./IModelApp */ "../../core/frontend/lib/esm/IModelApp.js");
|
|
80555
80555
|
/* harmony import */ var _PlanarClipMaskState__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PlanarClipMaskState */ "../../core/frontend/lib/esm/PlanarClipMaskState.js");
|
|
80556
80556
|
/* harmony import */ var _tile_internal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./tile/internal */ "../../core/frontend/lib/esm/tile/internal.js");
|
|
80557
|
-
/* harmony import */ var _ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ViewGlobalLocation */ "../../core/frontend/lib/esm/ViewGlobalLocation.js");
|
|
80558
|
-
/* harmony import */ var _ModelState__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ModelState */ "../../core/frontend/lib/esm/ModelState.js");
|
|
80559
80557
|
/*---------------------------------------------------------------------------------------------
|
|
80560
80558
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
80561
80559
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -80573,8 +80571,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
80573
80571
|
|
|
80574
80572
|
|
|
80575
80573
|
|
|
80576
|
-
|
|
80577
|
-
|
|
80578
80574
|
/** @internal */
|
|
80579
80575
|
class TerrainDisplayOverrides {
|
|
80580
80576
|
}
|
|
@@ -80703,10 +80699,6 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
80703
80699
|
this.settings.mapImagery.backgroundBase = base;
|
|
80704
80700
|
this._synchBackgroundMapImagery();
|
|
80705
80701
|
}
|
|
80706
|
-
/** @internal */
|
|
80707
|
-
get backgroundMapLayers() { return this.settings.mapImagery.backgroundLayers; }
|
|
80708
|
-
/** @internal */
|
|
80709
|
-
get overlayMapLayers() { return this.settings.mapImagery.overlayLayers; }
|
|
80710
80702
|
/** The settings controlling how a background map is displayed within a view.
|
|
80711
80703
|
* @see [[ViewFlags.backgroundMap]] for toggling display of the map on or off.
|
|
80712
80704
|
*/
|
|
@@ -80869,29 +80861,25 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
80869
80861
|
model.appearanceOverrides = options.appearanceOverrides;
|
|
80870
80862
|
return true;
|
|
80871
80863
|
}
|
|
80872
|
-
/**
|
|
80873
|
-
* Return if a context reality model is attached.
|
|
80864
|
+
/** Return if a context reality model is attached.
|
|
80874
80865
|
* @see [[ContextRealityModelProps]].
|
|
80875
|
-
|
|
80866
|
+
*/
|
|
80876
80867
|
hasAttachedRealityModel(name, url) {
|
|
80877
80868
|
return undefined !== this.settings.contextRealityModels.models.find((x) => x.matchesNameAndUrl(name, url));
|
|
80878
80869
|
}
|
|
80879
80870
|
/** @internal */
|
|
80880
|
-
getMapLayers(isOverlay) { return isOverlay ? this.
|
|
80881
|
-
/**
|
|
80882
|
-
* Attach a map layer to display style.
|
|
80871
|
+
getMapLayers(isOverlay) { return isOverlay ? this.settings.mapImagery.overlayLayers : this.settings.mapImagery.backgroundLayers; }
|
|
80872
|
+
/** Attach a map layer to display style.
|
|
80883
80873
|
* @param Settings representing the map layer.
|
|
80884
|
-
* @param
|
|
80885
|
-
* @param index where the layer should be inserted. Defaults to -1, appended to end.
|
|
80874
|
+
* @param mapLayerIndex the [[MapLayerIndex]] where the map layer should be attached.
|
|
80886
80875
|
* @public
|
|
80887
|
-
*
|
|
80888
80876
|
*/
|
|
80889
80877
|
attachMapLayer(options) {
|
|
80890
80878
|
const layerSettings = options.settings.clone({});
|
|
80891
80879
|
if (undefined === layerSettings)
|
|
80892
80880
|
return;
|
|
80893
|
-
const isOverlay = options.isOverlay
|
|
80894
|
-
const insertIndex = options.
|
|
80881
|
+
const isOverlay = options.mapLayerIndex.isOverlay;
|
|
80882
|
+
const insertIndex = options.mapLayerIndex.index;
|
|
80895
80883
|
const layers = this.getMapLayers(isOverlay);
|
|
80896
80884
|
if (insertIndex < 0 || insertIndex > (layers.length - 1)) {
|
|
80897
80885
|
this.getMapLayers(isOverlay).push(layerSettings);
|
|
@@ -80901,12 +80889,15 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
80901
80889
|
}
|
|
80902
80890
|
this._synchBackgroundMapImagery();
|
|
80903
80891
|
}
|
|
80904
|
-
/**
|
|
80892
|
+
/**
|
|
80893
|
+
* @param mapLayerIndex the [[MapLayerIndex]] where the map layer should be attached.
|
|
80894
|
+
* @internal
|
|
80895
|
+
*/
|
|
80905
80896
|
attachMapLayerProps(options) {
|
|
80906
80897
|
const settings = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.MapLayerSettings.fromJSON(options.props);
|
|
80907
80898
|
if (undefined === settings)
|
|
80908
80899
|
return;
|
|
80909
|
-
this.attachMapLayer({ settings,
|
|
80900
|
+
this.attachMapLayer({ settings, mapLayerIndex: options.mapLayerIndex });
|
|
80910
80901
|
}
|
|
80911
80902
|
/** @internal */
|
|
80912
80903
|
hasAttachedMapLayer(name, source, isOverlay) {
|
|
@@ -80916,13 +80907,15 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
80916
80907
|
detachMapLayerByNameAndSource(name, source, isOverlay) {
|
|
80917
80908
|
const index = this.findMapLayerIndexByNameAndSource(name, source, isOverlay);
|
|
80918
80909
|
if (-1 !== index)
|
|
80919
|
-
this.detachMapLayerByIndex(index, isOverlay);
|
|
80910
|
+
this.detachMapLayerByIndex({ index, isOverlay });
|
|
80920
80911
|
}
|
|
80921
80912
|
/** Detach map layer at index (-1 to remove all layers)
|
|
80913
|
+
* @param mapLayerIndex the [[MapLayerIndex]] of the map layer to detach.
|
|
80922
80914
|
* @public
|
|
80923
80915
|
*/
|
|
80924
|
-
detachMapLayerByIndex(
|
|
80925
|
-
const layers = this.getMapLayers(isOverlay);
|
|
80916
|
+
detachMapLayerByIndex(mapLayerIndex) {
|
|
80917
|
+
const layers = this.getMapLayers(mapLayerIndex.isOverlay);
|
|
80918
|
+
const index = mapLayerIndex.index;
|
|
80926
80919
|
if (index < 0)
|
|
80927
80920
|
layers.length = 0;
|
|
80928
80921
|
else
|
|
@@ -80940,9 +80933,13 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
80940
80933
|
findMapLayerIndexByNameAndSource(name, source, isOverlay) {
|
|
80941
80934
|
return this.getMapLayers(isOverlay).findIndex((layer) => layer.matchesNameAndSource(name, source));
|
|
80942
80935
|
}
|
|
80943
|
-
/**
|
|
80944
|
-
|
|
80945
|
-
|
|
80936
|
+
/** Return the map layer settings for a map layer at the provided index.
|
|
80937
|
+
* @param mapLayerIndex the [[MapLayerIndex]] of the map layer.
|
|
80938
|
+
* @public
|
|
80939
|
+
*/
|
|
80940
|
+
mapLayerAtIndex(mapLayerIndex) {
|
|
80941
|
+
const layers = this.getMapLayers(mapLayerIndex.isOverlay);
|
|
80942
|
+
const index = mapLayerIndex.index;
|
|
80946
80943
|
return (index < 0 || index >= layers.length) ? undefined : layers[index];
|
|
80947
80944
|
}
|
|
80948
80945
|
/** Return map base transparency as a number between 0 and 1.
|
|
@@ -80965,8 +80962,7 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
80965
80962
|
}
|
|
80966
80963
|
/** Modify a subset of a map layer settings.
|
|
80967
80964
|
* @param props props JSON representation of the properties to change. Any properties not present will retain their current values.
|
|
80968
|
-
* @param
|
|
80969
|
-
* @param isOverlay true if layer is overlay, otherwise layer is background.
|
|
80965
|
+
* @param mapLayerIndex the [[MapLayerIndex]] where the map layer should be inserted.
|
|
80970
80966
|
*
|
|
80971
80967
|
* Example that changes only the visibility of the first overlay map layer.
|
|
80972
80968
|
* ``` ts
|
|
@@ -80974,16 +80970,21 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
80974
80970
|
* ```
|
|
80975
80971
|
* @public
|
|
80976
80972
|
*/
|
|
80977
|
-
changeMapLayerProps(props,
|
|
80978
|
-
const
|
|
80973
|
+
changeMapLayerProps(props, mapLayerIndex) {
|
|
80974
|
+
const index = mapLayerIndex.index;
|
|
80975
|
+
const layers = this.getMapLayers(mapLayerIndex.isOverlay);
|
|
80979
80976
|
if (index < 0 || index >= layers.length)
|
|
80980
80977
|
return;
|
|
80981
80978
|
layers[index] = layers[index].clone(props);
|
|
80982
80979
|
this._synchBackgroundMapImagery();
|
|
80983
80980
|
}
|
|
80984
|
-
/**
|
|
80985
|
-
|
|
80986
|
-
|
|
80981
|
+
/** Change the credentials for a map layer.
|
|
80982
|
+
* @param mapLayerIndex the [[MapLayerIndex]] of the map layer to change the credentials of.
|
|
80983
|
+
* @public
|
|
80984
|
+
*/
|
|
80985
|
+
changeMapLayerCredentials(mapLayerIndex, userName, password) {
|
|
80986
|
+
const layers = this.getMapLayers(mapLayerIndex.isOverlay);
|
|
80987
|
+
const index = mapLayerIndex.index;
|
|
80987
80988
|
if (index < 0 || index >= layers.length)
|
|
80988
80989
|
return;
|
|
80989
80990
|
const layer = layers[index];
|
|
@@ -80995,13 +80996,12 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
80995
80996
|
/** Modify a subset of a sub-layer settings.
|
|
80996
80997
|
* @param props props JSON representation of the properties to change. Any properties not present will retain their current values.
|
|
80997
80998
|
* @param subLayerId Id of the sub-layer that should be modified.
|
|
80998
|
-
* @param
|
|
80999
|
-
* @param isOverlay true if the map layer is overlay, otherwise layer is background
|
|
80999
|
+
* @param mapLayerIndex the [[MapLayerIndex]] of the map layer that contains the sub-layer to be modified.
|
|
81000
81000
|
*
|
|
81001
81001
|
* @public
|
|
81002
81002
|
*/
|
|
81003
|
-
changeMapSubLayerProps(props, subLayerId,
|
|
81004
|
-
const mapLayerSettings = this.mapLayerAtIndex(
|
|
81003
|
+
changeMapSubLayerProps(props, subLayerId, mapLayerIndex) {
|
|
81004
|
+
const mapLayerSettings = this.mapLayerAtIndex(mapLayerIndex);
|
|
81005
81005
|
if (undefined === mapLayerSettings)
|
|
81006
81006
|
return;
|
|
81007
81007
|
if (!(mapLayerSettings instanceof _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ImageMapLayerSettings)) {
|
|
@@ -81012,95 +81012,43 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
81012
81012
|
for (const subLayer of mapLayerSettings.subLayers) {
|
|
81013
81013
|
subLayers.push((subLayerId === -1 || subLayer.id === subLayerId) ? subLayer.clone(props).toJSON() : subLayer.toJSON());
|
|
81014
81014
|
}
|
|
81015
|
-
this.changeMapLayerProps({ subLayers },
|
|
81016
|
-
}
|
|
81017
|
-
/** Returns the cartographic range of map layer.
|
|
81018
|
-
* @param layerIndex of the map layer.
|
|
81019
|
-
* @param isOverlay true if the map layer is overlay, otherwise layer is background
|
|
81020
|
-
*
|
|
81021
|
-
* @internal
|
|
81022
|
-
*/
|
|
81023
|
-
async getMapLayerRange(layerIndex, isOverlay) {
|
|
81024
|
-
const mapLayerSettings = this.mapLayerAtIndex(layerIndex, isOverlay);
|
|
81025
|
-
if (undefined === mapLayerSettings)
|
|
81026
|
-
return undefined;
|
|
81027
|
-
if (mapLayerSettings instanceof _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ModelMapLayerSettings) {
|
|
81028
|
-
const ecefTransform = this.iModel.ecefLocation?.getTransform();
|
|
81029
|
-
if (!ecefTransform)
|
|
81030
|
-
return undefined;
|
|
81031
|
-
const model = this.iModel.models.getLoaded(mapLayerSettings.modelId);
|
|
81032
|
-
if (!model || !(model instanceof _ModelState__WEBPACK_IMPORTED_MODULE_11__.GeometricModelState))
|
|
81033
|
-
return undefined;
|
|
81034
|
-
const modelRange = await model.queryModelRange();
|
|
81035
|
-
const cartoRange = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.CartographicRange(modelRange, ecefTransform).getLongitudeLatitudeBoundingBox();
|
|
81036
|
-
return _tile_internal__WEBPACK_IMPORTED_MODULE_9__.MapCartoRectangle.fromRadians(cartoRange.low.x, cartoRange.low.y, cartoRange.high.x, cartoRange.high.y);
|
|
81037
|
-
}
|
|
81038
|
-
if (!(mapLayerSettings instanceof _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ImageMapLayerSettings)) {
|
|
81039
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false);
|
|
81040
|
-
return undefined;
|
|
81041
|
-
}
|
|
81042
|
-
const imageryProvider = _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.mapLayerFormatRegistry.createImageryProvider(mapLayerSettings);
|
|
81043
|
-
if (undefined === imageryProvider)
|
|
81044
|
-
return undefined;
|
|
81045
|
-
try {
|
|
81046
|
-
await imageryProvider.initialize();
|
|
81047
|
-
return imageryProvider.cartoRange;
|
|
81048
|
-
}
|
|
81049
|
-
catch (_error) {
|
|
81050
|
-
return undefined;
|
|
81051
|
-
}
|
|
81052
|
-
return undefined;
|
|
81053
|
-
}
|
|
81054
|
-
/** change viewport to include range of map layer.
|
|
81055
|
-
* @internal
|
|
81056
|
-
*/
|
|
81057
|
-
async viewMapLayerRange(layerIndex, isOverlay, vp) {
|
|
81058
|
-
const range = await this.getMapLayerRange(layerIndex, isOverlay);
|
|
81059
|
-
if (!range)
|
|
81060
|
-
return false;
|
|
81061
|
-
if (range.xLength() > 1.5 * _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Angle.piRadians)
|
|
81062
|
-
(0,_ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_10__.viewGlobalLocation)(vp, true, _ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_10__.ViewGlobalLocationConstants.satelliteHeightAboveEarthInMeters, undefined, undefined);
|
|
81063
|
-
else
|
|
81064
|
-
(0,_ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_10__.viewGlobalLocation)(vp, true, undefined, undefined, range.globalLocation);
|
|
81065
|
-
return true;
|
|
81015
|
+
this.changeMapLayerProps({ subLayers }, mapLayerIndex);
|
|
81066
81016
|
}
|
|
81067
81017
|
/* @internal */
|
|
81068
81018
|
_synchBackgroundMapImagery() {
|
|
81069
81019
|
this.settings.synchMapImagery();
|
|
81070
81020
|
}
|
|
81071
|
-
/**
|
|
81072
|
-
*
|
|
81073
|
-
* @param index index of layer to move.
|
|
81074
|
-
* @param isOverlay true if layer is overlay.
|
|
81021
|
+
/** Move map layer to top.
|
|
81022
|
+
* @param mapLayerIndex the [[MapLayerIndex]] of the map layer to move.
|
|
81075
81023
|
* @public
|
|
81076
81024
|
*
|
|
81077
81025
|
*/
|
|
81078
|
-
moveMapLayerToTop(
|
|
81079
|
-
const layers = this.getMapLayers(isOverlay);
|
|
81026
|
+
moveMapLayerToTop(mapLayerIndex) {
|
|
81027
|
+
const layers = this.getMapLayers(mapLayerIndex.isOverlay);
|
|
81028
|
+
const index = mapLayerIndex.index;
|
|
81080
81029
|
if (index >= 0 && index < layers.length - 1) {
|
|
81081
81030
|
const layer = layers.splice(index, 1);
|
|
81082
81031
|
layers.push(layer[0]);
|
|
81083
81032
|
this._synchBackgroundMapImagery();
|
|
81084
81033
|
}
|
|
81085
81034
|
}
|
|
81086
|
-
/**
|
|
81087
|
-
*
|
|
81088
|
-
* @param index index of layer to move.
|
|
81089
|
-
* @param isOverlay true if layer is overlay.
|
|
81035
|
+
/** Move map layer to bottom.
|
|
81036
|
+
* @param mapLayerIndex the [[MapLayerIndex]] of the map layer to move.
|
|
81090
81037
|
* @public
|
|
81091
81038
|
*/
|
|
81092
|
-
moveMapLayerToBottom(
|
|
81093
|
-
const layers = this.getMapLayers(isOverlay);
|
|
81039
|
+
moveMapLayerToBottom(mapLayerIndex) {
|
|
81040
|
+
const layers = this.getMapLayers(mapLayerIndex.isOverlay);
|
|
81041
|
+
const index = mapLayerIndex.index;
|
|
81094
81042
|
if (index > 0 && index < layers.length) {
|
|
81095
81043
|
const layer = layers.splice(index, 1);
|
|
81096
81044
|
layers.unshift(layer[0]);
|
|
81097
81045
|
this._synchBackgroundMapImagery();
|
|
81098
81046
|
}
|
|
81099
81047
|
}
|
|
81100
|
-
/**
|
|
81101
|
-
* Reorder map layers
|
|
81048
|
+
/** Reorder map layers
|
|
81102
81049
|
* @param fromIndex index of map layer to move
|
|
81103
81050
|
* @param toIndex insert index. If equal to length of map array the map layer is moved to end of array.
|
|
81051
|
+
* @param isOverlay true if map-layer is part of the overlay map, otherwise it is part of the background map.
|
|
81104
81052
|
* @public
|
|
81105
81053
|
*/
|
|
81106
81054
|
moveMapLayerToIndex(fromIndex, toIndex, isOverlay) {
|
|
@@ -81694,8 +81642,7 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
|
|
|
81694
81642
|
CAST(json_extract(jsonProperties, '$.displaySpatialView') as BOOLEAN) as displaySpatialView
|
|
81695
81643
|
FROM bis.SectionDrawing
|
|
81696
81644
|
WHERE ECInstanceId=${this.baseModelId}`;
|
|
81697
|
-
|
|
81698
|
-
for await (const row of this.iModel.query(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
81645
|
+
for await (const row of this.iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
81699
81646
|
spatialView = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.fromJSON(row.spatialView?.id);
|
|
81700
81647
|
displaySpatialView = !!row.displaySpatialView;
|
|
81701
81648
|
try {
|
|
@@ -84930,9 +84877,7 @@ __webpack_require__(/*! ./IModeljs-css */ "../../core/frontend/lib/esm/IModeljs-
|
|
|
84930
84877
|
class IModelApp {
|
|
84931
84878
|
// No instances of IModelApp may be created. All members are static and must be on the singleton object IModelApp.
|
|
84932
84879
|
constructor() { }
|
|
84933
|
-
/** The [[
|
|
84934
|
-
* @internal
|
|
84935
|
-
*/
|
|
84880
|
+
/** The [[MapLayerFormatRegistry]] for this session. */
|
|
84936
84881
|
static get mapLayerFormatRegistry() { return this._mapLayerFormatRegistry; }
|
|
84937
84882
|
/** The [[TerrainProviderRegistry]] for this session. */
|
|
84938
84883
|
static get terrainProviderRegistry() { return this._terrainProviderRegistry; }
|
|
@@ -85641,8 +85586,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
85641
85586
|
* @deprecated in 3.7. Count the number of results using `count(*)` where the original query is a subquery instead. E.g., `SELECT count(*) FROM (<query-whose-rows-to-count>)`.
|
|
85642
85587
|
*/
|
|
85643
85588
|
async queryRowCount(ecsql, params) {
|
|
85644
|
-
|
|
85645
|
-
for await (const row of this.query(`select count(*) from (${ecsql})`, params)) {
|
|
85589
|
+
for await (const row of this.createQueryReader(`select count(*) from (${ecsql})`, params)) {
|
|
85646
85590
|
return row[0];
|
|
85647
85591
|
}
|
|
85648
85592
|
throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelError(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.DbResult.BE_SQLITE_ERROR, "Failed to get row count");
|
|
@@ -85666,8 +85610,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
85666
85610
|
* @deprecated in 3.7. Use [[createQueryReader]] instead. Pass in the restart token as part of the `config` argument; e.g., `{ restartToken: myToken }` or `new QueryOptionsBuilder().setRestartToken(myToken).getOptions()`.
|
|
85667
85611
|
*/
|
|
85668
85612
|
async *restartQuery(token, ecsql, params, options) {
|
|
85669
|
-
|
|
85670
|
-
for await (const row of this.query(ecsql, params, new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryOptionsBuilder(options).setRestartToken(token).getOptions())) {
|
|
85613
|
+
for await (const row of this.createQueryReader(ecsql, params, new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryOptionsBuilder(options).setRestartToken(token).getOptions())) {
|
|
85671
85614
|
yield row;
|
|
85672
85615
|
}
|
|
85673
85616
|
}
|
|
@@ -86210,8 +86153,8 @@ class SnapshotConnection extends IModelConnection {
|
|
|
86210
86153
|
break;
|
|
86211
86154
|
}
|
|
86212
86155
|
const placements = new Array();
|
|
86213
|
-
|
|
86214
|
-
|
|
86156
|
+
for await (const queryRow of this._iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
86157
|
+
const row = queryRow.toRow();
|
|
86215
86158
|
const origin = [row.x, row.y, row.z];
|
|
86216
86159
|
const bbox = {
|
|
86217
86160
|
low: { x: row.lx, y: row.ly, z: row.lz },
|
|
@@ -90609,8 +90552,7 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewState2
|
|
|
90609
90552
|
async queryAttachmentIds() {
|
|
90610
90553
|
const ecsql = `SELECT ECInstanceId as attachmentId FROM bis.ViewAttachment WHERE model.Id=${this.baseModelId}`;
|
|
90611
90554
|
const ids = [];
|
|
90612
|
-
|
|
90613
|
-
for await (const row of this.iModel.query(ecsql))
|
|
90555
|
+
for await (const row of this.iModel.createQueryReader(ecsql))
|
|
90614
90556
|
ids.push(row[0]);
|
|
90615
90557
|
return ids;
|
|
90616
90558
|
}
|
|
@@ -92876,8 +92818,7 @@ class ViewCreator2d {
|
|
|
92876
92818
|
*/
|
|
92877
92819
|
this._executeQuery = async (query) => {
|
|
92878
92820
|
const rows = [];
|
|
92879
|
-
|
|
92880
|
-
for await (const row of this._imodel.query(query, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames }))
|
|
92821
|
+
for await (const row of this._imodel.createQueryReader(query, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames }))
|
|
92881
92822
|
rows.push(row.id);
|
|
92882
92823
|
return rows;
|
|
92883
92824
|
};
|
|
@@ -92965,8 +92906,7 @@ class ViewCreator2d {
|
|
|
92965
92906
|
async _addSheetViewProps(modelId, props) {
|
|
92966
92907
|
let width = 0;
|
|
92967
92908
|
let height = 0;
|
|
92968
|
-
|
|
92969
|
-
for await (const row of this._imodel.query(`SELECT Width, Height FROM bis.Sheet WHERE ECInstanceId = ?`, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryBinder.from([modelId]), { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
92909
|
+
for await (const row of this._imodel.createQueryReader(`SELECT Width, Height FROM bis.Sheet WHERE ECInstanceId = ?`, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryBinder.from([modelId]), { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
92970
92910
|
width = row.width;
|
|
92971
92911
|
height = row.height;
|
|
92972
92912
|
break;
|
|
@@ -93094,8 +93034,7 @@ class ViewCreator3d {
|
|
|
93094
93034
|
*/
|
|
93095
93035
|
this._executeQuery = async (query) => {
|
|
93096
93036
|
const rows = [];
|
|
93097
|
-
|
|
93098
|
-
for await (const row of this._imodel.query(query, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames }))
|
|
93037
|
+
for await (const row of this._imodel.createQueryReader(query, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames }))
|
|
93099
93038
|
rows.push(row.id);
|
|
93100
93039
|
return rows;
|
|
93101
93040
|
};
|
|
@@ -96588,11 +96527,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
96588
96527
|
/* harmony import */ var _tools_EventController__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./tools/EventController */ "../../core/frontend/lib/esm/tools/EventController.js");
|
|
96589
96528
|
/* harmony import */ var _tools_ToolSettings__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./tools/ToolSettings */ "../../core/frontend/lib/esm/tools/ToolSettings.js");
|
|
96590
96529
|
/* harmony import */ var _ViewContext__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ViewContext */ "../../core/frontend/lib/esm/ViewContext.js");
|
|
96591
|
-
/* harmony import */ var
|
|
96592
|
-
/* harmony import */ var
|
|
96593
|
-
/* harmony import */ var
|
|
96594
|
-
/* harmony import */ var
|
|
96595
|
-
/* harmony import */ var
|
|
96530
|
+
/* harmony import */ var _ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./ViewGlobalLocation */ "../../core/frontend/lib/esm/ViewGlobalLocation.js");
|
|
96531
|
+
/* harmony import */ var _ViewingSpace__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./ViewingSpace */ "../../core/frontend/lib/esm/ViewingSpace.js");
|
|
96532
|
+
/* harmony import */ var _ViewRect__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./ViewRect */ "../../core/frontend/lib/esm/ViewRect.js");
|
|
96533
|
+
/* harmony import */ var _ViewStatus__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./ViewStatus */ "../../core/frontend/lib/esm/ViewStatus.js");
|
|
96534
|
+
/* harmony import */ var _render_VisibleFeature__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./render/VisibleFeature */ "../../core/frontend/lib/esm/render/VisibleFeature.js");
|
|
96535
|
+
/* harmony import */ var _FlashSettings__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./FlashSettings */ "../../core/frontend/lib/esm/FlashSettings.js");
|
|
96536
|
+
/* harmony import */ var _ModelState__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./ModelState */ "../../core/frontend/lib/esm/ModelState.js");
|
|
96596
96537
|
/*---------------------------------------------------------------------------------------------
|
|
96597
96538
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
96598
96539
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -96628,6 +96569,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
96628
96569
|
|
|
96629
96570
|
|
|
96630
96571
|
|
|
96572
|
+
|
|
96573
|
+
|
|
96631
96574
|
|
|
96632
96575
|
|
|
96633
96576
|
|
|
@@ -97047,34 +96990,80 @@ class Viewport {
|
|
|
97047
96990
|
get overlayMap() { return this._mapTiledGraphicsProvider?.overlayMap; }
|
|
97048
96991
|
/** @internal */
|
|
97049
96992
|
get backgroundDrapeMap() { return this._mapTiledGraphicsProvider?.backgroundDrapeMap; }
|
|
97050
|
-
/**
|
|
97051
|
-
|
|
96993
|
+
/** Return the imagery provider for the provided map-layer index.
|
|
96994
|
+
* @param mapLayerIndex the [[MapLayerIndex]] of the map layer.
|
|
96995
|
+
* @beta
|
|
96996
|
+
*/
|
|
96997
|
+
getMapLayerImageryProvider(mapLayerIndex) { return this._mapTiledGraphicsProvider?.getMapLayerImageryProvider(mapLayerIndex); }
|
|
97052
96998
|
/** Return the map-layer scale range visibility for the provided map-layer index.
|
|
97053
|
-
* @param
|
|
97054
|
-
* @param isOverlay true if the map layer is overlay, otherwise layer is background
|
|
96999
|
+
* @param mapLayerIndex the [[MapLayerIndex]] of the map layer.
|
|
97055
97000
|
* @see [[DisplayStyleState.mapLayerAtIndex]].
|
|
97056
97001
|
* @beta
|
|
97057
|
-
|
|
97058
|
-
getMapLayerScaleRangeVisibility(
|
|
97059
|
-
const treeRef = (isOverlay ? this._mapTiledGraphicsProvider?.overlayMap : this._mapTiledGraphicsProvider?.backgroundMap);
|
|
97002
|
+
*/
|
|
97003
|
+
getMapLayerScaleRangeVisibility(mapLayerIndex) {
|
|
97004
|
+
const treeRef = (mapLayerIndex.isOverlay ? this._mapTiledGraphicsProvider?.overlayMap : this._mapTiledGraphicsProvider?.backgroundMap);
|
|
97060
97005
|
if (treeRef) {
|
|
97061
|
-
return treeRef.getMapLayerScaleRangeVisibility(index);
|
|
97006
|
+
return treeRef.getMapLayerScaleRangeVisibility(mapLayerIndex.index);
|
|
97062
97007
|
}
|
|
97063
97008
|
return _tile_internal__WEBPACK_IMPORTED_MODULE_22__.MapTileTreeScaleRangeVisibility.Unknown;
|
|
97064
97009
|
}
|
|
97065
97010
|
/** Return a list of map-layers indexes matching a given MapTile tree Id and a layer imagery tree id.
|
|
97066
97011
|
* Note: A imagery tree can be shared for multiple map-layers.
|
|
97067
97012
|
* @internal
|
|
97068
|
-
|
|
97013
|
+
*/
|
|
97069
97014
|
getMapLayerIndexesFromIds(mapTreeId, layerTreeId) {
|
|
97070
97015
|
if (this._mapTiledGraphicsProvider)
|
|
97071
97016
|
return this._mapTiledGraphicsProvider?.getMapLayerIndexesFromIds(mapTreeId, layerTreeId);
|
|
97072
97017
|
return [];
|
|
97073
97018
|
}
|
|
97074
|
-
/**
|
|
97075
|
-
*
|
|
97019
|
+
/** Returns the cartographic range of a map layer.
|
|
97020
|
+
* @param mapLayerIndex the [[MapLayerIndex]] of the map layer.
|
|
97021
|
+
*/
|
|
97022
|
+
async getMapLayerRange(mapLayerIndex) {
|
|
97023
|
+
const mapLayerSettings = this.view.displayStyle.mapLayerAtIndex(mapLayerIndex);
|
|
97024
|
+
if (undefined === mapLayerSettings)
|
|
97025
|
+
return undefined;
|
|
97026
|
+
if (mapLayerSettings instanceof _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ModelMapLayerSettings) {
|
|
97027
|
+
const ecefTransform = this.iModel.ecefLocation?.getTransform();
|
|
97028
|
+
if (!ecefTransform)
|
|
97029
|
+
return undefined;
|
|
97030
|
+
const model = this.iModel.models.getLoaded(mapLayerSettings.modelId);
|
|
97031
|
+
if (!model || !(model instanceof _ModelState__WEBPACK_IMPORTED_MODULE_32__.GeometricModelState))
|
|
97032
|
+
return undefined;
|
|
97033
|
+
const modelRange = await model.queryModelRange();
|
|
97034
|
+
const cartoRange = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.CartographicRange(modelRange, ecefTransform).getLongitudeLatitudeBoundingBox();
|
|
97035
|
+
return _tile_internal__WEBPACK_IMPORTED_MODULE_22__.MapCartoRectangle.fromRadians(cartoRange.low.x, cartoRange.low.y, cartoRange.high.x, cartoRange.high.y);
|
|
97036
|
+
}
|
|
97037
|
+
const imageryProvider = this.getMapLayerImageryProvider(mapLayerIndex);
|
|
97038
|
+
if (undefined === imageryProvider)
|
|
97039
|
+
return undefined;
|
|
97040
|
+
const tileTreeRef = mapLayerIndex.isOverlay ? this.overlayMap : this.backgroundMap;
|
|
97041
|
+
const imageryTreeRef = tileTreeRef?.getLayerImageryTreeRef(mapLayerIndex.index);
|
|
97042
|
+
if (imageryTreeRef?.treeOwner.loadStatus === _tile_internal__WEBPACK_IMPORTED_MODULE_22__.TileTreeLoadStatus.Loaded) {
|
|
97043
|
+
return imageryProvider.cartoRange;
|
|
97044
|
+
}
|
|
97045
|
+
else {
|
|
97046
|
+
return undefined;
|
|
97047
|
+
}
|
|
97048
|
+
}
|
|
97049
|
+
/** Changes viewport to include range of a map layer.
|
|
97050
|
+
* @param mapLayerIndex the [[MapLayerIndex]] of the map layer.
|
|
97051
|
+
* @param vp the viewport.
|
|
97076
97052
|
*/
|
|
97077
|
-
|
|
97053
|
+
async viewMapLayerRange(mapLayerIndex, vp) {
|
|
97054
|
+
const range = await this.getMapLayerRange(mapLayerIndex);
|
|
97055
|
+
if (!range)
|
|
97056
|
+
return false;
|
|
97057
|
+
if (range.xLength() > 1.5 * _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Angle.piRadians)
|
|
97058
|
+
(0,_ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_26__.viewGlobalLocation)(vp, true, _ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_26__.ViewGlobalLocationConstants.satelliteHeightAboveEarthInMeters, undefined, undefined);
|
|
97059
|
+
else
|
|
97060
|
+
(0,_ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_26__.viewGlobalLocation)(vp, true, undefined, undefined, range.globalLocation);
|
|
97061
|
+
return true;
|
|
97062
|
+
}
|
|
97063
|
+
/** Fully reset a map-layer tile tree; by calling this, the map-layer will to go through initialize process again, and all previously fetched tile will be lost.
|
|
97064
|
+
* @beta
|
|
97065
|
+
*/
|
|
97066
|
+
resetMapLayer(mapLayerIndex) { this._mapTiledGraphicsProvider?.resetMapLayer(mapLayerIndex); }
|
|
97078
97067
|
/** Returns true if this Viewport is currently displaying the model with the specified Id. */
|
|
97079
97068
|
viewsModel(modelId) { return this.view.viewsModel(modelId); }
|
|
97080
97069
|
/** Attempt to change the 2d Model this Viewport is displaying, if its ViewState is a ViewState2d.
|
|
@@ -97324,9 +97313,9 @@ class Viewport {
|
|
|
97324
97313
|
this._tiledGraphicsProviders = new Set();
|
|
97325
97314
|
this._hilite = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Hilite.Settings();
|
|
97326
97315
|
this._emphasis = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Hilite.Settings(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorDef.black, 0, 0, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Hilite.Silhouette.Thick);
|
|
97327
|
-
this._flash = new
|
|
97316
|
+
this._flash = new _FlashSettings__WEBPACK_IMPORTED_MODULE_31__.FlashSettings();
|
|
97328
97317
|
/** @internal */
|
|
97329
|
-
this._viewRange = new
|
|
97318
|
+
this._viewRange = new _ViewRect__WEBPACK_IMPORTED_MODULE_28__.ViewRect();
|
|
97330
97319
|
/** If this event has one or more listeners, collection of timing statistics related to rendering frames is enabled. Frame statistics will be received by the listeners whenever a frame is finished rendering.
|
|
97331
97320
|
* @note The timing data collected using this event only collects the amount of time spent on the CPU. Due to performance considerations, time spent on the GPU is not collected. Therefore, these statistics are not a direct mapping to user experience.
|
|
97332
97321
|
* @note In order to avoid interfering with the rendering loop, take care to avoid performing any intensive tasks in your event listeners.
|
|
@@ -97953,7 +97942,7 @@ class Viewport {
|
|
|
97953
97942
|
turnCameraOn(lensAngle) {
|
|
97954
97943
|
const view = this.view;
|
|
97955
97944
|
if (!view.is3d() || !view.supportsCamera())
|
|
97956
|
-
return
|
|
97945
|
+
return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.InvalidViewport;
|
|
97957
97946
|
if (!lensAngle)
|
|
97958
97947
|
lensAngle = view.camera.lens;
|
|
97959
97948
|
_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Camera.validateLensAngle(lensAngle);
|
|
@@ -97981,7 +97970,7 @@ class Viewport {
|
|
|
97981
97970
|
const frontDistance = view.minimumFrontDistance();
|
|
97982
97971
|
status = view.lookAt({ eyePoint, targetPoint, upVector: view.getYVector(), lensAngle, frontDistance, backDistance });
|
|
97983
97972
|
}
|
|
97984
|
-
if (
|
|
97973
|
+
if (_ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success === status)
|
|
97985
97974
|
this.setupFromView();
|
|
97986
97975
|
return status;
|
|
97987
97976
|
}
|
|
@@ -97992,20 +97981,20 @@ class Viewport {
|
|
|
97992
97981
|
}
|
|
97993
97982
|
doSetupFromView(view) {
|
|
97994
97983
|
if (this._inViewChangedEvent)
|
|
97995
|
-
return
|
|
97984
|
+
return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success; // ignore echos
|
|
97996
97985
|
if (!this.isAspectRatioLocked)
|
|
97997
97986
|
view.fixAspectRatio(this.viewRect.aspect);
|
|
97998
97987
|
this.setView(view);
|
|
97999
|
-
const viewSpace =
|
|
97988
|
+
const viewSpace = _ViewingSpace__WEBPACK_IMPORTED_MODULE_27__.ViewingSpace.createFromViewport(this);
|
|
98000
97989
|
if (undefined === viewSpace)
|
|
98001
|
-
return
|
|
97990
|
+
return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.InvalidViewport;
|
|
98002
97991
|
this._viewingSpace = viewSpace;
|
|
98003
97992
|
this.invalidateRenderPlan();
|
|
98004
97993
|
this._controllerValid = true;
|
|
98005
97994
|
this._inViewChangedEvent = true;
|
|
98006
97995
|
this.onViewChanged.raiseEvent(this);
|
|
98007
97996
|
this._inViewChangedEvent = false;
|
|
98008
|
-
return
|
|
97997
|
+
return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success;
|
|
98009
97998
|
}
|
|
98010
97999
|
/** Establish the parameters of this Viewport from the current information in its ViewState */
|
|
98011
98000
|
setupFromView(pose) {
|
|
@@ -98125,7 +98114,7 @@ class Viewport {
|
|
|
98125
98114
|
zoom(newCenter, factor, options) {
|
|
98126
98115
|
const view = this.view;
|
|
98127
98116
|
if (undefined === view)
|
|
98128
|
-
return
|
|
98117
|
+
return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.InvalidViewport;
|
|
98129
98118
|
if (view.is3d() && view.isCameraOn) {
|
|
98130
98119
|
const eyePoint = view.getEyePoint().clone();
|
|
98131
98120
|
const targetPoint = view.getTargetPoint();
|
|
@@ -98139,7 +98128,7 @@ class Viewport {
|
|
|
98139
98128
|
transform.multiplyPoint3d(eyePoint, eyePoint);
|
|
98140
98129
|
targetPoint.setFrom(eyePoint.plusScaled(zDir, zDir.dotProduct(eyePoint.vectorTo(targetPoint))));
|
|
98141
98130
|
const status = view.lookAt({ eyePoint, targetPoint, upVector: view.getYVector(), lensAngle: view.camera.lens });
|
|
98142
|
-
if (
|
|
98131
|
+
if (_ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success !== status)
|
|
98143
98132
|
return status;
|
|
98144
98133
|
}
|
|
98145
98134
|
else {
|
|
@@ -98150,7 +98139,7 @@ class Viewport {
|
|
|
98150
98139
|
const center = rot.multiplyVector(newCenter ? newCenter : view.getCenter());
|
|
98151
98140
|
// fix for min/max delta
|
|
98152
98141
|
const stat = view.adjustViewDelta(delta, center, rot, this.viewRect.aspect, options);
|
|
98153
|
-
if (
|
|
98142
|
+
if (_ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success !== stat)
|
|
98154
98143
|
return stat;
|
|
98155
98144
|
if (!view.allow3dManipulations())
|
|
98156
98145
|
center.z = 0.0;
|
|
@@ -98158,7 +98147,7 @@ class Viewport {
|
|
|
98158
98147
|
view.setExtents(delta);
|
|
98159
98148
|
}
|
|
98160
98149
|
this.synchWithView(options);
|
|
98161
|
-
return
|
|
98150
|
+
return _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success;
|
|
98162
98151
|
}
|
|
98163
98152
|
/** See [[zoomToPlacements]]. */
|
|
98164
98153
|
zoomToPlacementProps(placementProps, options) {
|
|
@@ -98197,7 +98186,7 @@ class Viewport {
|
|
|
98197
98186
|
viewRange.extendArray(placement.getWorldCorners(frust).points, viewTransform);
|
|
98198
98187
|
const ignoreError = {
|
|
98199
98188
|
...options,
|
|
98200
|
-
onExtentsError: () =>
|
|
98189
|
+
onExtentsError: () => _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success,
|
|
98201
98190
|
};
|
|
98202
98191
|
view.lookAtViewAlignedVolume(viewRange, this.viewRect.aspect, ignoreError);
|
|
98203
98192
|
this.synchWithView(options);
|
|
@@ -98241,7 +98230,7 @@ class Viewport {
|
|
|
98241
98230
|
setupViewFromFrustum(inFrustum) {
|
|
98242
98231
|
const validSize = this.view.setupFromFrustum(inFrustum);
|
|
98243
98232
|
// note: always call setupFromView, even if setupFromFrustum failed
|
|
98244
|
-
return (
|
|
98233
|
+
return (_ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success === this.setupFromView() && _ViewStatus__WEBPACK_IMPORTED_MODULE_29__.ViewStatus.Success === validSize);
|
|
98245
98234
|
}
|
|
98246
98235
|
/** Compute the range of all geometry to be displayed in this viewport. */
|
|
98247
98236
|
computeViewRange() {
|
|
@@ -98602,7 +98591,7 @@ class Viewport {
|
|
|
98602
98591
|
* @note By default the image is returned with the coordinate (0,0) referring to the bottom-most pixel. Pass `true` for `flipVertically` to flip it along the x-axis.
|
|
98603
98592
|
* @deprecated in 3.x. Use readImageBuffer.
|
|
98604
98593
|
*/
|
|
98605
|
-
readImage(rect = new
|
|
98594
|
+
readImage(rect = new _ViewRect__WEBPACK_IMPORTED_MODULE_28__.ViewRect(1, 1, 0, 0), targetSize = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d.createZero(), flipVertically = false) {
|
|
98606
98595
|
// eslint-disable-next-line deprecation/deprecation
|
|
98607
98596
|
return this.target.readImage(rect, targetSize, flipVertically);
|
|
98608
98597
|
}
|
|
@@ -98716,7 +98705,7 @@ class Viewport {
|
|
|
98716
98705
|
* @note This function may be slow, especially if the features are being queried from screen pixels. Avoid calling it repeatedly in rapid succession.
|
|
98717
98706
|
*/
|
|
98718
98707
|
queryVisibleFeatures(options, callback) {
|
|
98719
|
-
return (0,
|
|
98708
|
+
return (0,_render_VisibleFeature__WEBPACK_IMPORTED_MODULE_30__.queryVisibleFeatures)(this, options, callback);
|
|
98720
98709
|
}
|
|
98721
98710
|
/** Record graphics memory consumed by this viewport. */
|
|
98722
98711
|
collectStatistics(stats) {
|
|
@@ -152789,14 +152778,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
152789
152778
|
|
|
152790
152779
|
|
|
152791
152780
|
const loggerCategory = "ArcGISFeatureProvider";
|
|
152792
|
-
/** @beta */
|
|
152793
152781
|
/** Class representing a map-layer format.
|
|
152794
152782
|
* Each format has it's unique 'formatId' string, used to uniquely identify a format in the [[MapLayerFormatRegistry]].
|
|
152795
152783
|
* When creating an [[ImageMapLayerSettings]] object, a format needs to be specified this 'formatId'.
|
|
152796
152784
|
* The MapLayerFormat object can later be used to validate a source, or create a provider.
|
|
152797
152785
|
*
|
|
152798
|
-
* Subclasses should override formatId and [[MapLayerFormat.createImageryProvider]].
|
|
152799
|
-
* @
|
|
152786
|
+
* Subclasses should override formatId and [[MapLayerFormat.createImageryProvider]].
|
|
152787
|
+
* @public
|
|
152800
152788
|
*/
|
|
152801
152789
|
class MapLayerFormat {
|
|
152802
152790
|
/** Register the current format in the [[MapLayerFormatRegistry]].
|
|
@@ -152815,7 +152803,9 @@ class MapLayerFormat {
|
|
|
152815
152803
|
return undefined;
|
|
152816
152804
|
}
|
|
152817
152805
|
}
|
|
152818
|
-
/**
|
|
152806
|
+
/** A registry of MapLayerFormats identified by their unique format IDs. The registry can be accessed via [[IModelApp.mapLayerFormatRegistry]].
|
|
152807
|
+
* @public
|
|
152808
|
+
*/
|
|
152819
152809
|
class MapLayerFormatRegistry {
|
|
152820
152810
|
constructor(opts) {
|
|
152821
152811
|
this._formats = new Map();
|
|
@@ -152823,11 +152813,12 @@ class MapLayerFormatRegistry {
|
|
|
152823
152813
|
_internal__WEBPACK_IMPORTED_MODULE_2__.internalMapLayerImageryFormats.forEach((format) => this.register(format));
|
|
152824
152814
|
}
|
|
152825
152815
|
isRegistered(formatId) { return this._formats.get(formatId) !== undefined; }
|
|
152826
|
-
register(formatClass
|
|
152816
|
+
register(formatClass) {
|
|
152827
152817
|
if (formatClass.formatId.length === 0)
|
|
152828
152818
|
return; // must be an abstract class, ignore it
|
|
152829
|
-
this._formats.set(formatClass.formatId, { type: formatClass
|
|
152819
|
+
this._formats.set(formatClass.formatId, { type: formatClass });
|
|
152830
152820
|
}
|
|
152821
|
+
/** @beta */
|
|
152831
152822
|
setAccessClient(formatId, accessClient) {
|
|
152832
152823
|
const entry = this._formats.get(formatId);
|
|
152833
152824
|
if (entry !== undefined) {
|
|
@@ -152836,6 +152827,7 @@ class MapLayerFormatRegistry {
|
|
|
152836
152827
|
}
|
|
152837
152828
|
return false;
|
|
152838
152829
|
}
|
|
152830
|
+
/** @beta */
|
|
152839
152831
|
getAccessClient(formatId) {
|
|
152840
152832
|
if (formatId.length === 0)
|
|
152841
152833
|
return undefined;
|
|
@@ -152854,7 +152846,9 @@ class MapLayerFormatRegistry {
|
|
|
152854
152846
|
}
|
|
152855
152847
|
return format.createMapLayerTree(layerSettings, layerIndex, iModel);
|
|
152856
152848
|
}
|
|
152857
|
-
/**
|
|
152849
|
+
/** Returns a [[MapLayerImageryProvider]] based on the provided [[ImageMapLayerSettings]] object.
|
|
152850
|
+
* @internal
|
|
152851
|
+
*/
|
|
152858
152852
|
createImageryProvider(layerSettings) {
|
|
152859
152853
|
const entry = this._formats.get(layerSettings.formatId);
|
|
152860
152854
|
const format = entry?.type;
|
|
@@ -153084,26 +153078,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
153084
153078
|
const tileImageSize = 256, untiledImageSize = 256;
|
|
153085
153079
|
const earthRadius = 6378137;
|
|
153086
153080
|
const doDebugToolTips = false;
|
|
153087
|
-
/**
|
|
153081
|
+
/** The status of the map layer imagery provider that lets you know if authentication is needed to request tiles.
|
|
153082
|
+
* @public
|
|
153083
|
+
*/
|
|
153088
153084
|
var MapLayerImageryProviderStatus;
|
|
153089
153085
|
(function (MapLayerImageryProviderStatus) {
|
|
153090
153086
|
MapLayerImageryProviderStatus[MapLayerImageryProviderStatus["Valid"] = 0] = "Valid";
|
|
153091
153087
|
MapLayerImageryProviderStatus[MapLayerImageryProviderStatus["RequireAuth"] = 1] = "RequireAuth";
|
|
153092
153088
|
})(MapLayerImageryProviderStatus || (MapLayerImageryProviderStatus = {}));
|
|
153093
|
-
/**
|
|
153094
|
-
*
|
|
153089
|
+
/** Abstract class for map layer imagery providers.
|
|
153090
|
+
* Map layer imagery providers request and provide tile images and other data. Each map layer from a separate source needs its own imagery provider object.
|
|
153091
|
+
* @beta
|
|
153095
153092
|
*/
|
|
153096
153093
|
class MapLayerImageryProvider {
|
|
153094
|
+
/** @internal */
|
|
153097
153095
|
get status() { return this._status; }
|
|
153098
153096
|
resetStatus() { this.setStatus(MapLayerImageryProviderStatus.Valid); }
|
|
153097
|
+
/** @internal */
|
|
153099
153098
|
get tileSize() { return this._usesCachedTiles ? tileImageSize : untiledImageSize; }
|
|
153099
|
+
/** @internal */
|
|
153100
153100
|
get maximumScreenSize() { return 2 * this.tileSize; }
|
|
153101
153101
|
get minimumZoomLevel() { return this.defaultMinimumZoomLevel; }
|
|
153102
153102
|
get maximumZoomLevel() { return this.defaultMaximumZoomLevel; }
|
|
153103
|
+
/** @internal */
|
|
153103
153104
|
get usesCachedTiles() { return this._usesCachedTiles; }
|
|
153104
153105
|
get mutualExclusiveSubLayer() { return false; }
|
|
153106
|
+
/** @internal */
|
|
153105
153107
|
get useGeographicTilingScheme() { return false; }
|
|
153106
|
-
get hasSuccessfullyFetchedTile() { return this._hasSuccessfullyFetchedTile; }
|
|
153107
153108
|
/** @internal */
|
|
153108
153109
|
get _filterByCartoRange() { return true; }
|
|
153109
153110
|
constructor(_settings, _usesCachedTiles) {
|
|
@@ -153125,6 +153126,7 @@ class MapLayerImageryProvider {
|
|
|
153125
153126
|
this._mercatorTilingScheme = new _internal__WEBPACK_IMPORTED_MODULE_5__.WebMercatorTilingScheme();
|
|
153126
153127
|
this._geographicTilingScheme = new _internal__WEBPACK_IMPORTED_MODULE_5__.GeographicTilingScheme(2, 1, true);
|
|
153127
153128
|
}
|
|
153129
|
+
/** @internal */
|
|
153128
153130
|
async initialize() {
|
|
153129
153131
|
this.loadTile(0, 0, this.defaultMaximumZoomLevel).then((tileData) => {
|
|
153130
153132
|
if (tileData !== undefined)
|
|
@@ -153134,15 +153136,20 @@ class MapLayerImageryProvider {
|
|
|
153134
153136
|
get tilingScheme() { return this.useGeographicTilingScheme ? this._geographicTilingScheme : this._mercatorTilingScheme; }
|
|
153135
153137
|
/** @internal */
|
|
153136
153138
|
addLogoCards(_cards, _viewport) { }
|
|
153139
|
+
/** @internal */
|
|
153137
153140
|
get transparentBackgroundString() { return this._settings.transparentBackground ? "true" : "false"; }
|
|
153141
|
+
/** @internal */
|
|
153138
153142
|
async _areChildrenAvailable(_tile) { return true; }
|
|
153143
|
+
/** @internal */
|
|
153139
153144
|
getPotentialChildIds(tile) {
|
|
153140
153145
|
const childLevel = tile.quadId.level + 1;
|
|
153141
153146
|
return tile.quadId.getChildIds(this.tilingScheme.getNumberOfXChildrenAtLevel(childLevel), this.tilingScheme.getNumberOfYChildrenAtLevel(childLevel));
|
|
153142
153147
|
}
|
|
153148
|
+
/** @internal */
|
|
153143
153149
|
_generateChildIds(tile, resolveChildren) {
|
|
153144
153150
|
resolveChildren(this.getPotentialChildIds(tile));
|
|
153145
153151
|
}
|
|
153152
|
+
/** @internal */
|
|
153146
153153
|
generateChildIds(tile, resolveChildren) {
|
|
153147
153154
|
if (tile.depth >= this.maximumZoomLevel || (undefined !== this.cartoRange && this._filterByCartoRange && !this.cartoRange.intersectsRange(tile.rectangle))) {
|
|
153148
153155
|
tile.setLeaf();
|
|
@@ -153150,12 +153157,14 @@ class MapLayerImageryProvider {
|
|
|
153150
153157
|
}
|
|
153151
153158
|
this._generateChildIds(tile, resolveChildren);
|
|
153152
153159
|
}
|
|
153160
|
+
/** @internal */
|
|
153153
153161
|
async getToolTip(strings, quadId, _carto, tree) {
|
|
153154
153162
|
if (doDebugToolTips) {
|
|
153155
153163
|
const range = quadId.getLatLongRangeDegrees(tree.tilingScheme);
|
|
153156
153164
|
strings.push(`QuadId: ${quadId.debugString}, Lat: ${range.low.x} - ${range.high.x} Long: ${range.low.y} - ${range.high.y}`);
|
|
153157
153165
|
}
|
|
153158
153166
|
}
|
|
153167
|
+
/** @internal */
|
|
153159
153168
|
async getFeatureInfo(featureInfos, _quadId, _carto, _tree) {
|
|
153160
153169
|
// default implementation; simply return an empty feature info
|
|
153161
153170
|
featureInfos.push({ layerName: this._settings.name });
|
|
@@ -153185,7 +153194,8 @@ class MapLayerImageryProvider {
|
|
|
153185
153194
|
}
|
|
153186
153195
|
/** Change the status of this provider.
|
|
153187
153196
|
* Sub-classes should override 'onStatusUpdated' instead of this method.
|
|
153188
|
-
*
|
|
153197
|
+
* @internal
|
|
153198
|
+
*/
|
|
153189
153199
|
setStatus(status) {
|
|
153190
153200
|
if (this._status !== status) {
|
|
153191
153201
|
this.onStatusUpdated(status);
|
|
@@ -153195,9 +153205,8 @@ class MapLayerImageryProvider {
|
|
|
153195
153205
|
}
|
|
153196
153206
|
/** Method called whenever the status changes, giving the opportunity to sub-classes to have a custom behavior.
|
|
153197
153207
|
* @internal
|
|
153198
|
-
|
|
153199
|
-
onStatusUpdated(_newStatus) {
|
|
153200
|
-
}
|
|
153208
|
+
*/
|
|
153209
|
+
onStatusUpdated(_newStatus) { }
|
|
153201
153210
|
/** @internal */
|
|
153202
153211
|
setRequestAuthorization(headers) {
|
|
153203
153212
|
if (this._settings.userName && this._settings.password) {
|
|
@@ -153213,6 +153222,7 @@ class MapLayerImageryProvider {
|
|
|
153213
153222
|
}
|
|
153214
153223
|
return fetch(url, { method: "GET", headers });
|
|
153215
153224
|
}
|
|
153225
|
+
/** Returns a map layer tile at the specified settings. */
|
|
153216
153226
|
async loadTile(row, column, zoomLevel) {
|
|
153217
153227
|
try {
|
|
153218
153228
|
const tileUrl = await this.constructUrl(row, column, zoomLevel);
|
|
@@ -153367,8 +153377,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
153367
153377
|
|
|
153368
153378
|
|
|
153369
153379
|
|
|
153370
|
-
/**
|
|
153371
|
-
* Values for return codes from [[MapLayerSource.validateSource]]
|
|
153380
|
+
/** Values for return codes from [[MapLayerSource.validateSource]]
|
|
153372
153381
|
* @public
|
|
153373
153382
|
*/
|
|
153374
153383
|
var MapLayerSourceStatus;
|
|
@@ -153388,7 +153397,7 @@ var MapLayerSourceStatus;
|
|
|
153388
153397
|
/** Map-layer coordinate system is not supported */
|
|
153389
153398
|
MapLayerSourceStatus[MapLayerSourceStatus["InvalidCoordinateSystem"] = 6] = "InvalidCoordinateSystem";
|
|
153390
153399
|
})(MapLayerSourceStatus || (MapLayerSourceStatus = {}));
|
|
153391
|
-
/** A source for map layers.
|
|
153400
|
+
/** A source for map layers. These may be catalogued for convenient use by users or applications.
|
|
153392
153401
|
* @public
|
|
153393
153402
|
*/
|
|
153394
153403
|
class MapLayerSource {
|
|
@@ -153437,7 +153446,7 @@ class MapLayerSource {
|
|
|
153437
153446
|
}
|
|
153438
153447
|
}
|
|
153439
153448
|
/** A collection of [[MapLayerSource]] objects.
|
|
153440
|
-
* @
|
|
153449
|
+
* @beta
|
|
153441
153450
|
*/
|
|
153442
153451
|
class MapLayerSources {
|
|
153443
153452
|
constructor(_sources) {
|
|
@@ -155744,12 +155753,12 @@ class MapTiledGraphicsProvider {
|
|
|
155744
155753
|
this._detachFromDisplayStyle.length = 0;
|
|
155745
155754
|
}
|
|
155746
155755
|
/** @internal */
|
|
155747
|
-
getMapLayerImageryProvider(
|
|
155748
|
-
const imageryTreeRef = isOverlay ? this.overlayMap.getLayerImageryTreeRef(index) : this.backgroundMap.getLayerImageryTreeRef(index);
|
|
155756
|
+
getMapLayerImageryProvider(mapLayerIndex) {
|
|
155757
|
+
const imageryTreeRef = mapLayerIndex.isOverlay ? this.overlayMap.getLayerImageryTreeRef(mapLayerIndex.index) : this.backgroundMap.getLayerImageryTreeRef(mapLayerIndex.index);
|
|
155749
155758
|
return imageryTreeRef?.imageryProvider;
|
|
155750
155759
|
}
|
|
155751
|
-
resetMapLayer(
|
|
155752
|
-
const imageryTreeRef = isOverlay ? this.overlayMap.getLayerImageryTreeRef(index) : this.backgroundMap.getLayerImageryTreeRef(index);
|
|
155760
|
+
resetMapLayer(mapLayerIndex) {
|
|
155761
|
+
const imageryTreeRef = mapLayerIndex.isOverlay ? this.overlayMap.getLayerImageryTreeRef(mapLayerIndex.index) : this.backgroundMap.getLayerImageryTreeRef(mapLayerIndex.index);
|
|
155753
155762
|
imageryTreeRef?.resetTreeOwner();
|
|
155754
155763
|
}
|
|
155755
155764
|
/** Return a list of map-layers indexes matching a given MapTile tree Id and a layer imagery tree id.
|
|
@@ -160664,8 +160673,7 @@ class ElementSetTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_9__.Primiti
|
|
|
160664
160673
|
ids.add(id);
|
|
160665
160674
|
try {
|
|
160666
160675
|
const ecsql = `SELECT ECInstanceId as id, Parent.Id as parentId FROM BisCore.GeometricElement WHERE Parent.Id IN (SELECT Parent.Id as parentId FROM BisCore.GeometricElement WHERE parent.Id != 0 AND ECInstanceId IN (${id}))`;
|
|
160667
|
-
|
|
160668
|
-
for await (const row of this.iModel.query(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
160676
|
+
for await (const row of this.iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
160669
160677
|
ids.add(row.parentId);
|
|
160670
160678
|
ids.add(row.id);
|
|
160671
160679
|
}
|
|
@@ -276574,7 +276582,7 @@ class TestContext {
|
|
|
276574
276582
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
276575
276583
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
276576
276584
|
await core_frontend_1.NoRenderApp.startup({
|
|
276577
|
-
applicationVersion: "4.0.0-dev.
|
|
276585
|
+
applicationVersion: "4.0.0-dev.76",
|
|
276578
276586
|
applicationId: this.settings.gprid,
|
|
276579
276587
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
276580
276588
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -284172,8 +284180,9 @@ class FavoritePropertiesManager {
|
|
|
284172
284180
|
INNER JOIN ECDbMeta.ECClassDef baseClass ON baseClass.ECInstanceId = baseClassRels.TargetECInstanceId
|
|
284173
284181
|
INNER JOIN ECDbMeta.ECSchemaDef baseSchema ON baseSchema.ECInstanceId = baseClass.Schema.Id
|
|
284174
284182
|
WHERE (derivedSchema.Name || ':' || derivedClass.Name) IN (${[...missingClasses].map((className) => `'${className}'`).join(",")})`;
|
|
284175
|
-
|
|
284176
|
-
|
|
284183
|
+
const reader = imodel.createQueryReader(query, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames });
|
|
284184
|
+
while (await reader.step()) {
|
|
284185
|
+
const row = reader.current.toRow();
|
|
284177
284186
|
if (!(row.classFullName in baseClasses))
|
|
284178
284187
|
baseClasses[row.classFullName] = [];
|
|
284179
284188
|
baseClasses[row.classFullName].push(row.baseClassFullName);
|
|
@@ -296127,7 +296136,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
296127
296136
|
/***/ ((module) => {
|
|
296128
296137
|
|
|
296129
296138
|
"use strict";
|
|
296130
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.
|
|
296139
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.76","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","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 \\"./node_modules/@itwin/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.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.0.0-dev.76","@itwin/core-bentley":"workspace:^4.0.0-dev.76","@itwin/core-common":"workspace:^4.0.0-dev.76","@itwin/core-geometry":"workspace:^4.0.0-dev.76","@itwin/core-orbitgt":"workspace:^4.0.0-dev.76","@itwin/core-quantity":"workspace:^4.0.0-dev.76"},"//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":"^4.0.0-dev.33","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/semver":"7.3.10","@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":"^8.36.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":"~5.0.2","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/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","fuse.js":"^3.3.0","semver":"^7.3.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"}}]}}');
|
|
296131
296140
|
|
|
296132
296141
|
/***/ }),
|
|
296133
296142
|
|
|
@@ -296598,8 +296607,7 @@ describe("Operational: Execute Query", () => {
|
|
|
296598
296607
|
const iModel = await testContext.iModelWithChangesets.getConnection();
|
|
296599
296608
|
const query = "select count(*) nRows from(SELECT ECInstanceId FROM Bis.Element LIMIT 50)";
|
|
296600
296609
|
const rows = [];
|
|
296601
|
-
|
|
296602
|
-
for await (const row of iModel.query(query, undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames }))
|
|
296610
|
+
for await (const row of iModel.createQueryReader(query, undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames }))
|
|
296603
296611
|
rows.push(row);
|
|
296604
296612
|
expect(rows).to.be.not.empty;
|
|
296605
296613
|
});
|
|
@@ -297314,8 +297322,7 @@ describe("Basic Scenarios", async () => {
|
|
|
297314
297322
|
it("should open iModel and Execute Query TestCase:819343", async () => {
|
|
297315
297323
|
const iModel = await testContext.iModelWithChangesets.getConnection();
|
|
297316
297324
|
const rows = [];
|
|
297317
|
-
|
|
297318
|
-
for await (const row of iModel.query("SELECT ECInstanceId AS id FROM BisCore.Element", undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames, limit: { count: 10 } }))
|
|
297325
|
+
for await (const row of iModel.createQueryReader("SELECT ECInstanceId AS id FROM BisCore.Element", undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames, limit: { count: 10 } }))
|
|
297319
297326
|
rows.push(row);
|
|
297320
297327
|
expect(rows).not.to.be.empty;
|
|
297321
297328
|
});
|