@itwin/rpcinterface-full-stack-tests 4.11.4 → 4.11.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/bundled-tests.js +35 -13
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -116750,6 +116750,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
116750
116750
|
/* harmony export */ "RealityMeshParams": () => (/* reexport safe */ _render_RealityMeshParams__WEBPACK_IMPORTED_MODULE_90__.RealityMeshParams),
|
|
116751
116751
|
/* harmony export */ "RealityMeshParamsBuilder": () => (/* reexport safe */ _render_RealityMeshParams__WEBPACK_IMPORTED_MODULE_90__.RealityMeshParamsBuilder),
|
|
116752
116752
|
/* harmony export */ "RealityModelTileTree": () => (/* reexport safe */ _tile_internal__WEBPACK_IMPORTED_MODULE_104__.RealityModelTileTree),
|
|
116753
|
+
/* harmony export */ "RealityModelTileTreeProps": () => (/* reexport safe */ _tile_internal__WEBPACK_IMPORTED_MODULE_104__.RealityModelTileTreeProps),
|
|
116753
116754
|
/* harmony export */ "RealityModelTileUtils": () => (/* reexport safe */ _tile_internal__WEBPACK_IMPORTED_MODULE_104__.RealityModelTileUtils),
|
|
116754
116755
|
/* harmony export */ "RealityTile": () => (/* reexport safe */ _tile_internal__WEBPACK_IMPORTED_MODULE_104__.RealityTile),
|
|
116755
116756
|
/* harmony export */ "RealityTileDrawArgs": () => (/* reexport safe */ _tile_internal__WEBPACK_IMPORTED_MODULE_104__.RealityTileDrawArgs),
|
|
@@ -159308,6 +159309,7 @@ class SpatialRefs {
|
|
|
159308
159309
|
__webpack_require__.r(__webpack_exports__);
|
|
159309
159310
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
159310
159311
|
/* harmony export */ "RealityModelTileTree": () => (/* binding */ RealityModelTileTree),
|
|
159312
|
+
/* harmony export */ "RealityModelTileTreeProps": () => (/* binding */ RealityModelTileTreeProps),
|
|
159311
159313
|
/* harmony export */ "RealityModelTileUtils": () => (/* binding */ RealityModelTileUtils),
|
|
159312
159314
|
/* harmony export */ "RealityTileRegion": () => (/* binding */ RealityTileRegion),
|
|
159313
159315
|
/* harmony export */ "RealityTreeReference": () => (/* binding */ RealityTreeReference),
|
|
@@ -159515,18 +159517,29 @@ var SMTextureType;
|
|
|
159515
159517
|
SMTextureType[SMTextureType["Embedded"] = 1] = "Embedded";
|
|
159516
159518
|
SMTextureType[SMTextureType["Streaming"] = 2] = "Streaming";
|
|
159517
159519
|
})(SMTextureType || (SMTextureType = {}));
|
|
159518
|
-
/** @internal */
|
|
159520
|
+
/** @internal Exported strictly for tests. */
|
|
159519
159521
|
class RealityModelTileTreeProps {
|
|
159522
|
+
get usesGeometricError() {
|
|
159523
|
+
return undefined !== this.maximumScreenSpaceError;
|
|
159524
|
+
}
|
|
159520
159525
|
constructor(json, root, rdSource, tilesetToDbTransform, tilesetToEcef) {
|
|
159521
159526
|
this.tilesetToEcef = tilesetToEcef;
|
|
159522
159527
|
this.doDrapeBackgroundMap = false;
|
|
159523
159528
|
this.yAxisUp = false;
|
|
159524
159529
|
this.tilesetJson = root;
|
|
159525
|
-
this.
|
|
159530
|
+
this.dataSource = rdSource;
|
|
159526
159531
|
this.location = tilesetToDbTransform;
|
|
159527
159532
|
this.doDrapeBackgroundMap = (json.root && json.root.SMMasterHeader && SMTextureType.Streaming === json.root.SMMasterHeader.IsTextured);
|
|
159528
|
-
if (json.asset.gltfUpAxis === undefined || json.asset.gltfUpAxis === "y" || json.asset.gltfUpAxis === "Y")
|
|
159533
|
+
if (json.asset.gltfUpAxis === undefined || json.asset.gltfUpAxis === "y" || json.asset.gltfUpAxis === "Y") {
|
|
159529
159534
|
this.yAxisUp = true;
|
|
159535
|
+
}
|
|
159536
|
+
const maxSSE = json.asset.extras?.maximumScreenSpaceError;
|
|
159537
|
+
if (typeof maxSSE === "number") {
|
|
159538
|
+
this.maximumScreenSpaceError = json.asset.extras?.maximumScreenSpaceError;
|
|
159539
|
+
}
|
|
159540
|
+
else if (rdSource.usesGeometricError) {
|
|
159541
|
+
this.maximumScreenSpaceError = rdSource.maximumScreenSpaceError ?? 1;
|
|
159542
|
+
}
|
|
159530
159543
|
}
|
|
159531
159544
|
}
|
|
159532
159545
|
class RealityModelTileTreeParams {
|
|
@@ -159547,7 +159560,7 @@ class RealityModelTileTreeParams {
|
|
|
159547
159560
|
id: "",
|
|
159548
159561
|
// If not specified explicitly, additiveRefinement is inherited from parent tile.
|
|
159549
159562
|
additiveRefinement: undefined !== refine ? "ADD" === refine : undefined,
|
|
159550
|
-
usesGeometricError: loader.tree.
|
|
159563
|
+
usesGeometricError: loader.tree.usesGeometricError,
|
|
159551
159564
|
});
|
|
159552
159565
|
}
|
|
159553
159566
|
}
|
|
@@ -159665,7 +159678,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_8__.Real
|
|
|
159665
159678
|
get clipLowResolutionTiles() { return true; }
|
|
159666
159679
|
get viewFlagOverrides() { return this._viewFlagOverrides; }
|
|
159667
159680
|
get maximumScreenSpaceError() {
|
|
159668
|
-
return this.tree.
|
|
159681
|
+
return this.tree.maximumScreenSpaceError;
|
|
159669
159682
|
}
|
|
159670
159683
|
async loadChildren(tile) {
|
|
159671
159684
|
const props = await this.getChildrenProps(tile);
|
|
@@ -159694,7 +159707,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_8__.Real
|
|
|
159694
159707
|
transformToRoot: foundChild.transformToRoot,
|
|
159695
159708
|
// If not specified explicitly, additiveRefinement is inherited from parent tile.
|
|
159696
159709
|
additiveRefinement: undefined !== refine ? refine === "ADD" : undefined,
|
|
159697
|
-
usesGeometricError: this.tree.
|
|
159710
|
+
usesGeometricError: this.tree.usesGeometricError,
|
|
159698
159711
|
}));
|
|
159699
159712
|
}
|
|
159700
159713
|
}
|
|
@@ -159709,7 +159722,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_8__.Real
|
|
|
159709
159722
|
const foundChild = await this.findTileInJson(this.tree.tilesetJson, tile.contentId, "");
|
|
159710
159723
|
if (undefined === foundChild || undefined === foundChild.json.content || isCanceled())
|
|
159711
159724
|
return undefined;
|
|
159712
|
-
return this.tree.
|
|
159725
|
+
return this.tree.dataSource.getTileContent(getUrl(foundChild.json.content));
|
|
159713
159726
|
}
|
|
159714
159727
|
async findTileInJson(tilesetJson, id, parentId, transformToRoot) {
|
|
159715
159728
|
if (id.length === 0)
|
|
@@ -159730,7 +159743,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_8__.Real
|
|
|
159730
159743
|
if (separatorIndex >= 0) {
|
|
159731
159744
|
return this.findTileInJson(foundChild, id.substring(separatorIndex + 1), thisParentId, transformToRoot);
|
|
159732
159745
|
}
|
|
159733
|
-
tilesetJson.children[childIndex] = await expandSubTree(foundChild, this.tree.
|
|
159746
|
+
tilesetJson.children[childIndex] = await expandSubTree(foundChild, this.tree.dataSource);
|
|
159734
159747
|
return new FindChildResult(thisParentId, tilesetJson.children[childIndex], transformToRoot);
|
|
159735
159748
|
}
|
|
159736
159749
|
}
|
|
@@ -160013,7 +160026,7 @@ class RealityTreeReference extends RealityModelTileTree.Reference {
|
|
|
160013
160026
|
return undefined;
|
|
160014
160027
|
const strings = [];
|
|
160015
160028
|
const loader = tree.loader;
|
|
160016
|
-
const type = loader.tree.
|
|
160029
|
+
const type = loader.tree.dataSource.realityDataType;
|
|
160017
160030
|
// If a type is specified, display it
|
|
160018
160031
|
if (type !== undefined) {
|
|
160019
160032
|
// Case insensitive
|
|
@@ -165025,6 +165038,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
165025
165038
|
/* harmony export */ "QuadId": () => (/* reexport safe */ _map_QuadId__WEBPACK_IMPORTED_MODULE_2__.QuadId),
|
|
165026
165039
|
/* harmony export */ "ReadonlyTileUserSet": () => (/* reexport safe */ _TileUserSet__WEBPACK_IMPORTED_MODULE_29__.ReadonlyTileUserSet),
|
|
165027
165040
|
/* harmony export */ "RealityModelTileTree": () => (/* reexport safe */ _RealityModelTileTree__WEBPACK_IMPORTED_MODULE_76__.RealityModelTileTree),
|
|
165041
|
+
/* harmony export */ "RealityModelTileTreeProps": () => (/* reexport safe */ _RealityModelTileTree__WEBPACK_IMPORTED_MODULE_76__.RealityModelTileTreeProps),
|
|
165028
165042
|
/* harmony export */ "RealityModelTileUtils": () => (/* reexport safe */ _RealityModelTileTree__WEBPACK_IMPORTED_MODULE_76__.RealityModelTileUtils),
|
|
165029
165043
|
/* harmony export */ "RealityTile": () => (/* reexport safe */ _RealityTile__WEBPACK_IMPORTED_MODULE_6__.RealityTile),
|
|
165030
165044
|
/* harmony export */ "RealityTileDrawArgs": () => (/* reexport safe */ _RealityTileDrawArgs__WEBPACK_IMPORTED_MODULE_10__.RealityTileDrawArgs),
|
|
@@ -303163,7 +303177,7 @@ class TestContext {
|
|
|
303163
303177
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
303164
303178
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
303165
303179
|
await core_frontend_1.NoRenderApp.startup({
|
|
303166
|
-
applicationVersion: "4.11.
|
|
303180
|
+
applicationVersion: "4.11.6",
|
|
303167
303181
|
applicationId: this.settings.gprid,
|
|
303168
303182
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
303169
303183
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -303675,6 +303689,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
303675
303689
|
/* harmony export */ "RelationshipPath": () => (/* binding */ RelationshipPath)
|
|
303676
303690
|
/* harmony export */ });
|
|
303677
303691
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
303692
|
+
/* harmony import */ var _itwin_presentation_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/presentation-shared */ "../../common/temp/node_modules/.pnpm/@itwin+presentation-shared@1.2.1/node_modules/@itwin/presentation-shared/lib/esm/presentation-shared.js");
|
|
303678
303693
|
/*---------------------------------------------------------------------------------------------
|
|
303679
303694
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
303680
303695
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -303683,16 +303698,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
303683
303698
|
* @module Core
|
|
303684
303699
|
*/
|
|
303685
303700
|
|
|
303701
|
+
|
|
303686
303702
|
/** @public */
|
|
303687
303703
|
var InstanceKey;
|
|
303688
303704
|
(function (InstanceKey) {
|
|
303689
303705
|
/** Compare 2 instance keys */
|
|
303690
303706
|
function compare(lhs, rhs) {
|
|
303691
|
-
const
|
|
303707
|
+
const lhsClass = (0,_itwin_presentation_shared__WEBPACK_IMPORTED_MODULE_1__.parseFullClassName)(lhs.className);
|
|
303708
|
+
const rhsClass = (0,_itwin_presentation_shared__WEBPACK_IMPORTED_MODULE_1__.parseFullClassName)(rhs.className);
|
|
303709
|
+
const schemaNameCompare = lhsClass.schemaName.toLowerCase().localeCompare(rhsClass.schemaName.toLowerCase());
|
|
303710
|
+
if (schemaNameCompare !== 0) {
|
|
303711
|
+
return schemaNameCompare;
|
|
303712
|
+
}
|
|
303713
|
+
const classNameCompare = lhsClass.className.toLowerCase().localeCompare(rhsClass.className.toLowerCase());
|
|
303692
303714
|
if (classNameCompare !== 0) {
|
|
303693
303715
|
return classNameCompare;
|
|
303694
303716
|
}
|
|
303695
|
-
return lhs.id.localeCompare(rhs.id);
|
|
303717
|
+
return lhs.id.toLowerCase().localeCompare(rhs.id.toLowerCase());
|
|
303696
303718
|
}
|
|
303697
303719
|
InstanceKey.compare = compare;
|
|
303698
303720
|
/**
|
|
@@ -330768,7 +330790,7 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
|
330768
330790
|
/***/ ((module) => {
|
|
330769
330791
|
|
|
330770
330792
|
"use strict";
|
|
330771
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.11.
|
|
330793
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.11.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 && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","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","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./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","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","test:debug":"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:^4.11.6","@itwin/core-bentley":"workspace:^4.11.6","@itwin/core-common":"workspace:^4.11.6","@itwin/core-geometry":"workspace:^4.11.6","@itwin/core-orbitgt":"workspace:^4.11.6","@itwin/core-quantity":"workspace:^4.11.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/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^3.0.5","@vitest/coverage-v8":"^3.0.5","cpx2":"^3.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.5","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","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/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.3.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","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
|
|
330772
330794
|
|
|
330773
330795
|
/***/ }),
|
|
330774
330796
|
|