@itwin/rpcinterface-full-stack-tests 4.0.0-dev.63 → 4.0.0-dev.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dist/_d48c.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +47 -9
- 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_5_0_node_modules_itwin_obj-e3e81d.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_1_node_modules_loaders_gl_draco_di-d3af41.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 +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\
|
|
1
|
+
{"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\13\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.3.1\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -61961,27 +61961,63 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61961
61961
|
* @module Geometry
|
|
61962
61962
|
*/
|
|
61963
61963
|
|
|
61964
|
+
/*
|
|
61965
|
+
The following visualizes the contents of frustum.points, which is sent to computeFrustumPlanes().
|
|
61966
|
+
The below numbers are the indices into that array.
|
|
61967
|
+
|
|
61968
|
+
2----------3
|
|
61969
|
+
/| /|
|
|
61970
|
+
/ 0--------/-1
|
|
61971
|
+
6----------7 /
|
|
61972
|
+
| / | /
|
|
61973
|
+
|/ |/
|
|
61974
|
+
4__________5
|
|
61975
|
+
|
|
61976
|
+
0 = left bottom rear
|
|
61977
|
+
1 = right bottom rear
|
|
61978
|
+
2 = left top right
|
|
61979
|
+
3 = right top rear
|
|
61980
|
+
4 = left bottom front
|
|
61981
|
+
5 = right bottom front
|
|
61982
|
+
6 = left top front
|
|
61983
|
+
7 = right top front
|
|
61984
|
+
*/
|
|
61985
|
+
// Ordering of sub-arrays is: [origin, a, b]
|
|
61964
61986
|
const planePointIndices = [
|
|
61965
|
-
[1,
|
|
61966
|
-
[0,
|
|
61967
|
-
[2,
|
|
61968
|
-
[0,
|
|
61969
|
-
[0,
|
|
61970
|
-
|
|
61987
|
+
[1, 5, 3],
|
|
61988
|
+
[0, 2, 4],
|
|
61989
|
+
[2, 3, 6],
|
|
61990
|
+
[0, 4, 1],
|
|
61991
|
+
[0, 1, 2], // back
|
|
61992
|
+
// Skip front plane because it can be too small. Instead derive it from back plane.
|
|
61993
|
+
// Otherwise, it would be: [4, 6, 5]
|
|
61971
61994
|
];
|
|
61972
61995
|
function computeFrustumPlanes(frustum) {
|
|
61973
61996
|
const planes = [];
|
|
61974
61997
|
const points = frustum.points;
|
|
61975
61998
|
const expandPlaneDistance = 1e-6;
|
|
61999
|
+
let normal;
|
|
61976
62000
|
for (const indices of planePointIndices) {
|
|
61977
62001
|
const i0 = indices[0], i1 = indices[1], i2 = indices[2];
|
|
61978
|
-
|
|
62002
|
+
normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createCrossProductToPoints(points[i0], points[i1], points[i2]);
|
|
61979
62003
|
normal.normalizeInPlace();
|
|
61980
62004
|
const plane = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.ClipPlane.createNormalAndDistance(normal, normal.dotProduct(points[i0]) - expandPlaneDistance);
|
|
61981
62005
|
if (!plane)
|
|
61982
62006
|
return [];
|
|
61983
62007
|
planes.push(plane);
|
|
61984
62008
|
}
|
|
62009
|
+
// Derive front plane from back plane due to fact that front plane can become very tiny and cause precision issues, resulting in zero frustum planes. Deriving the front plane from the rear rect resolves this problem.
|
|
62010
|
+
// The back plane was the last plane processed above, so we can just consult the current value of `normal`.
|
|
62011
|
+
if (undefined !== normal) {
|
|
62012
|
+
normal.negate(normal); // negate the back plane
|
|
62013
|
+
// NB: Below, we make sure we calculate the distance based on a point on the front rect, not the rear rect!
|
|
62014
|
+
const plane = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.ClipPlane.createNormalAndDistance(normal, normal.dotProduct(points[4]) - expandPlaneDistance);
|
|
62015
|
+
if (!plane)
|
|
62016
|
+
return [];
|
|
62017
|
+
planes.push(plane);
|
|
62018
|
+
}
|
|
62019
|
+
else
|
|
62020
|
+
return [];
|
|
61985
62021
|
return planes;
|
|
61986
62022
|
}
|
|
61987
62023
|
// Scratch variable used by FrustumPlanes.computeContainment.
|
|
@@ -61997,6 +62033,7 @@ class FrustumPlanes {
|
|
|
61997
62033
|
}
|
|
61998
62034
|
/** Compute the six planes of the specified frustum.
|
|
61999
62035
|
* If the frustum is degenerate - that is, its points do not represent a truncated pyramid - then the returned `FrustumPlanes` will contain zero planes.
|
|
62036
|
+
* @note This method assumes that the front plane is parallel to the back plane.
|
|
62000
62037
|
* @see [[isValid]] to test this condition.
|
|
62001
62038
|
*/
|
|
62002
62039
|
static fromFrustum(frustum) {
|
|
@@ -62023,6 +62060,7 @@ class FrustumPlanes {
|
|
|
62023
62060
|
}
|
|
62024
62061
|
/** Recompute the planes from the specified frustum.
|
|
62025
62062
|
* @returns true upon success, or false if the input frustum was degenerate, in which case [[isValid]] will be `false`.
|
|
62063
|
+
* @note This method assumes that the front plane is parallel to the back plane.
|
|
62026
62064
|
*/
|
|
62027
62065
|
init(frustum) {
|
|
62028
62066
|
this._planes = computeFrustumPlanes(frustum);
|
|
@@ -281396,7 +281434,7 @@ class TestContext {
|
|
|
281396
281434
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
281397
281435
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
281398
281436
|
await core_frontend_1.NoRenderApp.startup({
|
|
281399
|
-
applicationVersion: "4.0.0-dev.
|
|
281437
|
+
applicationVersion: "4.0.0-dev.66",
|
|
281400
281438
|
applicationId: this.settings.gprid,
|
|
281401
281439
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
281402
281440
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -300969,7 +301007,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
300969
301007
|
/***/ ((module) => {
|
|
300970
301008
|
|
|
300971
301009
|
"use strict";
|
|
300972
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.
|
|
301010
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.66","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && 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.66","@itwin/core-bentley":"workspace:^4.0.0-dev.66","@itwin/core-common":"workspace:^4.0.0-dev.66","@itwin/core-geometry":"workspace:^4.0.0-dev.66","@itwin/core-orbitgt":"workspace:^4.0.0-dev.66","@itwin/core-quantity":"workspace:^4.0.0-dev.66"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"^4.0.0-dev.32","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.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":"~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","deep-assign":"^2.0.0","fuse.js":"^3.3.0","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"}}]}}');
|
|
300973
301011
|
|
|
300974
301012
|
/***/ }),
|
|
300975
301013
|
|