@itwin/rpcinterface-full-stack-tests 4.0.0-dev.4 → 4.0.0-dev.6
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 +69 -62
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_07c5.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\
|
|
1
|
+
{"version":3,"file":"_07c5.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\4\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.2.13\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -137065,15 +137065,6 @@ class Bundle {
|
|
|
137065
137065
|
return undefined;
|
|
137066
137066
|
}
|
|
137067
137067
|
const colorTextures = [];
|
|
137068
|
-
// Check if the system can render to a depth texture without a renderable color texture bound as well.
|
|
137069
|
-
// If it cannot, add a renderable color texture to the framebuffer.
|
|
137070
|
-
// MacOS Safari exhibited this behavior, which necessitated this code path.
|
|
137071
|
-
if (!_System__WEBPACK_IMPORTED_MODULE_13__.System.instance.canRenderDepthWithoutColor) {
|
|
137072
|
-
const colTex = _Texture__WEBPACK_IMPORTED_MODULE_14__.TextureHandle.createForAttachment(shadowMapWidth, shadowMapHeight, _GL__WEBPACK_IMPORTED_MODULE_8__.GL.Texture.Format.Rgba, pixelDataType);
|
|
137073
|
-
if (undefined === colTex)
|
|
137074
|
-
return undefined;
|
|
137075
|
-
colorTextures.push(colTex);
|
|
137076
|
-
}
|
|
137077
137068
|
const fbo = _FrameBuffer__WEBPACK_IMPORTED_MODULE_7__.FrameBuffer.create(colorTextures, depthTextureHandle);
|
|
137078
137069
|
if (undefined === fbo)
|
|
137079
137070
|
return undefined;
|
|
@@ -138108,7 +138099,6 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_7__.RenderSystem {
|
|
|
138108
138099
|
get maxTextureSize() { return this._capabilities.maxTextureSize; }
|
|
138109
138100
|
get supportsCreateImageBitmap() { return this._capabilities.supportsCreateImageBitmap; }
|
|
138110
138101
|
get maxRenderType() { return this._capabilities.maxRenderType; }
|
|
138111
|
-
get canRenderDepthWithoutColor() { return this._capabilities.canRenderDepthWithoutColor; }
|
|
138112
138102
|
get fragDepthDoesNotDisableEarlyZ() { return this._capabilities.driverBugs.fragDepthDoesNotDisableEarlyZ; }
|
|
138113
138103
|
get maxAntialiasSamples() { return this._capabilities.maxAntialiasSamples; }
|
|
138114
138104
|
get supportsNonPowerOf2Textures() { return this._capabilities.supportsNonPowerOf2Textures; }
|
|
@@ -158348,8 +158338,7 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
|
|
|
158348
158338
|
if (imageryTiles.length)
|
|
158349
158339
|
this.logTiles("Imagery:", imageryTiles.values());
|
|
158350
158340
|
}
|
|
158351
|
-
|
|
158352
|
-
this.reportTileVisibility(args, selected);
|
|
158341
|
+
this.reportTileVisibility(args, selected);
|
|
158353
158342
|
_IModelApp__WEBPACK_IMPORTED_MODULE_4__.IModelApp.tileAdmin.addTilesForUser(args.context.viewport, selected, args.readyTiles);
|
|
158354
158343
|
return selected;
|
|
158355
158344
|
}
|
|
@@ -164617,16 +164606,21 @@ class ImageryMapTile extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTile
|
|
|
164617
164606
|
this.parent.setLeaf(); // Avoid traversing bing branches after no graphics is found.
|
|
164618
164607
|
this.setIsReady();
|
|
164619
164608
|
}
|
|
164620
|
-
selectCartoDrapeTiles(drapeTiles, rectangleToDrape, drapePixelSize, args) {
|
|
164609
|
+
selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, rectangleToDrape, drapePixelSize, args) {
|
|
164621
164610
|
// Base draping overlap on width rather than height so that tiling schemes with multiple root nodes overlay correctly.
|
|
164622
164611
|
const isSmallerThanDrape = (this.rectangle.xLength() / this.maximumSize) < drapePixelSize;
|
|
164623
|
-
if (this.isLeaf // Include leaves so tiles get stretched past max LOD levels.
|
|
164612
|
+
if ((this.isLeaf) // Include leaves so tiles get stretched past max LOD levels. (Only for base imagery layer)
|
|
164624
164613
|
|| isSmallerThanDrape
|
|
164625
164614
|
|| this._anyChildNotFound) {
|
|
164626
164615
|
if (this.isOutOfLodRange) {
|
|
164627
164616
|
drapeTiles.push(this);
|
|
164628
164617
|
this.setIsReady();
|
|
164629
164618
|
}
|
|
164619
|
+
else if (this.isLeaf && !isSmallerThanDrape && !this._anyChildNotFound) {
|
|
164620
|
+
// These tiles are selected because we are beyond the max LOD of the tile tree,
|
|
164621
|
+
// might be used to display "stretched" tiles instead of having blank.
|
|
164622
|
+
highResolutionReplacementTiles.push(this);
|
|
164623
|
+
}
|
|
164630
164624
|
else {
|
|
164631
164625
|
drapeTiles.push(this);
|
|
164632
164626
|
}
|
|
@@ -164641,7 +164635,7 @@ class ImageryMapTile extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTile
|
|
|
164641
164635
|
for (const child of this.children) {
|
|
164642
164636
|
const mapChild = child;
|
|
164643
164637
|
if (mapChild.rectangle.intersectsRange(rectangleToDrape))
|
|
164644
|
-
status = mapChild.selectCartoDrapeTiles(drapeTiles, rectangleToDrape, drapePixelSize, args);
|
|
164638
|
+
status = mapChild.selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, rectangleToDrape, drapePixelSize, args);
|
|
164645
164639
|
if (_internal__WEBPACK_IMPORTED_MODULE_4__.TileTreeLoadStatus.Loaded !== status)
|
|
164646
164640
|
break;
|
|
164647
164641
|
}
|
|
@@ -164776,12 +164770,12 @@ class ImageryMapTileTree extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityT
|
|
|
164776
164770
|
return [];
|
|
164777
164771
|
}
|
|
164778
164772
|
draw(_args) { (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false); }
|
|
164779
|
-
selectCartoDrapeTiles(drapeTiles, tileToDrape, args) {
|
|
164773
|
+
selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, tileToDrape, args) {
|
|
164780
164774
|
const drapeRectangle = tileToDrape.rectangle.clone(ImageryMapTileTree._scratchDrapeRectangle);
|
|
164781
164775
|
// Base draping overlap on width rather than height so that tiling schemes with multiple root nodes overlay correctly.
|
|
164782
164776
|
const drapePixelSize = 1.05 * tileToDrape.rectangle.xLength() / tileToDrape.maximumSize;
|
|
164783
164777
|
drapeRectangle.scaleAboutCenterInPlace(ImageryMapTileTree._drapeIntersectionScale); // Contract slightly to avoid draping adjacent or slivers.
|
|
164784
|
-
return this.rootTile.selectCartoDrapeTiles(drapeTiles, drapeRectangle, drapePixelSize, args);
|
|
164778
|
+
return this.rootTile.selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, drapeRectangle, drapePixelSize, args);
|
|
164785
164779
|
}
|
|
164786
164780
|
cartoRectangleFromQuadId(quadId) { return this.tilingScheme.tileXYToRectangle(quadId.column, quadId.row, quadId.level); }
|
|
164787
164781
|
}
|
|
@@ -166140,6 +166134,13 @@ class MapTile extends _internal__WEBPACK_IMPORTED_MODULE_7__.RealityTile {
|
|
|
166140
166134
|
* @internal
|
|
166141
166135
|
*/
|
|
166142
166136
|
get hiddenImageryTiles() { return this._hiddenTiles; }
|
|
166137
|
+
/** List of leafs tiles that have been selected as a replacement for missing high resolution tiles.
|
|
166138
|
+
* When this list is non-empty this means we are past the maximum LOD available of the tile tree.
|
|
166139
|
+
* By using those tiles, you are likely to get a display where tiles looks pixelated..
|
|
166140
|
+
* in some cases this is preferred to have no tile at all.
|
|
166141
|
+
* @internal
|
|
166142
|
+
*/
|
|
166143
|
+
get highResolutionReplacementTiles() { return this._highResolutionReplacementTiles; }
|
|
166143
166144
|
/** @internal */
|
|
166144
166145
|
getRangeCorners(result) {
|
|
166145
166146
|
return this._patch instanceof PlanarTilePatch ? this._patch.getRangeCorners(this.heightRange, result) : this.range.corners(result);
|
|
@@ -166412,6 +166413,9 @@ class MapTile extends _internal__WEBPACK_IMPORTED_MODULE_7__.RealityTile {
|
|
|
166412
166413
|
if (this._hiddenTiles) {
|
|
166413
166414
|
this._hiddenTiles = undefined;
|
|
166414
166415
|
}
|
|
166416
|
+
if (this._highResolutionReplacementTiles) {
|
|
166417
|
+
this._highResolutionReplacementTiles = undefined;
|
|
166418
|
+
}
|
|
166415
166419
|
}
|
|
166416
166420
|
/** @internal */
|
|
166417
166421
|
produceGraphics() {
|
|
@@ -166503,12 +166507,26 @@ class MapTile extends _internal__WEBPACK_IMPORTED_MODULE_7__.RealityTile {
|
|
|
166503
166507
|
this.clearImageryTiles();
|
|
166504
166508
|
this._imageryTiles = new Array();
|
|
166505
166509
|
this._hiddenTiles = new Array();
|
|
166510
|
+
this._highResolutionReplacementTiles = new Array();
|
|
166506
166511
|
for (const layerImageryTree of this.mapTree.layerImageryTrees) {
|
|
166507
|
-
|
|
166508
|
-
|
|
166512
|
+
let tmpTiles = new Array();
|
|
166513
|
+
const tmpLeafTiles = new Array();
|
|
166514
|
+
if (_internal__WEBPACK_IMPORTED_MODULE_7__.TileTreeLoadStatus.Loaded !== layerImageryTree.tree.selectCartoDrapeTiles(tmpTiles, tmpLeafTiles, this, args)) {
|
|
166509
166515
|
this._imageryTiles = undefined;
|
|
166510
166516
|
return;
|
|
166511
166517
|
}
|
|
166518
|
+
// When the base layer is zoomed-in beyond it's max resolution,
|
|
166519
|
+
// we display leaf tiles and stretched them if needed.
|
|
166520
|
+
// We don't want the same behavior non-base layers, in the case,
|
|
166521
|
+
// the layer will simply disappear past its max resolution.
|
|
166522
|
+
// Note: Replacement leaf tiles are kept as a mean to determine which
|
|
166523
|
+
// imagery tree has reached it's maximum zoom level.
|
|
166524
|
+
if (layerImageryTree.baseImageryLayer) {
|
|
166525
|
+
tmpTiles = [...tmpTiles, ...tmpLeafTiles];
|
|
166526
|
+
}
|
|
166527
|
+
else {
|
|
166528
|
+
this._highResolutionReplacementTiles = [...this._highResolutionReplacementTiles, ...tmpLeafTiles];
|
|
166529
|
+
}
|
|
166512
166530
|
// MapTileTree might include a non-visible imagery tree, we need to check for that.
|
|
166513
166531
|
if (layerImageryTree.settings.visible && !layerImageryTree.settings.allSubLayersInvisible) {
|
|
166514
166532
|
for (const imageryTile of tmpTiles) {
|
|
@@ -167166,8 +167184,8 @@ class MapTileTree extends _internal__WEBPACK_IMPORTED_MODULE_7__.RealityTileTree
|
|
|
167166
167184
|
/** Add a new imagery tile tree / map-layer settings pair and initialize the imagery tile tree state.
|
|
167167
167185
|
* @internal
|
|
167168
167186
|
*/
|
|
167169
|
-
addImageryLayer(tree, settings, index) {
|
|
167170
|
-
this.layerImageryTrees.push({ tree, settings });
|
|
167187
|
+
addImageryLayer(tree, settings, index, baseImageryLayer) {
|
|
167188
|
+
this.layerImageryTrees.push({ tree, settings, baseImageryLayer });
|
|
167171
167189
|
this._layerSettings.set(tree.modelId, settings);
|
|
167172
167190
|
if (!this._imageryTreeState.has(tree.modelId))
|
|
167173
167191
|
this._imageryTreeState.set(tree.modelId, new _internal__WEBPACK_IMPORTED_MODULE_7__.ImageryTileTreeState());
|
|
@@ -167406,15 +167424,19 @@ class MapTileTree extends _internal__WEBPACK_IMPORTED_MODULE_7__.RealityTileTree
|
|
|
167406
167424
|
treeVisibility.reset();
|
|
167407
167425
|
}
|
|
167408
167426
|
}
|
|
167409
|
-
let allTilesRead = true;
|
|
167410
167427
|
for (const selectedTile of selected) {
|
|
167411
167428
|
if (selectedTile instanceof _internal__WEBPACK_IMPORTED_MODULE_7__.MapTile) {
|
|
167412
|
-
if (!selectedTile.isReady)
|
|
167413
|
-
allTilesRead = false;
|
|
167414
167429
|
let selectedImageryTiles = selectedTile.imageryTiles;
|
|
167415
167430
|
if (selectedTile.hiddenImageryTiles) {
|
|
167416
167431
|
selectedImageryTiles = selectedImageryTiles ? [...selectedImageryTiles, ...selectedTile.hiddenImageryTiles] : selectedTile.hiddenImageryTiles;
|
|
167417
167432
|
}
|
|
167433
|
+
const leafTiles = selectedTile.highResolutionReplacementTiles;
|
|
167434
|
+
if (leafTiles) {
|
|
167435
|
+
for (const tile of leafTiles) {
|
|
167436
|
+
const treeState = this.getImageryTreeState(tile.tree.id);
|
|
167437
|
+
treeState === null || treeState === void 0 ? void 0 : treeState.setScaleRangeVisibility(false);
|
|
167438
|
+
}
|
|
167439
|
+
}
|
|
167418
167440
|
if (selectedImageryTiles) {
|
|
167419
167441
|
for (const selectedImageryTile of selectedImageryTiles) {
|
|
167420
167442
|
const treeState = this.getImageryTreeState(selectedImageryTile.tree.id);
|
|
@@ -167430,8 +167452,6 @@ class MapTileTree extends _internal__WEBPACK_IMPORTED_MODULE_7__.RealityTileTree
|
|
|
167430
167452
|
}
|
|
167431
167453
|
}
|
|
167432
167454
|
}
|
|
167433
|
-
if (!allTilesRead)
|
|
167434
|
-
changes;
|
|
167435
167455
|
for (const [treeId, prevState] of layersVisibilityBefore) {
|
|
167436
167456
|
const newState = this.getImageryTreeState(treeId);
|
|
167437
167457
|
if (newState) {
|
|
@@ -167808,8 +167828,9 @@ class MapTileTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_7__.TileTr
|
|
|
167808
167828
|
const layerTree = layerTreeRef.treeOwner.load();
|
|
167809
167829
|
if (undefined === layerTree)
|
|
167810
167830
|
return false; // Not loaded yet.
|
|
167831
|
+
const baseImageryLayer = this._baseImageryLayerIncluded && (treeIndex === 0);
|
|
167811
167832
|
if (layerTree instanceof _internal__WEBPACK_IMPORTED_MODULE_7__.ImageryMapTileTree) {
|
|
167812
|
-
tree.addImageryLayer(layerTree, layerTreeRef.layerSettings, treeIndex);
|
|
167833
|
+
tree.addImageryLayer(layerTree, layerTreeRef.layerSettings, treeIndex, baseImageryLayer);
|
|
167813
167834
|
}
|
|
167814
167835
|
else if (layerTreeRef instanceof _internal__WEBPACK_IMPORTED_MODULE_7__.ModelMapLayerTileTreeReference)
|
|
167815
167836
|
tree.addModelLayer(layerTreeRef, context);
|
|
@@ -196637,6 +196658,10 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
|
|
|
196637
196658
|
const fragment = this.chainDistanceToFragment(distanceAlongPath, true);
|
|
196638
196659
|
const curveFraction = fragment.chainDistanceToAccurateChildFraction(distanceAlongPath, true);
|
|
196639
196660
|
result = fragment.childCurve.fractionToPointAndDerivative(curveFraction, result);
|
|
196661
|
+
// Fractional arc length parameterization for the curve C is f=f(t)=s(t)/L, where
|
|
196662
|
+
// L is total length of C, f'=||C'||/L, and inverse t=t(f), t'=1/f'=L/||C'||.
|
|
196663
|
+
// Then d/df(C(t(f)))=C't'=C'L/||C'||. The fragment gave us C', so the
|
|
196664
|
+
// derivative we seek is just a scale away.
|
|
196640
196665
|
const a = this._totalLength / result.direction.magnitude();
|
|
196641
196666
|
result.direction.scaleInPlace(a);
|
|
196642
196667
|
return result;
|
|
@@ -196662,23 +196687,26 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
|
|
|
196662
196687
|
* * vectorV is the second derivative, i.e.derivative of vectorU.
|
|
196663
196688
|
*/
|
|
196664
196689
|
fractionToPointAnd2Derivatives(fraction, result) {
|
|
196665
|
-
const
|
|
196666
|
-
const distanceAlongPath = fraction * totalLength;
|
|
196690
|
+
const distanceAlongPath = fraction * this._totalLength;
|
|
196667
196691
|
const fragment = this.chainDistanceToFragment(distanceAlongPath, true);
|
|
196668
196692
|
const curveFraction = fragment.chainDistanceToAccurateChildFraction(distanceAlongPath, true);
|
|
196669
196693
|
result = fragment.childCurve.fractionToPointAnd2Derivatives(curveFraction, result);
|
|
196670
196694
|
if (!result)
|
|
196671
196695
|
return undefined;
|
|
196672
|
-
|
|
196673
|
-
|
|
196696
|
+
// See fractionToPointAndDerivative for derivation of d/df(C(t(f)))=L C'/||C'||.
|
|
196697
|
+
// For the 2nd deriv, use quotient rule, d/dt||x(t)||=x.x'/||x|| and ||x||^2=x.x :
|
|
196698
|
+
// d/df(C'(t(f))) = L d/df(C'/||C'||)
|
|
196699
|
+
// = L (||C'|| d/df(C') - C' d/df||C'||) / ||C'||^2
|
|
196700
|
+
// = L (||C'|| C" L/||C'|| - C' C'.C"/||C'|| L/||C'||) / ||C'||^2
|
|
196701
|
+
// = (L/||C'||)^2 (C" - C' C'.C"/C'.C' )
|
|
196702
|
+
// We have C' and C" from the fragment.
|
|
196703
|
+
const magU = result.vectorU.magnitude();
|
|
196704
|
+
const dotUU = magU * magU;
|
|
196674
196705
|
const dotUV = result.vectorU.dotProduct(result.vectorV);
|
|
196675
|
-
|
|
196676
|
-
const
|
|
196677
|
-
|
|
196678
|
-
result.
|
|
196679
|
-
// scale for 0..1 parameterization ....
|
|
196680
|
-
result.vectorU.scaleInPlace(totalLength);
|
|
196681
|
-
result.vectorV.scaleInPlace(totalLength * totalLength);
|
|
196706
|
+
result.vectorV.addScaledInPlace(result.vectorU, -dotUV / dotUU);
|
|
196707
|
+
const scale = this._totalLength / magU;
|
|
196708
|
+
result.vectorU.scaleInPlace(scale);
|
|
196709
|
+
result.vectorV.scaleInPlace(scale * scale);
|
|
196682
196710
|
return result;
|
|
196683
196711
|
}
|
|
196684
196712
|
/** Attempt to transform in place.
|
|
@@ -196743,7 +196771,7 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
|
|
|
196743
196771
|
numCalls: this._numCalls,
|
|
196744
196772
|
numTested: this._numTested,
|
|
196745
196773
|
numAssigned: this._numAssigned,
|
|
196746
|
-
numCandidate: this._numCandidate
|
|
196774
|
+
numCandidate: this._numCandidate,
|
|
196747
196775
|
};
|
|
196748
196776
|
if (clear) {
|
|
196749
196777
|
this._numTested = this._numAssigned = this._numCandidate = 0;
|
|
@@ -283839,7 +283867,6 @@ class Capabilities {
|
|
|
283839
283867
|
this._maxVertUniformVectors = 0;
|
|
283840
283868
|
this._maxVaryingVectors = 0;
|
|
283841
283869
|
this._maxFragUniformVectors = 0;
|
|
283842
|
-
this._canRenderDepthWithoutColor = false;
|
|
283843
283870
|
this._maxAntialiasSamples = 1;
|
|
283844
283871
|
this._supportsCreateImageBitmap = false;
|
|
283845
283872
|
this._maxTexSizeAllow = maxTexSizeAllowed;
|
|
@@ -283882,7 +283909,6 @@ class Capabilities {
|
|
|
283882
283909
|
get supportsStandardDerivatives() { return this._isWebGL2 || this.queryExtensionObject("OES_standard_derivatives") !== undefined; }
|
|
283883
283910
|
get supportsMRTTransparency() { return this.maxColorAttachments >= 2; }
|
|
283884
283911
|
get supportsMRTPickShaders() { return this.maxColorAttachments >= 3; }
|
|
283885
|
-
get canRenderDepthWithoutColor() { return this._canRenderDepthWithoutColor; }
|
|
283886
283912
|
get supportsShadowMaps() {
|
|
283887
283913
|
return this.supportsTextureFloat || this.supportsTextureHalfFloat;
|
|
283888
283914
|
}
|
|
@@ -284013,7 +284039,6 @@ class Capabilities {
|
|
|
284013
284039
|
// Determine the maximum depth attachment type.
|
|
284014
284040
|
// this._maxDepthType = this.queryExtensionObject("WEBGL_depth_texture") !== undefined ? DepthType.TextureUnsignedInt32 : DepthType.RenderBufferUnsignedShort16;
|
|
284015
284041
|
this._maxDepthType = this._isWebGL2 || this.queryExtensionObject("WEBGL_depth_texture") !== undefined ? DepthType.TextureUnsignedInt24Stencil8 : DepthType.RenderBufferUnsignedShort16;
|
|
284016
|
-
this._canRenderDepthWithoutColor = this._maxDepthType === DepthType.TextureUnsignedInt24Stencil8 ? this.isDepthRenderableWithoutColor(gl) : false;
|
|
284017
284042
|
this._presentFeatures = this._gatherFeatures();
|
|
284018
284043
|
const missingRequiredFeatures = this._findMissingFeatures(Capabilities.requiredFeatures);
|
|
284019
284044
|
const missingOptionalFeatures = this._findMissingFeatures(Capabilities.optionalFeatures);
|
|
@@ -284058,24 +284083,6 @@ class Capabilities {
|
|
|
284058
284083
|
gl.getError(); // clear any errors
|
|
284059
284084
|
return fbStatus === gl.FRAMEBUFFER_COMPLETE;
|
|
284060
284085
|
}
|
|
284061
|
-
/** Determines if depth textures can be rendered without also having a color attachment bound on the host system. */
|
|
284062
|
-
isDepthRenderableWithoutColor(gl) {
|
|
284063
|
-
const dtExt = this.queryExtensionObject("WEBGL_depth_texture");
|
|
284064
|
-
if (dtExt === undefined)
|
|
284065
|
-
return false;
|
|
284066
|
-
const tex = gl.createTexture();
|
|
284067
|
-
gl.bindTexture(gl.TEXTURE_2D, tex);
|
|
284068
|
-
gl.texImage2D(gl.TEXTURE_2D, 0, gl.DEPTH_STENCIL, 1, 1, 0, gl.DEPTH_STENCIL, dtExt.UNSIGNED_INT_24_8_WEBGL, null);
|
|
284069
|
-
const fb = gl.createFramebuffer();
|
|
284070
|
-
gl.bindFramebuffer(gl.FRAMEBUFFER, fb);
|
|
284071
|
-
gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.DEPTH_STENCIL_ATTACHMENT, gl.TEXTURE_2D, tex, 0);
|
|
284072
|
-
const fbStatus = gl.checkFramebufferStatus(gl.FRAMEBUFFER);
|
|
284073
|
-
gl.bindFramebuffer(gl.FRAMEBUFFER, null);
|
|
284074
|
-
gl.deleteFramebuffer(fb);
|
|
284075
|
-
gl.deleteTexture(tex);
|
|
284076
|
-
gl.getError(); // clear any errors
|
|
284077
|
-
return fbStatus === gl.FRAMEBUFFER_COMPLETE;
|
|
284078
|
-
}
|
|
284079
284086
|
setMaxAnisotropy(desiredMax, gl) {
|
|
284080
284087
|
const ext = this.queryExtensionObject("EXT_texture_filter_anisotropic");
|
|
284081
284088
|
if (undefined === ext)
|
|
@@ -285516,7 +285523,7 @@ class TestContext {
|
|
|
285516
285523
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
285517
285524
|
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` } });
|
|
285518
285525
|
await core_frontend_1.NoRenderApp.startup({
|
|
285519
|
-
applicationVersion: "4.0.0-dev.
|
|
285526
|
+
applicationVersion: "4.0.0-dev.6",
|
|
285520
285527
|
applicationId: this.settings.gprid,
|
|
285521
285528
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
285522
285529
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -304945,7 +304952,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
304945
304952
|
/***/ ((module) => {
|
|
304946
304953
|
|
|
304947
304954
|
"use strict";
|
|
304948
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.
|
|
304955
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.6","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.0.0-dev.6","@itwin/core-bentley":"workspace:^4.0.0-dev.6","@itwin/core-common":"workspace:^4.0.0-dev.6","@itwin/core-geometry":"workspace:^4.0.0-dev.6","@itwin/core-orbitgt":"workspace:^4.0.0-dev.6","@itwin/core-quantity":"workspace:^4.0.0-dev.6"},"//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:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.3","semver":"^7.3.5","superagent":"^7.1.5","wms-capabilities":"0.4.0","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
|
|
304949
304956
|
|
|
304950
304957
|
/***/ }),
|
|
304951
304958
|
|