@itwin/rpcinterface-full-stack-tests 4.0.0-dev.89 → 4.0.0-dev.91
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/_a8a9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +217 -101
- 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_6_0_node_modules_itwin_obj-0f69b1.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_3_node_modules_loaders_gl_draco_di-28f62e.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 +18 -18
|
@@ -65,10 +65,10 @@ exports.executeBackendCallback = executeBackendCallback;
|
|
|
65
65
|
|
|
66
66
|
/***/ }),
|
|
67
67
|
|
|
68
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
69
|
-
|
|
70
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
71
|
-
|
|
68
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0_ueafa4slb6ohrhyf7kbp6egmha/node_modules/@itwin/imodels-access-frontend/lib/esm/FrontendIModelsAccess.js":
|
|
69
|
+
/*!*****************************************************************************************************************************************************************************************!*\
|
|
70
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0_ueafa4slb6ohrhyf7kbp6egmha/node_modules/@itwin/imodels-access-frontend/lib/esm/FrontendIModelsAccess.js ***!
|
|
71
|
+
\*****************************************************************************************************************************************************************************************/
|
|
72
72
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
73
73
|
|
|
74
74
|
"use strict";
|
|
@@ -80,7 +80,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
80
80
|
/* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
81
81
|
/* harmony import */ var _itwin_core_frontend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
82
82
|
/* harmony import */ var _itwin_imodels_client_management__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@3.0.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js");
|
|
83
|
-
/* harmony import */ var _interface_adapters_AccessTokenAdapter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./interface-adapters/AccessTokenAdapter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
83
|
+
/* harmony import */ var _interface_adapters_AccessTokenAdapter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./interface-adapters/AccessTokenAdapter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0_ueafa4slb6ohrhyf7kbp6egmha/node_modules/@itwin/imodels-access-frontend/lib/esm/interface-adapters/AccessTokenAdapter.js");
|
|
84
84
|
/*---------------------------------------------------------------------------------------------
|
|
85
85
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
86
86
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -186,10 +186,10 @@ class FrontendIModelsAccess {
|
|
|
186
186
|
|
|
187
187
|
/***/ }),
|
|
188
188
|
|
|
189
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
190
|
-
|
|
191
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
192
|
-
|
|
189
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0_ueafa4slb6ohrhyf7kbp6egmha/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js":
|
|
190
|
+
/*!*************************************************************************************************************************************************************************!*\
|
|
191
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0_ueafa4slb6ohrhyf7kbp6egmha/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js ***!
|
|
192
|
+
\*************************************************************************************************************************************************************************/
|
|
193
193
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
194
194
|
|
|
195
195
|
"use strict";
|
|
@@ -198,8 +198,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
198
198
|
/* harmony export */ "AccessTokenAdapter": () => (/* reexport safe */ _interface_adapters_AccessTokenAdapter__WEBPACK_IMPORTED_MODULE_0__.AccessTokenAdapter),
|
|
199
199
|
/* harmony export */ "FrontendIModelsAccess": () => (/* reexport safe */ _FrontendIModelsAccess__WEBPACK_IMPORTED_MODULE_1__.FrontendIModelsAccess)
|
|
200
200
|
/* harmony export */ });
|
|
201
|
-
/* harmony import */ var _interface_adapters_AccessTokenAdapter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interface-adapters/AccessTokenAdapter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
202
|
-
/* harmony import */ var _FrontendIModelsAccess__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FrontendIModelsAccess */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
201
|
+
/* harmony import */ var _interface_adapters_AccessTokenAdapter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interface-adapters/AccessTokenAdapter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0_ueafa4slb6ohrhyf7kbp6egmha/node_modules/@itwin/imodels-access-frontend/lib/esm/interface-adapters/AccessTokenAdapter.js");
|
|
202
|
+
/* harmony import */ var _FrontendIModelsAccess__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FrontendIModelsAccess */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0_ueafa4slb6ohrhyf7kbp6egmha/node_modules/@itwin/imodels-access-frontend/lib/esm/FrontendIModelsAccess.js");
|
|
203
203
|
/*---------------------------------------------------------------------------------------------
|
|
204
204
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
205
205
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -210,10 +210,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
210
210
|
|
|
211
211
|
/***/ }),
|
|
212
212
|
|
|
213
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
214
|
-
|
|
215
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
216
|
-
|
|
213
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0_ueafa4slb6ohrhyf7kbp6egmha/node_modules/@itwin/imodels-access-frontend/lib/esm/interface-adapters/AccessTokenAdapter.js":
|
|
214
|
+
/*!*********************************************************************************************************************************************************************************************************!*\
|
|
215
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0_ueafa4slb6ohrhyf7kbp6egmha/node_modules/@itwin/imodels-access-frontend/lib/esm/interface-adapters/AccessTokenAdapter.js ***!
|
|
216
|
+
\*********************************************************************************************************************************************************************************************************/
|
|
217
217
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
218
218
|
|
|
219
219
|
"use strict";
|
|
@@ -2661,10 +2661,10 @@ class UserOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.Operati
|
|
|
2661
2661
|
|
|
2662
2662
|
/***/ }),
|
|
2663
2663
|
|
|
2664
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
2665
|
-
|
|
2666
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
2667
|
-
|
|
2664
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/TestFrontendAuthorizationClient.js":
|
|
2665
|
+
/*!*************************************************************************************************************************************************************************************!*\
|
|
2666
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/TestFrontendAuthorizationClient.js ***!
|
|
2667
|
+
\*************************************************************************************************************************************************************************************/
|
|
2668
2668
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2669
2669
|
|
|
2670
2670
|
"use strict";
|
|
@@ -2719,10 +2719,10 @@ exports.TestFrontendAuthorizationClient = TestFrontendAuthorizationClient;
|
|
|
2719
2719
|
|
|
2720
2720
|
/***/ }),
|
|
2721
2721
|
|
|
2722
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
2723
|
-
|
|
2724
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
2725
|
-
|
|
2722
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/TestUsers.js":
|
|
2723
|
+
/*!***************************************************************************************************************************************************************!*\
|
|
2724
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/TestUsers.js ***!
|
|
2725
|
+
\***************************************************************************************************************************************************************/
|
|
2726
2726
|
/***/ ((__unused_webpack_module, exports) => {
|
|
2727
2727
|
|
|
2728
2728
|
"use strict";
|
|
@@ -2799,10 +2799,10 @@ exports.TestUsers = TestUsers;
|
|
|
2799
2799
|
|
|
2800
2800
|
/***/ }),
|
|
2801
2801
|
|
|
2802
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
2803
|
-
|
|
2804
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
2805
|
-
|
|
2802
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/certa/certaCommon.js":
|
|
2803
|
+
/*!***********************************************************************************************************************************************************************!*\
|
|
2804
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/certa/certaCommon.js ***!
|
|
2805
|
+
\***********************************************************************************************************************************************************************/
|
|
2806
2806
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2807
2807
|
|
|
2808
2808
|
"use strict";
|
|
@@ -2825,10 +2825,10 @@ exports.getAccessTokenFromBackend = getAccessTokenFromBackend;
|
|
|
2825
2825
|
|
|
2826
2826
|
/***/ }),
|
|
2827
2827
|
|
|
2828
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
2829
|
-
|
|
2830
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
2831
|
-
|
|
2828
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/frontend.js":
|
|
2829
|
+
/*!**************************************************************************************************************************************************************!*\
|
|
2830
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/frontend.js ***!
|
|
2831
|
+
\**************************************************************************************************************************************************************/
|
|
2832
2832
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2833
2833
|
|
|
2834
2834
|
"use strict";
|
|
@@ -2848,9 +2848,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
2848
2848
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2849
2849
|
};
|
|
2850
2850
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2851
|
-
__exportStar(__webpack_require__(/*! ./TestUsers */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
2852
|
-
__exportStar(__webpack_require__(/*! ./TestFrontendAuthorizationClient */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
2853
|
-
__exportStar(__webpack_require__(/*! ./certa/certaCommon */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
2851
|
+
__exportStar(__webpack_require__(/*! ./TestUsers */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/TestUsers.js"), exports);
|
|
2852
|
+
__exportStar(__webpack_require__(/*! ./TestFrontendAuthorizationClient */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/TestFrontendAuthorizationClient.js"), exports);
|
|
2853
|
+
__exportStar(__webpack_require__(/*! ./certa/certaCommon */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/certa/certaCommon.js"), exports);
|
|
2854
2854
|
//# sourceMappingURL=frontend.js.map
|
|
2855
2855
|
|
|
2856
2856
|
/***/ }),
|
|
@@ -175098,6 +175098,8 @@ Geometry.smallAngleDegrees = 5.7e-11;
|
|
|
175098
175098
|
Geometry.smallAngleSeconds = 2e-7;
|
|
175099
175099
|
/** Numeric value that may be considered zero for fractions between 0 and 1. */
|
|
175100
175100
|
Geometry.smallFraction = 1.0e-10;
|
|
175101
|
+
/** Tight tolerance near machine precision (unitless). Useful for snapping values, e.g., to 0 or 1. */
|
|
175102
|
+
Geometry.smallFloatingPoint = 1.0e-15;
|
|
175101
175103
|
/** Radians value for full circle 2PI radians minus `smallAngleRadians`. */
|
|
175102
175104
|
Geometry.fullCircleRadiansMinusSmallAngle = 2.0 * Math.PI - Geometry.smallAngleRadians;
|
|
175103
175105
|
/**
|
|
@@ -203952,7 +203954,7 @@ class Angle {
|
|
|
203952
203954
|
}
|
|
203953
203955
|
}
|
|
203954
203956
|
/** If value is close to -1, -0.5, 0, 0.5, 1, adjust it to the exact value. */
|
|
203955
|
-
static cleanupTrigValue(value, tolerance =
|
|
203957
|
+
static cleanupTrigValue(value, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallFloatingPoint) {
|
|
203956
203958
|
const absValue = Math.abs(value);
|
|
203957
203959
|
if (absValue <= tolerance)
|
|
203958
203960
|
return 0;
|
|
@@ -204693,6 +204695,10 @@ class BarycentricTriangle {
|
|
|
204693
204695
|
clone(result) {
|
|
204694
204696
|
return BarycentricTriangle.create(this.points[0], this.points[1], this.points[2], result);
|
|
204695
204697
|
}
|
|
204698
|
+
/** Return a clone of the transformed instance */
|
|
204699
|
+
cloneTransformed(transform, result) {
|
|
204700
|
+
return BarycentricTriangle.create(transform.multiplyPoint3d(this.points[0], result?.points[0]), transform.multiplyPoint3d(this.points[1], result?.points[1]), transform.multiplyPoint3d(this.points[2], result?.points[2]), result);
|
|
204701
|
+
}
|
|
204696
204702
|
/** Return the area of the triangle. */
|
|
204697
204703
|
get area() {
|
|
204698
204704
|
// The magnitude of the cross product A × B is the area of the parallelogram spanned by A and B.
|
|
@@ -204995,11 +205001,13 @@ class BarycentricTriangle {
|
|
|
204995
205001
|
*/
|
|
204996
205002
|
intersectRay3d(ray, result) {
|
|
204997
205003
|
result = TriangleLocationDetail.create(result);
|
|
204998
|
-
|
|
204999
|
-
|
|
205000
|
-
|
|
205001
|
-
|
|
205002
|
-
|
|
205004
|
+
/**
|
|
205005
|
+
* Let r0 = ray.origin and d = ray.direction. Write intersection point p two ways for unknown scalars s,b0,b1,b2:
|
|
205006
|
+
* r0 + s*d = p = b0*v0 + b1*v1 + b2*v2
|
|
205007
|
+
* Subtract v0 from both ends, let u=v1-v0, v=v2-v0, c=r0-v0, and enforce b0+b1+b2=1:
|
|
205008
|
+
* b1*u + b2*v - s*d = c
|
|
205009
|
+
* This is a linear system Mx = c where M has columns u,v,d and solution x=(b1,b2,-s).
|
|
205010
|
+
*/
|
|
205003
205011
|
const r0 = ray.origin;
|
|
205004
205012
|
const d = ray.direction;
|
|
205005
205013
|
const u = BarycentricTriangle._workVector0 = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createStartEnd(this.points[0], this.points[1], BarycentricTriangle._workVector0);
|
|
@@ -205009,9 +205017,9 @@ class BarycentricTriangle {
|
|
|
205009
205017
|
const solution = BarycentricTriangle._workVector1; // reuse workVector1
|
|
205010
205018
|
if (undefined === M.multiplyInverse(c, solution))
|
|
205011
205019
|
return result; // invalid
|
|
205012
|
-
result.a = -solution.z;
|
|
205020
|
+
result.a = -solution.z; // = -(-s) = s
|
|
205013
205021
|
ray.fractionToPoint(result.a, result.world);
|
|
205014
|
-
result.local.set(1.0 - solution.x - solution.y, solution.x, solution.y);
|
|
205022
|
+
result.local.set(1.0 - solution.x - solution.y, solution.x, solution.y); // = (1 - b1 - b2, b1, b2) = (b0 , b1, b2)
|
|
205015
205023
|
const proj = this.closestPoint(result.local.x, result.local.y, result.local.z);
|
|
205016
205024
|
result.closestEdgeIndex = proj.closestEdgeIndex;
|
|
205017
205025
|
result.closestEdgeParam = proj.closestEdgeParam;
|
|
@@ -205040,7 +205048,7 @@ class BarycentricTriangle {
|
|
|
205040
205048
|
* @param parameterTolerance barycentric coordinate fractional tolerance (or zero to ignore)
|
|
205041
205049
|
* @return whether the location was adjusted
|
|
205042
205050
|
*/
|
|
205043
|
-
snapLocationToEdge(location, distanceTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance, parameterTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.
|
|
205051
|
+
snapLocationToEdge(location, distanceTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance, parameterTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallFloatingPoint) {
|
|
205044
205052
|
if (!location.isValid)
|
|
205045
205053
|
return false;
|
|
205046
205054
|
// first try parametric tol to zero barycentric coordinate (no vertices or world distances used!)
|
|
@@ -209055,7 +209063,7 @@ class GrowableXYZArray extends _IndexedXYZCollection__WEBPACK_IMPORTED_MODULE_0_
|
|
|
209055
209063
|
if (!matrix.computeCachedInverse(true))
|
|
209056
209064
|
return false;
|
|
209057
209065
|
const coffs = matrix.inverseCoffs;
|
|
209058
|
-
const tol =
|
|
209066
|
+
const tol = _Geometry__WEBPACK_IMPORTED_MODULE_3__.Geometry.smallFloatingPoint;
|
|
209059
209067
|
let x = 0;
|
|
209060
209068
|
let y = 0;
|
|
209061
209069
|
let z = 0;
|
|
@@ -210968,7 +210976,7 @@ class Matrix3d {
|
|
|
210968
210976
|
const sii = lambda.at(i, i);
|
|
210969
210977
|
const sjj = lambda.at(j, j);
|
|
210970
210978
|
const sij = lambda.at(i, j);
|
|
210971
|
-
if (Math.abs(sij) <
|
|
210979
|
+
if (Math.abs(sij) < _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallFloatingPoint * (sii + sjj))
|
|
210972
210980
|
return 0.0;
|
|
210973
210981
|
const jacobi = _Angle__WEBPACK_IMPORTED_MODULE_1__.Angle.trigValuesToHalfAngleTrigValues(sii - sjj, 2.0 * sij);
|
|
210974
210982
|
const c = jacobi.c;
|
|
@@ -211048,7 +211056,7 @@ class Matrix3d {
|
|
|
211048
211056
|
const sii = this.coffs[indexII];
|
|
211049
211057
|
const sjj = this.coffs[indexJJ];
|
|
211050
211058
|
const sij = this.coffs[indexIJ];
|
|
211051
|
-
if (Math.abs(sij) <
|
|
211059
|
+
if (Math.abs(sij) < _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallFloatingPoint * (sii + sjj))
|
|
211052
211060
|
return 0.0;
|
|
211053
211061
|
const jacobi = _Angle__WEBPACK_IMPORTED_MODULE_1__.Angle.trigValuesToHalfAngleTrigValues(sii - sjj, 2.0 * sij);
|
|
211054
211062
|
const c = jacobi.c;
|
|
@@ -211243,7 +211251,7 @@ class Matrix3d {
|
|
|
211243
211251
|
const det = matrixVD.determinant();
|
|
211244
211252
|
if (det < 0)
|
|
211245
211253
|
scale.z = -scale.z;
|
|
211246
|
-
const almostZero =
|
|
211254
|
+
const almostZero = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallFloatingPoint;
|
|
211247
211255
|
const scaleXIsZero = Math.abs(scale.x) < almostZero;
|
|
211248
211256
|
const scaleYIsZero = Math.abs(scale.y) < almostZero;
|
|
211249
211257
|
const scaleZIsZero = Math.abs(scale.z) < almostZero;
|
|
@@ -211546,6 +211554,20 @@ class Matrix3d {
|
|
|
211546
211554
|
}
|
|
211547
211555
|
return Matrix3d.createUniformScale(scale);
|
|
211548
211556
|
}
|
|
211557
|
+
/**
|
|
211558
|
+
* Multiply `matrix * point`, treating the point as a column vector on the right.
|
|
211559
|
+
* ```
|
|
211560
|
+
* equation
|
|
211561
|
+
* \matrixXY{A}\columnSubXYZ{U}
|
|
211562
|
+
* ```
|
|
211563
|
+
* @return the point result
|
|
211564
|
+
*/
|
|
211565
|
+
multiplyPoint(point, result) {
|
|
211566
|
+
const x = point.x;
|
|
211567
|
+
const y = point.y;
|
|
211568
|
+
const z = point.z;
|
|
211569
|
+
return _Point3dVector3d__WEBPACK_IMPORTED_MODULE_2__.Point3d.create(this.coffs[0] * x + this.coffs[1] * y + this.coffs[2] * z, this.coffs[3] * x + this.coffs[4] * y + this.coffs[5] * z, this.coffs[6] * x + this.coffs[7] * y + this.coffs[8] * z, result);
|
|
211570
|
+
}
|
|
211549
211571
|
/**
|
|
211550
211572
|
* Multiply `matrix * vector`, treating the vector is a column vector on the right.
|
|
211551
211573
|
* ```
|
|
@@ -221152,6 +221174,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
221152
221174
|
|
|
221153
221175
|
|
|
221154
221176
|
|
|
221177
|
+
// cspell:word Cramer
|
|
221155
221178
|
/**
|
|
221156
221179
|
* A Ray3d contains
|
|
221157
221180
|
* * an `origin` point.
|
|
@@ -221328,17 +221351,15 @@ class Ray3d {
|
|
|
221328
221351
|
}
|
|
221329
221352
|
return new Ray3d(this.origin.clone(), this.direction.clone());
|
|
221330
221353
|
}
|
|
221331
|
-
/**
|
|
221332
|
-
cloneTransformed(transform) {
|
|
221333
|
-
return
|
|
221354
|
+
/** Return a clone of the transformed instance */
|
|
221355
|
+
cloneTransformed(transform, result) {
|
|
221356
|
+
return Ray3d.create(transform.multiplyPoint3d(this.origin, result?.origin), transform.multiplyVector(this.direction, result?.direction), result);
|
|
221334
221357
|
}
|
|
221335
221358
|
/** Create a clone and return the inverse transform of the clone. */
|
|
221336
|
-
cloneInverseTransformed(transform) {
|
|
221337
|
-
|
|
221338
|
-
|
|
221339
|
-
|
|
221340
|
-
return new Ray3d(origin, direction);
|
|
221341
|
-
return undefined;
|
|
221359
|
+
cloneInverseTransformed(transform, result) {
|
|
221360
|
+
if (!transform.computeCachedInverse(true))
|
|
221361
|
+
return undefined;
|
|
221362
|
+
return Ray3d.create(transform.multiplyInversePoint3d(this.origin, result?.origin), transform.matrix.multiplyInverseXYZAsVector3d(this.direction.x, this.direction.y, this.direction.z, result?.direction), result);
|
|
221342
221363
|
}
|
|
221343
221364
|
/** Apply a transform in place. */
|
|
221344
221365
|
transformInPlace(transform) {
|
|
@@ -221473,6 +221494,101 @@ class Ray3d {
|
|
|
221473
221494
|
return interval;
|
|
221474
221495
|
return interval;
|
|
221475
221496
|
}
|
|
221497
|
+
/**
|
|
221498
|
+
* Compute the intersection of the ray with a triangle.
|
|
221499
|
+
* @param vertex0 first vertex of the triangle
|
|
221500
|
+
* @param vertex1 second vertex of the triangle
|
|
221501
|
+
* @param vertex2 third vertex of the triangle
|
|
221502
|
+
* @param distanceTol optional tolerance used to check if ray is parallel to the triangle or if we have line
|
|
221503
|
+
* intersection but not ray intersection (if tolerance is not provided, Geometry.smallMetricDistance is used)
|
|
221504
|
+
* @param parameterTol optional tolerance used to snap barycentric coordinates of the intersection point to
|
|
221505
|
+
* a triangle edge or vertex (if tolerance is not provided, Geometry.smallFloatingPoint is used)
|
|
221506
|
+
* @param result optional pre-allocated object to fill and return
|
|
221507
|
+
* @returns the intersection point if ray intersects the triangle. Otherwise, return undefined.
|
|
221508
|
+
*/
|
|
221509
|
+
intersectionWithTriangle(vertex0, vertex1, vertex2, distanceTol, parameterTol, result) {
|
|
221510
|
+
/**
|
|
221511
|
+
* Suppose ray is shown by "rayOrigin + t*rayVector" and barycentric coordinate of point
|
|
221512
|
+
* P = w*v0 + u*v1 + v*v2 = (1-u-v)*v0 + u*v1 + v*v2 = v0 + u*(v1-v0) + v*(v2-v0)
|
|
221513
|
+
*
|
|
221514
|
+
* Then if ray intersects triangle at a point we have
|
|
221515
|
+
* v0 + u*(v1-v0) + v*(v2-v0) = rayOrigin + t*rayVector
|
|
221516
|
+
* or
|
|
221517
|
+
* -t*rayVector + u*(v1-v0) + v*(v2-v0) = rayOrigin - v0
|
|
221518
|
+
*
|
|
221519
|
+
* This equation can be reformulated as the following linear system:
|
|
221520
|
+
*
|
|
221521
|
+
* [ | | | ] [t] [ | ]
|
|
221522
|
+
* [-rayVector v1-v0 v2-v0] [u] = [rayOrigin - v0]
|
|
221523
|
+
* [ | | | ] [v] [ | ]
|
|
221524
|
+
*
|
|
221525
|
+
* Then to find t, u, and v use Cramer's Rule and also the fact that if matrix A = [c1,c2,c3], then
|
|
221526
|
+
* det(A) = c1.(c2 x c3) which leads to
|
|
221527
|
+
*
|
|
221528
|
+
* t = [(rayOrigin - v0).((v1-v0) x (v2-v0))] / [-rayVector.((v1-v0) x (v2-v0))]
|
|
221529
|
+
* u = [-rayVector.((rayOrigin - v0) x (v2-v0))] / [-rayVector.((v1-v0) x (v2-v0))]
|
|
221530
|
+
* v = [-rayVector.((v1-v0) x (rayOrigin - v0))] / [-rayVector.((v1-v0) x (v2-v0))]
|
|
221531
|
+
*
|
|
221532
|
+
* Now note that swapping any 2 vectors c_i and c_j in formula c1.(c2 x c3) negates it. For example:
|
|
221533
|
+
* c1.(c2 x c3) = -c3.(c2 x c1) = c2.(c3 x c1)
|
|
221534
|
+
*
|
|
221535
|
+
* This leads to the final formulas used in the following code:
|
|
221536
|
+
* t = [(v2-v0).((rayOrigin - v0) x (v1-v0))] / [(v1-v0).(rayVector x (v2-v0))]
|
|
221537
|
+
* u = [(rayOrigin - v0).(rayVector x (v2-v0))] / [(v1-v0).(rayVector x (v2-v0))]
|
|
221538
|
+
* v = [-rayVector.((rayOrigin - v0) x (v1-v0))] / [(v1-v0).(rayVector x (v2-v0))]
|
|
221539
|
+
*
|
|
221540
|
+
* Note that we should verify 0 <= u,v,w <= 1. To do so we only need to check 0 <= u <= 1, 0 <= v, and u+v <= 1.
|
|
221541
|
+
* That's because w = 1-(u+v) and if we have those 4 checks, it's guaranteed that v <= 1 and 0 <= u+v and so
|
|
221542
|
+
* 0 <= w <= 1.
|
|
221543
|
+
*
|
|
221544
|
+
* More info be found at
|
|
221545
|
+
* https://en.wikipedia.org/wiki/M%C3%B6ller%E2%80%93Trumbore_intersection_algorithm
|
|
221546
|
+
*/
|
|
221547
|
+
if (distanceTol === undefined || distanceTol < 0) // we explicitly allow zero tolerance
|
|
221548
|
+
distanceTol = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.smallMetricDistance;
|
|
221549
|
+
if (parameterTol === undefined || parameterTol < 0) // we explicitly allow zero tolerance
|
|
221550
|
+
parameterTol = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.smallFloatingPoint;
|
|
221551
|
+
const edge1 = Ray3d._workVector0 = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(vertex0, vertex1, Ray3d._workVector0);
|
|
221552
|
+
const edge2 = Ray3d._workVector1 = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(vertex0, vertex2, Ray3d._workVector1);
|
|
221553
|
+
const h = Ray3d._workVector2 = this.direction.crossProduct(edge2, Ray3d._workVector2);
|
|
221554
|
+
const a = edge1.dotProduct(h);
|
|
221555
|
+
if (a >= -distanceTol && a <= distanceTol)
|
|
221556
|
+
return undefined; // ray is parallel to the triangle (includes coplanar case)
|
|
221557
|
+
const f = 1.0 / a;
|
|
221558
|
+
const s = Ray3d._workVector3 = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(vertex0, this.origin, Ray3d._workVector3);
|
|
221559
|
+
let u = f * s.dotProduct(h);
|
|
221560
|
+
if (u < 0.0) {
|
|
221561
|
+
if (u > -parameterTol)
|
|
221562
|
+
u = 0.0;
|
|
221563
|
+
else
|
|
221564
|
+
return undefined; // ray does not intersect the triangle
|
|
221565
|
+
}
|
|
221566
|
+
else if (u > 1.0) {
|
|
221567
|
+
if (u < 1.0 + parameterTol)
|
|
221568
|
+
u = 1.0;
|
|
221569
|
+
else
|
|
221570
|
+
return undefined; // ray does not intersect the triangle
|
|
221571
|
+
}
|
|
221572
|
+
const q = Ray3d._workVector4 = s.crossProduct(edge1, Ray3d._workVector4);
|
|
221573
|
+
let v = f * this.direction.dotProduct(q);
|
|
221574
|
+
if (v < 0.0) {
|
|
221575
|
+
if (v > -parameterTol)
|
|
221576
|
+
v = 0.0;
|
|
221577
|
+
else
|
|
221578
|
+
return undefined; // ray does not intersect the triangle
|
|
221579
|
+
}
|
|
221580
|
+
else if (u + v > 1.0) {
|
|
221581
|
+
if (u + v < 1.0 + parameterTol)
|
|
221582
|
+
v = 1.0 - u;
|
|
221583
|
+
else
|
|
221584
|
+
return undefined; // ray does not intersect the triangle
|
|
221585
|
+
}
|
|
221586
|
+
// at this stage, we know the line (parameterized as the ray) intersects the triangle
|
|
221587
|
+
const t = f * edge2.dotProduct(q);
|
|
221588
|
+
if (t <= distanceTol) // line intersection but not ray intersection
|
|
221589
|
+
return undefined;
|
|
221590
|
+
return this.origin.plusScaled(this.direction, t, result); // ray intersection
|
|
221591
|
+
}
|
|
221476
221592
|
/**
|
|
221477
221593
|
* Return the shortest vector `v` to `targetPoint` from the line defined by this ray.
|
|
221478
221594
|
* * If the projection of `targetPoint` onto the line defined by this ray is q, then `v = targetPoint - q`.
|
|
@@ -222363,7 +222479,7 @@ class Transform {
|
|
|
222363
222479
|
/**
|
|
222364
222480
|
* Create a Transform with translation provided by x,y,z parts.
|
|
222365
222481
|
* * Translation Transform maps any vector `v` to `v + p` where `p = (x,y,z)`
|
|
222366
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
222482
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeMove
|
|
222367
222483
|
* @param x x part of translation
|
|
222368
222484
|
* @param y y part of translation
|
|
222369
222485
|
* @param z z part of translation
|
|
@@ -222376,7 +222492,7 @@ class Transform {
|
|
|
222376
222492
|
/**
|
|
222377
222493
|
* Create a Transform with specified `translation` part.
|
|
222378
222494
|
* * Translation Transform maps any vector `v` to `v + translation`
|
|
222379
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
222495
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeMove
|
|
222380
222496
|
* @param translation x,y,z parts of the translation
|
|
222381
222497
|
* @param result optional pre-allocated Transform
|
|
222382
222498
|
* @returns new or updated transform
|
|
@@ -222499,7 +222615,7 @@ class Transform {
|
|
|
222499
222615
|
* Create a Transform which leaves the fixedPoint unchanged and scales everything else around it by
|
|
222500
222616
|
* a single scale factor. The returned Transform maps a point `p` to `M*p + (f - M*f)`
|
|
222501
222617
|
* where `f` is the fixedPoint and M is the scale matrix (i.e., `Tp = M*(p-f) + f`).
|
|
222502
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
222618
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeScale
|
|
222503
222619
|
*/
|
|
222504
222620
|
static createScaleAboutPoint(fixedPoint, scale, result) {
|
|
222505
222621
|
const matrix = _Matrix3d__WEBPACK_IMPORTED_MODULE_2__.Matrix3d.createScale(scale, scale, scale);
|
|
@@ -228054,7 +228170,7 @@ class SimpleNewton {
|
|
|
228054
228170
|
* normally moves to full machine precision.
|
|
228055
228171
|
* * This is an open-loop newton -- it just runs, and returns undefined if anything bad happens.
|
|
228056
228172
|
*/
|
|
228057
|
-
static runNewton1D(x, func, derivative, absoluteTolerance =
|
|
228173
|
+
static runNewton1D(x, func, derivative, absoluteTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallFloatingPoint) {
|
|
228058
228174
|
let numConverged = 0;
|
|
228059
228175
|
let tolerance;
|
|
228060
228176
|
const relTol = 1.0e-11;
|
|
@@ -233478,34 +233594,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
233478
233594
|
/* harmony import */ var _curve_ParityRegion__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../curve/ParityRegion */ "../../core/geometry/lib/esm/curve/ParityRegion.js");
|
|
233479
233595
|
/* harmony import */ var _curve_Query_CylindricalRange__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../curve/Query/CylindricalRange */ "../../core/geometry/lib/esm/curve/Query/CylindricalRange.js");
|
|
233480
233596
|
/* harmony import */ var _curve_Query_StrokeCountChain__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../curve/Query/StrokeCountChain */ "../../core/geometry/lib/esm/curve/Query/StrokeCountChain.js");
|
|
233481
|
-
/* harmony import */ var
|
|
233597
|
+
/* harmony import */ var _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../curve/StrokeOptions */ "../../core/geometry/lib/esm/curve/StrokeOptions.js");
|
|
233482
233598
|
/* harmony import */ var _curve_UnionRegion__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../curve/UnionRegion */ "../../core/geometry/lib/esm/curve/UnionRegion.js");
|
|
233483
|
-
/* harmony import */ var
|
|
233599
|
+
/* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
|
|
233484
233600
|
/* harmony import */ var _geometry3d_Angle__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../geometry3d/Angle */ "../../core/geometry/lib/esm/geometry3d/Angle.js");
|
|
233485
233601
|
/* harmony import */ var _geometry3d_BilinearPatch__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../geometry3d/BilinearPatch */ "../../core/geometry/lib/esm/geometry3d/BilinearPatch.js");
|
|
233486
233602
|
/* harmony import */ var _geometry3d_FrameBuilder__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../geometry3d/FrameBuilder */ "../../core/geometry/lib/esm/geometry3d/FrameBuilder.js");
|
|
233487
|
-
/* harmony import */ var
|
|
233603
|
+
/* harmony import */ var _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../geometry3d/GeometryHandler */ "../../core/geometry/lib/esm/geometry3d/GeometryHandler.js");
|
|
233488
233604
|
/* harmony import */ var _geometry3d_GrowableFloat64Array__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../geometry3d/GrowableFloat64Array */ "../../core/geometry/lib/esm/geometry3d/GrowableFloat64Array.js");
|
|
233489
233605
|
/* harmony import */ var _geometry3d_GrowableXYZArray__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../geometry3d/GrowableXYZArray */ "../../core/geometry/lib/esm/geometry3d/GrowableXYZArray.js");
|
|
233490
233606
|
/* harmony import */ var _geometry3d_IndexedXYZCollection__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../geometry3d/IndexedXYZCollection */ "../../core/geometry/lib/esm/geometry3d/IndexedXYZCollection.js");
|
|
233491
|
-
/* harmony import */ var
|
|
233607
|
+
/* harmony import */ var _geometry3d_Matrix3d__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../geometry3d/Matrix3d */ "../../core/geometry/lib/esm/geometry3d/Matrix3d.js");
|
|
233492
233608
|
/* harmony import */ var _geometry3d_Plane3dByOriginAndVectors__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../geometry3d/Plane3dByOriginAndVectors */ "../../core/geometry/lib/esm/geometry3d/Plane3dByOriginAndVectors.js");
|
|
233493
233609
|
/* harmony import */ var _geometry3d_Point2dVector2d__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../geometry3d/Point2dVector2d */ "../../core/geometry/lib/esm/geometry3d/Point2dVector2d.js");
|
|
233494
233610
|
/* harmony import */ var _geometry3d_Point3dArrayCarrier__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../geometry3d/Point3dArrayCarrier */ "../../core/geometry/lib/esm/geometry3d/Point3dArrayCarrier.js");
|
|
233495
233611
|
/* harmony import */ var _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../geometry3d/Point3dVector3d */ "../../core/geometry/lib/esm/geometry3d/Point3dVector3d.js");
|
|
233496
233612
|
/* harmony import */ var _geometry3d_PolygonOps__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../geometry3d/PolygonOps */ "../../core/geometry/lib/esm/geometry3d/PolygonOps.js");
|
|
233497
|
-
/* harmony import */ var
|
|
233613
|
+
/* harmony import */ var _geometry3d_Range__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../geometry3d/Range */ "../../core/geometry/lib/esm/geometry3d/Range.js");
|
|
233498
233614
|
/* harmony import */ var _geometry3d_Segment1d__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../geometry3d/Segment1d */ "../../core/geometry/lib/esm/geometry3d/Segment1d.js");
|
|
233499
233615
|
/* harmony import */ var _geometry3d_Transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../geometry3d/Transform */ "../../core/geometry/lib/esm/geometry3d/Transform.js");
|
|
233500
233616
|
/* harmony import */ var _geometry3d_UVSurfaceOps__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../geometry3d/UVSurfaceOps */ "../../core/geometry/lib/esm/geometry3d/UVSurfaceOps.js");
|
|
233501
233617
|
/* harmony import */ var _solid_SweepContour__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../solid/SweepContour */ "../../core/geometry/lib/esm/solid/SweepContour.js");
|
|
233502
233618
|
/* harmony import */ var _topology_Graph__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../topology/Graph */ "../../core/geometry/lib/esm/topology/Graph.js");
|
|
233503
233619
|
/* harmony import */ var _topology_Triangulation__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../topology/Triangulation */ "../../core/geometry/lib/esm/topology/Triangulation.js");
|
|
233504
|
-
/* harmony import */ var
|
|
233620
|
+
/* harmony import */ var _BoxTopology__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./BoxTopology */ "../../core/geometry/lib/esm/polyface/BoxTopology.js");
|
|
233505
233621
|
/* harmony import */ var _GreedyTriangulationBetweenLineStrings__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./GreedyTriangulationBetweenLineStrings */ "../../core/geometry/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js");
|
|
233506
233622
|
/* harmony import */ var _IndexedEdgeMatcher__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./IndexedEdgeMatcher */ "../../core/geometry/lib/esm/polyface/IndexedEdgeMatcher.js");
|
|
233507
233623
|
/* harmony import */ var _IndexedPolyfaceVisitor__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./IndexedPolyfaceVisitor */ "../../core/geometry/lib/esm/polyface/IndexedPolyfaceVisitor.js");
|
|
233508
|
-
/* harmony import */ var
|
|
233624
|
+
/* harmony import */ var _Polyface__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Polyface */ "../../core/geometry/lib/esm/polyface/Polyface.js");
|
|
233509
233625
|
/* harmony import */ var _PolyfaceQuery__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./PolyfaceQuery */ "../../core/geometry/lib/esm/polyface/PolyfaceQuery.js");
|
|
233510
233626
|
/*---------------------------------------------------------------------------------------------
|
|
233511
233627
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -233604,7 +233720,7 @@ class FacetSector {
|
|
|
233604
233720
|
packedDerivatives.getVector3dAtCheckedVectorIndex(i, this.sectionDerivative);
|
|
233605
233721
|
}
|
|
233606
233722
|
static suppressSmallUnitVectorComponents(uvw) {
|
|
233607
|
-
const tol =
|
|
233723
|
+
const tol = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallFloatingPoint;
|
|
233608
233724
|
if (Math.abs(uvw.x) < tol)
|
|
233609
233725
|
uvw.x = 0.0;
|
|
233610
233726
|
if (Math.abs(uvw.y) < tol)
|
|
@@ -233681,7 +233797,7 @@ FacetSector._edgeVector = _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_0
|
|
|
233681
233797
|
* * `builder.addQuadFacet(points)`
|
|
233682
233798
|
* @public
|
|
233683
233799
|
*/
|
|
233684
|
-
class PolyfaceBuilder extends
|
|
233800
|
+
class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODULE_3__.NullGeometryHandler {
|
|
233685
233801
|
/** return (pointer to) the `StrokeOptions` in use by the builder. */
|
|
233686
233802
|
get options() { return this._options; }
|
|
233687
233803
|
/** Ask if this builder is reversing vertex order as loops are received. */
|
|
@@ -233696,8 +233812,8 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
233696
233812
|
toggleReversedFacetFlag() { this._reversed = !this._reversed; }
|
|
233697
233813
|
constructor(options) {
|
|
233698
233814
|
super();
|
|
233699
|
-
this._options = options ? options :
|
|
233700
|
-
this._polyface =
|
|
233815
|
+
this._options = options ? options : _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_4__.StrokeOptions.createForFacets();
|
|
233816
|
+
this._polyface = _Polyface__WEBPACK_IMPORTED_MODULE_5__.IndexedPolyface.create(this._options.needNormals, this._options.needParams, this._options.needColors, this._options.needTwoSided);
|
|
233701
233817
|
this._reversed = false;
|
|
233702
233818
|
}
|
|
233703
233819
|
/**
|
|
@@ -233709,7 +233825,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
233709
233825
|
}
|
|
233710
233826
|
/** add facets for a transformed unit box. */
|
|
233711
233827
|
addTransformedUnitBox(transform) {
|
|
233712
|
-
this.addTransformedRangeMesh(transform,
|
|
233828
|
+
this.addTransformedRangeMesh(transform, _geometry3d_Range__WEBPACK_IMPORTED_MODULE_6__.Range3d.createXYZXYZ(0, 0, 0, 1, 1, 1));
|
|
233713
233829
|
}
|
|
233714
233830
|
/** Add facets for a transformed range box.
|
|
233715
233831
|
* @param transform applied to the range points before adding to the polyface
|
|
@@ -233723,7 +233839,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
233723
233839
|
for (const p of points)
|
|
233724
233840
|
this._polyface.addPoint(transform.multiplyPoint3d(p));
|
|
233725
233841
|
let faceCounter = 0;
|
|
233726
|
-
for (const facet of
|
|
233842
|
+
for (const facet of _BoxTopology__WEBPACK_IMPORTED_MODULE_7__.BoxTopology.cornerIndexCCW) {
|
|
233727
233843
|
if (!faceSelector || (faceCounter < faceSelector.length && faceSelector[faceCounter])) {
|
|
233728
233844
|
const myFacet = facet.map((pointIndex) => pointIndex + pointIndex0);
|
|
233729
233845
|
if (this._reversed)
|
|
@@ -233944,7 +234060,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
233944
234060
|
getUVTransformForTriangleFacet(pointA, pointB, pointC) {
|
|
233945
234061
|
const vectorAB = pointA.vectorTo(pointB);
|
|
233946
234062
|
const vectorAC = pointA.vectorTo(pointC);
|
|
233947
|
-
const unitAxes =
|
|
234063
|
+
const unitAxes = _geometry3d_Matrix3d__WEBPACK_IMPORTED_MODULE_8__.Matrix3d.createRigidFromColumns(vectorAB, vectorAC, _Geometry__WEBPACK_IMPORTED_MODULE_2__.AxisOrder.XYZ);
|
|
233948
234064
|
const localToWorld = _geometry3d_Transform__WEBPACK_IMPORTED_MODULE_9__.Transform.createOriginAndMatrix(pointA, unitAxes);
|
|
233949
234065
|
return localToWorld.inverse();
|
|
233950
234066
|
}
|
|
@@ -234470,11 +234586,11 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
234470
234586
|
this.addUVGridBody(cone, strokeCount, axisStrokeCount, _geometry3d_Segment1d__WEBPACK_IMPORTED_MODULE_14__.Segment1d.create(0, sizes.x), _geometry3d_Segment1d__WEBPACK_IMPORTED_MODULE_14__.Segment1d.create(0, sizes.y));
|
|
234471
234587
|
this.endFace();
|
|
234472
234588
|
if (cone.capped) {
|
|
234473
|
-
if (!
|
|
234589
|
+
if (!_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(cone.getRadiusA())) {
|
|
234474
234590
|
this.addTrianglesInUncheckedConvexPolygon(lineStringA, true); // lower triangles flip
|
|
234475
234591
|
this.endFace();
|
|
234476
234592
|
}
|
|
234477
|
-
if (!
|
|
234593
|
+
if (!_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(cone.getRadiusB())) {
|
|
234478
234594
|
this.addTrianglesInUncheckedConvexPolygon(lineStringB, false); // upper triangles to not flip.
|
|
234479
234595
|
this.endFace();
|
|
234480
234596
|
}
|
|
@@ -234485,8 +234601,8 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
234485
234601
|
*/
|
|
234486
234602
|
addTorusPipe(surface, phiStrokeCount, thetaStrokeCount) {
|
|
234487
234603
|
const thetaFraction = surface.getThetaFraction();
|
|
234488
|
-
const numU =
|
|
234489
|
-
const numV =
|
|
234604
|
+
const numU = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.clamp(_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.resolveNumber(phiStrokeCount, 8), 4, 64);
|
|
234605
|
+
const numV = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.clamp(_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.resolveNumber(thetaStrokeCount, Math.ceil(16 * thetaFraction)), 2, 64);
|
|
234490
234606
|
this.toggleReversedFacetFlag();
|
|
234491
234607
|
const sizes = surface.maxIsoParametricDistance();
|
|
234492
234608
|
this.addUVGridBody(surface, numU, numV, _geometry3d_Segment1d__WEBPACK_IMPORTED_MODULE_14__.Segment1d.create(0, sizes.x), _geometry3d_Segment1d__WEBPACK_IMPORTED_MODULE_14__.Segment1d.create(0, sizes.y));
|
|
@@ -234569,8 +234685,8 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
234569
234685
|
_curve_Query_CylindricalRange__WEBPACK_IMPORTED_MODULE_17__.CylindricalRangeQuery.buildRotationalNormalsInLineStrings(baseStrokes, axis, swingVector);
|
|
234570
234686
|
const maxDistance = perpendicularVector.magnitude();
|
|
234571
234687
|
const maxPath = Math.abs(maxDistance * surface.getSweep().radians);
|
|
234572
|
-
let numStep =
|
|
234573
|
-
numStep =
|
|
234688
|
+
let numStep = _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_4__.StrokeOptions.applyAngleTol(this._options, 1, surface.getSweep().radians, undefined);
|
|
234689
|
+
numStep = _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_4__.StrokeOptions.applyMaxEdgeLength(this._options, numStep, maxPath);
|
|
234574
234690
|
for (let i = 1; i <= numStep; i++) {
|
|
234575
234691
|
const transformA = surface.getFractionalRotationTransform((i - 1) / numStep);
|
|
234576
234692
|
const transformB = surface.getFractionalRotationTransform(i / numStep);
|
|
@@ -234746,7 +234862,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
234746
234862
|
if (!stroke1)
|
|
234747
234863
|
stroke1 = contours[i].curves.cloneStroked();
|
|
234748
234864
|
if (i > 0 && stroke0 && stroke1) {
|
|
234749
|
-
const distanceRange =
|
|
234865
|
+
const distanceRange = _geometry3d_Range__WEBPACK_IMPORTED_MODULE_6__.Range1d.createNull();
|
|
234750
234866
|
if (_curve_Query_StrokeCountChain__WEBPACK_IMPORTED_MODULE_16__.StrokeCountSection.extendDistanceRangeBetweenStrokes(stroke0, stroke1, distanceRange)
|
|
234751
234867
|
&& !distanceRange.isNull) {
|
|
234752
234868
|
const numVEdge = this._options.applyMaxEdgeLength(1, distanceRange.high);
|
|
@@ -234769,11 +234885,11 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
234769
234885
|
*/
|
|
234770
234886
|
addSphere(sphere, strokeCount) {
|
|
234771
234887
|
let numStrokeTheta = strokeCount ? strokeCount : this.options.applyTolerancesToArc(sphere.maxAxisRadius());
|
|
234772
|
-
if (
|
|
234888
|
+
if (_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isOdd(numStrokeTheta))
|
|
234773
234889
|
numStrokeTheta += 1;
|
|
234774
|
-
const numStrokePhi =
|
|
234890
|
+
const numStrokePhi = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.clampToStartEnd(Math.abs(numStrokeTheta * sphere.latitudeSweepFraction), 1, Math.ceil(numStrokeTheta * 0.5));
|
|
234775
234891
|
const lineStringA = sphere.strokeConstantVSection(0.0, numStrokeTheta, this._options);
|
|
234776
|
-
if (sphere.capped && !
|
|
234892
|
+
if (sphere.capped && !_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(lineStringA.quickLength())) {
|
|
234777
234893
|
this.addTrianglesInUncheckedConvexPolygon(lineStringA, true); // lower triangles flip
|
|
234778
234894
|
this.endFace();
|
|
234779
234895
|
}
|
|
@@ -234781,7 +234897,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
234781
234897
|
this.addUVGridBody(sphere, numStrokeTheta, numStrokePhi, _geometry3d_Segment1d__WEBPACK_IMPORTED_MODULE_14__.Segment1d.create(0, sizes.x), _geometry3d_Segment1d__WEBPACK_IMPORTED_MODULE_14__.Segment1d.create(0, sizes.y));
|
|
234782
234898
|
this.endFace();
|
|
234783
234899
|
const lineStringB = sphere.strokeConstantVSection(1.0, numStrokeTheta, this._options);
|
|
234784
|
-
if (sphere.capped && !
|
|
234900
|
+
if (sphere.capped && !_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(lineStringB.quickLength())) {
|
|
234785
234901
|
this.addTrianglesInUncheckedConvexPolygon(lineStringB, false); // upper triangles do not flip
|
|
234786
234902
|
this.endFace();
|
|
234787
234903
|
}
|
|
@@ -234791,11 +234907,11 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
234791
234907
|
*/
|
|
234792
234908
|
addBox(box) {
|
|
234793
234909
|
const corners = box.getCorners();
|
|
234794
|
-
const xLength =
|
|
234795
|
-
const yLength =
|
|
234910
|
+
const xLength = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.maxXY(box.getBaseX(), box.getBaseX());
|
|
234911
|
+
const yLength = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.maxXY(box.getBaseY(), box.getTopY());
|
|
234796
234912
|
let zLength = 0.0;
|
|
234797
234913
|
for (let i = 0; i < 4; i++) {
|
|
234798
|
-
zLength =
|
|
234914
|
+
zLength = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.maxXY(zLength, corners[i].distance(corners[i + 4]));
|
|
234799
234915
|
}
|
|
234800
234916
|
const numX = this._options.applyMaxEdgeLength(1, xLength);
|
|
234801
234917
|
const numY = this._options.applyMaxEdgeLength(1, yLength);
|
|
@@ -234861,10 +234977,10 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
234861
234977
|
addPolygonGrowableXYZArray(points) {
|
|
234862
234978
|
// don't use trailing points that match start point.
|
|
234863
234979
|
let numPointsToUse = points.length;
|
|
234864
|
-
while (numPointsToUse > 2 &&
|
|
234980
|
+
while (numPointsToUse > 2 && _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(points.distanceIndexIndex(0, numPointsToUse - 1)))
|
|
234865
234981
|
numPointsToUse--;
|
|
234866
234982
|
// strip trailing duplicates
|
|
234867
|
-
while (numPointsToUse > 2 &&
|
|
234983
|
+
while (numPointsToUse > 2 && _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(points.distanceIndexIndex(numPointsToUse - 2, numPointsToUse - 1)))
|
|
234868
234984
|
numPointsToUse--;
|
|
234869
234985
|
// ignore triangles for which the height is less than smallMetricDistance times length
|
|
234870
234986
|
// sum of edge lengths is twice the perimeter. If it is flat that's twice the largest base dimension.
|
|
@@ -234873,7 +234989,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
234873
234989
|
const cross = points.crossProductIndexIndexIndex(0, 1, 2);
|
|
234874
234990
|
const q = cross.magnitude();
|
|
234875
234991
|
const p = points.distanceIndexIndex(0, 1) + points.distanceIndexIndex(0, 2) + points.distanceIndexIndex(1, 2);
|
|
234876
|
-
if (q <
|
|
234992
|
+
if (q < _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance * p)
|
|
234877
234993
|
numPointsToUse = 0;
|
|
234878
234994
|
}
|
|
234879
234995
|
if (numPointsToUse > 2) {
|
|
@@ -234903,7 +235019,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
234903
235019
|
addFacetFromGrowableArrays(points, normals, params, colors, edgeVisible) {
|
|
234904
235020
|
// don't use trailing points that match start point.
|
|
234905
235021
|
let numPointsToUse = points.length;
|
|
234906
|
-
while (numPointsToUse > 1 &&
|
|
235022
|
+
while (numPointsToUse > 1 && _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(points.distanceIndexIndex(0, numPointsToUse - 1)))
|
|
234907
235023
|
numPointsToUse--;
|
|
234908
235024
|
let index = 0;
|
|
234909
235025
|
if (normals && normals.length < numPointsToUse)
|
|
@@ -235347,7 +235463,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
235347
235463
|
addSweptIndexedPolyface(source, sweepVector, triangulateSides = false) {
|
|
235348
235464
|
let isSimpleSweep = true;
|
|
235349
235465
|
const totalProjectedArea = _PolyfaceQuery__WEBPACK_IMPORTED_MODULE_34__.PolyfaceQuery.sumFacetAreas(source, sweepVector);
|
|
235350
|
-
if (
|
|
235466
|
+
if (_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isAlmostEqualNumber(0.0, totalProjectedArea))
|
|
235351
235467
|
isSimpleSweep = false;
|
|
235352
235468
|
const partitionedIndices = _PolyfaceQuery__WEBPACK_IMPORTED_MODULE_34__.PolyfaceQuery.partitionFacetIndicesByVisibilityVector(source, sweepVector, _geometry3d_Angle__WEBPACK_IMPORTED_MODULE_35__.Angle.createDegrees(1.0e-3));
|
|
235353
235469
|
const numForwardFacets = partitionedIndices[0].length;
|
|
@@ -279804,7 +279920,7 @@ const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../c
|
|
|
279804
279920
|
const projects_client_1 = __webpack_require__(/*! @itwin/projects-client */ "../../common/temp/node_modules/.pnpm/@itwin+projects-client@0.6.0/node_modules/@itwin/projects-client/lib/esm/projects-client.js");
|
|
279805
279921
|
const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
279806
279922
|
const imodels_client_management_1 = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@3.0.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js");
|
|
279807
|
-
const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
279923
|
+
const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0_ueafa4slb6ohrhyf7kbp6egmha/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js");
|
|
279808
279924
|
class IModelSession {
|
|
279809
279925
|
constructor(iTwinId, imodelId, changesetId) {
|
|
279810
279926
|
this.iTwinId = iTwinId;
|
|
@@ -279895,8 +280011,8 @@ const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.
|
|
|
279895
280011
|
const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
279896
280012
|
const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
279897
280013
|
const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
279898
|
-
const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
279899
|
-
const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
280014
|
+
const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/frontend.js");
|
|
280015
|
+
const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0_ueafa4slb6ohrhyf7kbp6egmha/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js");
|
|
279900
280016
|
const imodels_client_management_1 = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@3.0.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js");
|
|
279901
280017
|
const Settings_1 = __webpack_require__(/*! ../../common/Settings */ "./lib/common/Settings.js");
|
|
279902
280018
|
const SideChannels_1 = __webpack_require__(/*! ../../common/SideChannels */ "./lib/common/SideChannels.js");
|
|
@@ -279944,7 +280060,7 @@ class TestContext {
|
|
|
279944
280060
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
279945
280061
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
279946
280062
|
await core_frontend_1.NoRenderApp.startup({
|
|
279947
|
-
applicationVersion: "4.0.0-dev.
|
|
280063
|
+
applicationVersion: "4.0.0-dev.91",
|
|
279948
280064
|
applicationId: this.settings.gprid,
|
|
279949
280065
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
279950
280066
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -299388,7 +299504,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
299388
299504
|
/***/ ((module) => {
|
|
299389
299505
|
|
|
299390
299506
|
"use strict";
|
|
299391
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.
|
|
299507
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.91","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.91","@itwin/core-bentley":"workspace:^4.0.0-dev.91","@itwin/core-common":"workspace:^4.0.0-dev.91","@itwin/core-geometry":"workspace:^4.0.0-dev.91","@itwin/core-orbitgt":"workspace:^4.0.0-dev.91","@itwin/core-quantity":"workspace:^4.0.0-dev.91"},"//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","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@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","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"}}]}}');
|
|
299392
299508
|
|
|
299393
299509
|
/***/ }),
|
|
299394
299510
|
|
|
@@ -299929,7 +300045,7 @@ const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../cor
|
|
|
299929
300045
|
const core_geometry_1 = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
299930
300046
|
const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
299931
300047
|
const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
299932
|
-
const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
300048
|
+
const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/frontend.js");
|
|
299933
300049
|
const TestContext_1 = __webpack_require__(/*! ./setup/TestContext */ "./lib/frontend/setup/TestContext.js");
|
|
299934
300050
|
/* eslint-disable deprecation/deprecation */
|
|
299935
300051
|
const expect = chai.expect;
|
|
@@ -300306,7 +300422,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
300306
300422
|
const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
|
|
300307
300423
|
const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
300308
300424
|
const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
300309
|
-
const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
300425
|
+
const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/frontend.js");
|
|
300310
300426
|
const presentation_common_1 = __webpack_require__(/*! @itwin/presentation-common */ "../../presentation/common/lib/esm/presentation-common.js");
|
|
300311
300427
|
const presentation_frontend_1 = __webpack_require__(/*! @itwin/presentation-frontend */ "../../presentation/frontend/lib/esm/presentation-frontend.js");
|
|
300312
300428
|
const TestContext_1 = __webpack_require__(/*! ./setup/TestContext */ "./lib/frontend/setup/TestContext.js");
|
|
@@ -300549,7 +300665,7 @@ const chai = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pn
|
|
|
300549
300665
|
const chaiAsPromised = __webpack_require__(/*! chai-as-promised */ "../../common/temp/node_modules/.pnpm/chai-as-promised@7.1.1_chai@4.3.7/node_modules/chai-as-promised/lib/chai-as-promised.js");
|
|
300550
300666
|
const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
300551
300667
|
const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
300552
|
-
const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
300668
|
+
const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1_mdtbcqczpmeuv6yjzfaigjndwi/node_modules/@itwin/oidc-signin-tool/lib/cjs/frontend.js");
|
|
300553
300669
|
const TestContext_1 = __webpack_require__(/*! ../setup/TestContext */ "./lib/frontend/setup/TestContext.js");
|
|
300554
300670
|
const expect = chai.expect;
|
|
300555
300671
|
chai.use(chaiAsPromised);
|