@itwin/rpcinterface-full-stack-tests 5.6.2 → 5.6.3
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 +30 -18
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -188662,14 +188662,20 @@ class RealityTileLoader {
|
|
|
188662
188662
|
}
|
|
188663
188663
|
const geom = await reader?.readGltfAndCreateGeometry(transform);
|
|
188664
188664
|
// See RealityTileTree.reprojectAndResolveChildren for how reprojectionTransform is calculated
|
|
188665
|
+
// xForm is defined in root tile CRS, while geom is defined in iModel CRS
|
|
188665
188666
|
const xForm = tile.reprojectionTransform;
|
|
188666
|
-
if (tile.tree.reprojectGeometry && geom?.polyfaces && xForm) {
|
|
188667
|
-
|
|
188668
|
-
|
|
188669
|
-
|
|
188670
|
-
|
|
188671
|
-
|
|
188667
|
+
if (tile.tree.reprojectGeometry && geom?.polyfaces?.length && xForm) {
|
|
188668
|
+
// Transform from iModel/Db CRS -> root tile CRS
|
|
188669
|
+
const dbToRoot = tile.tree.iModelTransform.inverse();
|
|
188670
|
+
if (dbToRoot) {
|
|
188671
|
+
// Conjugate xForm to apply it to polyfaces in iModel CRS:
|
|
188672
|
+
// dbToRoot converts to root tile CRS, xForm applies reprojection, iModelTransform converts back
|
|
188673
|
+
const polyfaceReprojectionTransform = tile.tree.iModelTransform.multiplyTransformTransform(xForm).multiplyTransformTransform(dbToRoot);
|
|
188674
|
+
const polyfaces = geom.polyfaces.map((pf) => pf.cloneTransformed(polyfaceReprojectionTransform));
|
|
188675
|
+
return { geometry: { polyfaces } };
|
|
188676
|
+
}
|
|
188672
188677
|
}
|
|
188678
|
+
return { geometry: geom };
|
|
188673
188679
|
}
|
|
188674
188680
|
async loadGraphicsFromStream(tile, streamBuffer, system, isCanceled) {
|
|
188675
188681
|
const format = this._getFormat(streamBuffer);
|
|
@@ -191558,7 +191564,13 @@ class WmtsMapLayerImageryProvider extends _tile_internal__WEBPACK_IMPORTED_MODUL
|
|
|
191558
191564
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false); // Must always hava a matrix set.
|
|
191559
191565
|
return;
|
|
191560
191566
|
}
|
|
191561
|
-
const
|
|
191567
|
+
const childLevel = quadId.level + 1;
|
|
191568
|
+
const childMatrixId = matrixSetAndLimits.tileMatrixSet.tileMatrix.length > childLevel
|
|
191569
|
+
? matrixSetAndLimits.tileMatrixSet.tileMatrix[childLevel].identifier
|
|
191570
|
+
: undefined;
|
|
191571
|
+
const limits = childMatrixId !== undefined
|
|
191572
|
+
? matrixSetAndLimits.limits?.find((l) => l.tileMatrix === childMatrixId)?.limits
|
|
191573
|
+
: undefined;
|
|
191562
191574
|
if (!limits) {
|
|
191563
191575
|
resolveChildren(childIds);
|
|
191564
191576
|
return;
|
|
@@ -192591,7 +192603,7 @@ var WmtsCapability;
|
|
|
192591
192603
|
this.tileMatrixSet = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(getElementTextContent(elem, "TileMatrixSet", ""));
|
|
192592
192604
|
const tileMatrixLimitsRoot = elem.getElementsByTagName("TileMatrixSetLimits");
|
|
192593
192605
|
if (tileMatrixLimitsRoot.length > 0) {
|
|
192594
|
-
const tileMatrixLimits = tileMatrixLimitsRoot[0].getElementsByTagName("
|
|
192606
|
+
const tileMatrixLimits = tileMatrixLimitsRoot[0].getElementsByTagName("TileMatrixLimits");
|
|
192595
192607
|
for (const tmsl of tileMatrixLimits) {
|
|
192596
192608
|
this.tileMatrixSetLimits.push(new TileMatrixSetLimits(tmsl));
|
|
192597
192609
|
}
|
|
@@ -193618,7 +193630,7 @@ class QuantityTypeFormatsProvider {
|
|
|
193618
193630
|
["DefaultToolsUnits.VOLUME", QuantityType.Volume],
|
|
193619
193631
|
["DefaultToolsUnits.LENGTH_COORDINATE", QuantityType.Coordinate],
|
|
193620
193632
|
["CivilUnits.STATION", QuantityType.Stationing],
|
|
193621
|
-
["CivilUnits.LENGTH", QuantityType.
|
|
193633
|
+
["CivilUnits.LENGTH", QuantityType.LengthEngineering],
|
|
193622
193634
|
["AecUnits.LENGTH", QuantityType.LengthEngineering]
|
|
193623
193635
|
]);
|
|
193624
193636
|
async getFormat(name) {
|
|
@@ -205575,20 +205587,19 @@ class ImageryMapTile extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTile
|
|
|
205575
205587
|
setContent(content) {
|
|
205576
205588
|
this._texture = content.imageryTexture; // No dispose - textures may be shared by terrain tiles so let garbage collector dispose them.
|
|
205577
205589
|
if (undefined === content.imageryTexture)
|
|
205578
|
-
|
|
205590
|
+
this.setLeaf(); // No imagery here — don't traverse deeper, but leave siblings unaffected.
|
|
205579
205591
|
this.setIsReady();
|
|
205580
205592
|
}
|
|
205581
205593
|
selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, rectangleToDrape, drapePixelSize, args) {
|
|
205582
205594
|
// Base draping overlap on width rather than height so that tiling schemes with multiple root nodes overlay correctly.
|
|
205583
205595
|
const isSmallerThanDrape = (this.rectangle.xLength() / this.maximumSize) < drapePixelSize;
|
|
205584
|
-
if ((this.isLeaf) // Include leaves so tiles get stretched past max LOD levels. (Only for base imagery layer)
|
|
205585
|
-
|| isSmallerThanDrape
|
|
205586
|
-
|| this._anyChildNotFound) {
|
|
205596
|
+
if ((this.isLeaf && !this.isNotFound) // Include leaves so tiles get stretched past max LOD levels. (Only for base imagery layer)
|
|
205597
|
+
|| isSmallerThanDrape) {
|
|
205587
205598
|
if (this.isOutOfLodRange) {
|
|
205588
205599
|
drapeTiles.push(this);
|
|
205589
205600
|
this.setIsReady();
|
|
205590
205601
|
}
|
|
205591
|
-
else if (this.isLeaf && !isSmallerThanDrape
|
|
205602
|
+
else if (this.isLeaf && !isSmallerThanDrape) {
|
|
205592
205603
|
// These tiles are selected because we are beyond the max LOD of the tile tree,
|
|
205593
205604
|
// might be used to display "stretched" tiles instead of having blank.
|
|
205594
205605
|
highResolutionReplacementTiles.push(this);
|
|
@@ -205606,8 +205617,9 @@ class ImageryMapTile extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTile
|
|
|
205606
205617
|
if (undefined !== this.children) {
|
|
205607
205618
|
for (const child of this.children) {
|
|
205608
205619
|
const mapChild = child;
|
|
205609
|
-
if (mapChild.rectangle.intersectsRange(rectangleToDrape))
|
|
205610
|
-
|
|
205620
|
+
if (!mapChild.rectangle.intersectsRange(rectangleToDrape))
|
|
205621
|
+
continue;
|
|
205622
|
+
status = mapChild.selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, rectangleToDrape, drapePixelSize, args);
|
|
205611
205623
|
if (_internal__WEBPACK_IMPORTED_MODULE_4__.TileTreeLoadStatus.Loaded !== status)
|
|
205612
205624
|
break;
|
|
205613
205625
|
}
|
|
@@ -345218,7 +345230,7 @@ class TestContext {
|
|
|
345218
345230
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
345219
345231
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
345220
345232
|
await core_frontend_1.NoRenderApp.startup({
|
|
345221
|
-
applicationVersion: "5.6.
|
|
345233
|
+
applicationVersion: "5.6.3",
|
|
345222
345234
|
applicationId: this.settings.gprid,
|
|
345223
345235
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
345224
345236
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -371978,7 +371990,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
371978
371990
|
/***/ ((module) => {
|
|
371979
371991
|
|
|
371980
371992
|
"use strict";
|
|
371981
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.6.
|
|
371993
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.6.3","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers && npm run -s copy:draco","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 ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//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/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@types/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.5.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//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/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^4.3.4","@loaders.gl/draco":"^4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
371982
371994
|
|
|
371983
371995
|
/***/ }),
|
|
371984
371996
|
|