@itwin/ecschema-rpcinterface-tests 4.0.0-dev.90 → 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 +213 -97
- 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 +20 -20
|
@@ -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
|
/***/ }),
|
|
@@ -172511,6 +172511,8 @@ Geometry.smallAngleDegrees = 5.7e-11;
|
|
|
172511
172511
|
Geometry.smallAngleSeconds = 2e-7;
|
|
172512
172512
|
/** Numeric value that may be considered zero for fractions between 0 and 1. */
|
|
172513
172513
|
Geometry.smallFraction = 1.0e-10;
|
|
172514
|
+
/** Tight tolerance near machine precision (unitless). Useful for snapping values, e.g., to 0 or 1. */
|
|
172515
|
+
Geometry.smallFloatingPoint = 1.0e-15;
|
|
172514
172516
|
/** Radians value for full circle 2PI radians minus `smallAngleRadians`. */
|
|
172515
172517
|
Geometry.fullCircleRadiansMinusSmallAngle = 2.0 * Math.PI - Geometry.smallAngleRadians;
|
|
172516
172518
|
/**
|
|
@@ -201365,7 +201367,7 @@ class Angle {
|
|
|
201365
201367
|
}
|
|
201366
201368
|
}
|
|
201367
201369
|
/** If value is close to -1, -0.5, 0, 0.5, 1, adjust it to the exact value. */
|
|
201368
|
-
static cleanupTrigValue(value, tolerance =
|
|
201370
|
+
static cleanupTrigValue(value, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallFloatingPoint) {
|
|
201369
201371
|
const absValue = Math.abs(value);
|
|
201370
201372
|
if (absValue <= tolerance)
|
|
201371
201373
|
return 0;
|
|
@@ -202106,6 +202108,10 @@ class BarycentricTriangle {
|
|
|
202106
202108
|
clone(result) {
|
|
202107
202109
|
return BarycentricTriangle.create(this.points[0], this.points[1], this.points[2], result);
|
|
202108
202110
|
}
|
|
202111
|
+
/** Return a clone of the transformed instance */
|
|
202112
|
+
cloneTransformed(transform, result) {
|
|
202113
|
+
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);
|
|
202114
|
+
}
|
|
202109
202115
|
/** Return the area of the triangle. */
|
|
202110
202116
|
get area() {
|
|
202111
202117
|
// The magnitude of the cross product A × B is the area of the parallelogram spanned by A and B.
|
|
@@ -202408,11 +202414,13 @@ class BarycentricTriangle {
|
|
|
202408
202414
|
*/
|
|
202409
202415
|
intersectRay3d(ray, result) {
|
|
202410
202416
|
result = TriangleLocationDetail.create(result);
|
|
202411
|
-
|
|
202412
|
-
|
|
202413
|
-
|
|
202414
|
-
|
|
202415
|
-
|
|
202417
|
+
/**
|
|
202418
|
+
* Let r0 = ray.origin and d = ray.direction. Write intersection point p two ways for unknown scalars s,b0,b1,b2:
|
|
202419
|
+
* r0 + s*d = p = b0*v0 + b1*v1 + b2*v2
|
|
202420
|
+
* Subtract v0 from both ends, let u=v1-v0, v=v2-v0, c=r0-v0, and enforce b0+b1+b2=1:
|
|
202421
|
+
* b1*u + b2*v - s*d = c
|
|
202422
|
+
* This is a linear system Mx = c where M has columns u,v,d and solution x=(b1,b2,-s).
|
|
202423
|
+
*/
|
|
202416
202424
|
const r0 = ray.origin;
|
|
202417
202425
|
const d = ray.direction;
|
|
202418
202426
|
const u = BarycentricTriangle._workVector0 = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createStartEnd(this.points[0], this.points[1], BarycentricTriangle._workVector0);
|
|
@@ -202422,9 +202430,9 @@ class BarycentricTriangle {
|
|
|
202422
202430
|
const solution = BarycentricTriangle._workVector1; // reuse workVector1
|
|
202423
202431
|
if (undefined === M.multiplyInverse(c, solution))
|
|
202424
202432
|
return result; // invalid
|
|
202425
|
-
result.a = -solution.z;
|
|
202433
|
+
result.a = -solution.z; // = -(-s) = s
|
|
202426
202434
|
ray.fractionToPoint(result.a, result.world);
|
|
202427
|
-
result.local.set(1.0 - solution.x - solution.y, solution.x, solution.y);
|
|
202435
|
+
result.local.set(1.0 - solution.x - solution.y, solution.x, solution.y); // = (1 - b1 - b2, b1, b2) = (b0 , b1, b2)
|
|
202428
202436
|
const proj = this.closestPoint(result.local.x, result.local.y, result.local.z);
|
|
202429
202437
|
result.closestEdgeIndex = proj.closestEdgeIndex;
|
|
202430
202438
|
result.closestEdgeParam = proj.closestEdgeParam;
|
|
@@ -202453,7 +202461,7 @@ class BarycentricTriangle {
|
|
|
202453
202461
|
* @param parameterTolerance barycentric coordinate fractional tolerance (or zero to ignore)
|
|
202454
202462
|
* @return whether the location was adjusted
|
|
202455
202463
|
*/
|
|
202456
|
-
snapLocationToEdge(location, distanceTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance, parameterTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.
|
|
202464
|
+
snapLocationToEdge(location, distanceTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance, parameterTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallFloatingPoint) {
|
|
202457
202465
|
if (!location.isValid)
|
|
202458
202466
|
return false;
|
|
202459
202467
|
// first try parametric tol to zero barycentric coordinate (no vertices or world distances used!)
|
|
@@ -206468,7 +206476,7 @@ class GrowableXYZArray extends _IndexedXYZCollection__WEBPACK_IMPORTED_MODULE_0_
|
|
|
206468
206476
|
if (!matrix.computeCachedInverse(true))
|
|
206469
206477
|
return false;
|
|
206470
206478
|
const coffs = matrix.inverseCoffs;
|
|
206471
|
-
const tol =
|
|
206479
|
+
const tol = _Geometry__WEBPACK_IMPORTED_MODULE_3__.Geometry.smallFloatingPoint;
|
|
206472
206480
|
let x = 0;
|
|
206473
206481
|
let y = 0;
|
|
206474
206482
|
let z = 0;
|
|
@@ -208381,7 +208389,7 @@ class Matrix3d {
|
|
|
208381
208389
|
const sii = lambda.at(i, i);
|
|
208382
208390
|
const sjj = lambda.at(j, j);
|
|
208383
208391
|
const sij = lambda.at(i, j);
|
|
208384
|
-
if (Math.abs(sij) <
|
|
208392
|
+
if (Math.abs(sij) < _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallFloatingPoint * (sii + sjj))
|
|
208385
208393
|
return 0.0;
|
|
208386
208394
|
const jacobi = _Angle__WEBPACK_IMPORTED_MODULE_1__.Angle.trigValuesToHalfAngleTrigValues(sii - sjj, 2.0 * sij);
|
|
208387
208395
|
const c = jacobi.c;
|
|
@@ -208461,7 +208469,7 @@ class Matrix3d {
|
|
|
208461
208469
|
const sii = this.coffs[indexII];
|
|
208462
208470
|
const sjj = this.coffs[indexJJ];
|
|
208463
208471
|
const sij = this.coffs[indexIJ];
|
|
208464
|
-
if (Math.abs(sij) <
|
|
208472
|
+
if (Math.abs(sij) < _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallFloatingPoint * (sii + sjj))
|
|
208465
208473
|
return 0.0;
|
|
208466
208474
|
const jacobi = _Angle__WEBPACK_IMPORTED_MODULE_1__.Angle.trigValuesToHalfAngleTrigValues(sii - sjj, 2.0 * sij);
|
|
208467
208475
|
const c = jacobi.c;
|
|
@@ -208656,7 +208664,7 @@ class Matrix3d {
|
|
|
208656
208664
|
const det = matrixVD.determinant();
|
|
208657
208665
|
if (det < 0)
|
|
208658
208666
|
scale.z = -scale.z;
|
|
208659
|
-
const almostZero =
|
|
208667
|
+
const almostZero = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallFloatingPoint;
|
|
208660
208668
|
const scaleXIsZero = Math.abs(scale.x) < almostZero;
|
|
208661
208669
|
const scaleYIsZero = Math.abs(scale.y) < almostZero;
|
|
208662
208670
|
const scaleZIsZero = Math.abs(scale.z) < almostZero;
|
|
@@ -208959,6 +208967,20 @@ class Matrix3d {
|
|
|
208959
208967
|
}
|
|
208960
208968
|
return Matrix3d.createUniformScale(scale);
|
|
208961
208969
|
}
|
|
208970
|
+
/**
|
|
208971
|
+
* Multiply `matrix * point`, treating the point as a column vector on the right.
|
|
208972
|
+
* ```
|
|
208973
|
+
* equation
|
|
208974
|
+
* \matrixXY{A}\columnSubXYZ{U}
|
|
208975
|
+
* ```
|
|
208976
|
+
* @return the point result
|
|
208977
|
+
*/
|
|
208978
|
+
multiplyPoint(point, result) {
|
|
208979
|
+
const x = point.x;
|
|
208980
|
+
const y = point.y;
|
|
208981
|
+
const z = point.z;
|
|
208982
|
+
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);
|
|
208983
|
+
}
|
|
208962
208984
|
/**
|
|
208963
208985
|
* Multiply `matrix * vector`, treating the vector is a column vector on the right.
|
|
208964
208986
|
* ```
|
|
@@ -218565,6 +218587,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
218565
218587
|
|
|
218566
218588
|
|
|
218567
218589
|
|
|
218590
|
+
// cspell:word Cramer
|
|
218568
218591
|
/**
|
|
218569
218592
|
* A Ray3d contains
|
|
218570
218593
|
* * an `origin` point.
|
|
@@ -218741,17 +218764,15 @@ class Ray3d {
|
|
|
218741
218764
|
}
|
|
218742
218765
|
return new Ray3d(this.origin.clone(), this.direction.clone());
|
|
218743
218766
|
}
|
|
218744
|
-
/**
|
|
218745
|
-
cloneTransformed(transform) {
|
|
218746
|
-
return
|
|
218767
|
+
/** Return a clone of the transformed instance */
|
|
218768
|
+
cloneTransformed(transform, result) {
|
|
218769
|
+
return Ray3d.create(transform.multiplyPoint3d(this.origin, result?.origin), transform.multiplyVector(this.direction, result?.direction), result);
|
|
218747
218770
|
}
|
|
218748
218771
|
/** Create a clone and return the inverse transform of the clone. */
|
|
218749
|
-
cloneInverseTransformed(transform) {
|
|
218750
|
-
|
|
218751
|
-
|
|
218752
|
-
|
|
218753
|
-
return new Ray3d(origin, direction);
|
|
218754
|
-
return undefined;
|
|
218772
|
+
cloneInverseTransformed(transform, result) {
|
|
218773
|
+
if (!transform.computeCachedInverse(true))
|
|
218774
|
+
return undefined;
|
|
218775
|
+
return Ray3d.create(transform.multiplyInversePoint3d(this.origin, result?.origin), transform.matrix.multiplyInverseXYZAsVector3d(this.direction.x, this.direction.y, this.direction.z, result?.direction), result);
|
|
218755
218776
|
}
|
|
218756
218777
|
/** Apply a transform in place. */
|
|
218757
218778
|
transformInPlace(transform) {
|
|
@@ -218886,6 +218907,101 @@ class Ray3d {
|
|
|
218886
218907
|
return interval;
|
|
218887
218908
|
return interval;
|
|
218888
218909
|
}
|
|
218910
|
+
/**
|
|
218911
|
+
* Compute the intersection of the ray with a triangle.
|
|
218912
|
+
* @param vertex0 first vertex of the triangle
|
|
218913
|
+
* @param vertex1 second vertex of the triangle
|
|
218914
|
+
* @param vertex2 third vertex of the triangle
|
|
218915
|
+
* @param distanceTol optional tolerance used to check if ray is parallel to the triangle or if we have line
|
|
218916
|
+
* intersection but not ray intersection (if tolerance is not provided, Geometry.smallMetricDistance is used)
|
|
218917
|
+
* @param parameterTol optional tolerance used to snap barycentric coordinates of the intersection point to
|
|
218918
|
+
* a triangle edge or vertex (if tolerance is not provided, Geometry.smallFloatingPoint is used)
|
|
218919
|
+
* @param result optional pre-allocated object to fill and return
|
|
218920
|
+
* @returns the intersection point if ray intersects the triangle. Otherwise, return undefined.
|
|
218921
|
+
*/
|
|
218922
|
+
intersectionWithTriangle(vertex0, vertex1, vertex2, distanceTol, parameterTol, result) {
|
|
218923
|
+
/**
|
|
218924
|
+
* Suppose ray is shown by "rayOrigin + t*rayVector" and barycentric coordinate of point
|
|
218925
|
+
* P = w*v0 + u*v1 + v*v2 = (1-u-v)*v0 + u*v1 + v*v2 = v0 + u*(v1-v0) + v*(v2-v0)
|
|
218926
|
+
*
|
|
218927
|
+
* Then if ray intersects triangle at a point we have
|
|
218928
|
+
* v0 + u*(v1-v0) + v*(v2-v0) = rayOrigin + t*rayVector
|
|
218929
|
+
* or
|
|
218930
|
+
* -t*rayVector + u*(v1-v0) + v*(v2-v0) = rayOrigin - v0
|
|
218931
|
+
*
|
|
218932
|
+
* This equation can be reformulated as the following linear system:
|
|
218933
|
+
*
|
|
218934
|
+
* [ | | | ] [t] [ | ]
|
|
218935
|
+
* [-rayVector v1-v0 v2-v0] [u] = [rayOrigin - v0]
|
|
218936
|
+
* [ | | | ] [v] [ | ]
|
|
218937
|
+
*
|
|
218938
|
+
* Then to find t, u, and v use Cramer's Rule and also the fact that if matrix A = [c1,c2,c3], then
|
|
218939
|
+
* det(A) = c1.(c2 x c3) which leads to
|
|
218940
|
+
*
|
|
218941
|
+
* t = [(rayOrigin - v0).((v1-v0) x (v2-v0))] / [-rayVector.((v1-v0) x (v2-v0))]
|
|
218942
|
+
* u = [-rayVector.((rayOrigin - v0) x (v2-v0))] / [-rayVector.((v1-v0) x (v2-v0))]
|
|
218943
|
+
* v = [-rayVector.((v1-v0) x (rayOrigin - v0))] / [-rayVector.((v1-v0) x (v2-v0))]
|
|
218944
|
+
*
|
|
218945
|
+
* Now note that swapping any 2 vectors c_i and c_j in formula c1.(c2 x c3) negates it. For example:
|
|
218946
|
+
* c1.(c2 x c3) = -c3.(c2 x c1) = c2.(c3 x c1)
|
|
218947
|
+
*
|
|
218948
|
+
* This leads to the final formulas used in the following code:
|
|
218949
|
+
* t = [(v2-v0).((rayOrigin - v0) x (v1-v0))] / [(v1-v0).(rayVector x (v2-v0))]
|
|
218950
|
+
* u = [(rayOrigin - v0).(rayVector x (v2-v0))] / [(v1-v0).(rayVector x (v2-v0))]
|
|
218951
|
+
* v = [-rayVector.((rayOrigin - v0) x (v1-v0))] / [(v1-v0).(rayVector x (v2-v0))]
|
|
218952
|
+
*
|
|
218953
|
+
* 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.
|
|
218954
|
+
* 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
|
|
218955
|
+
* 0 <= w <= 1.
|
|
218956
|
+
*
|
|
218957
|
+
* More info be found at
|
|
218958
|
+
* https://en.wikipedia.org/wiki/M%C3%B6ller%E2%80%93Trumbore_intersection_algorithm
|
|
218959
|
+
*/
|
|
218960
|
+
if (distanceTol === undefined || distanceTol < 0) // we explicitly allow zero tolerance
|
|
218961
|
+
distanceTol = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.smallMetricDistance;
|
|
218962
|
+
if (parameterTol === undefined || parameterTol < 0) // we explicitly allow zero tolerance
|
|
218963
|
+
parameterTol = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.smallFloatingPoint;
|
|
218964
|
+
const edge1 = Ray3d._workVector0 = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(vertex0, vertex1, Ray3d._workVector0);
|
|
218965
|
+
const edge2 = Ray3d._workVector1 = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(vertex0, vertex2, Ray3d._workVector1);
|
|
218966
|
+
const h = Ray3d._workVector2 = this.direction.crossProduct(edge2, Ray3d._workVector2);
|
|
218967
|
+
const a = edge1.dotProduct(h);
|
|
218968
|
+
if (a >= -distanceTol && a <= distanceTol)
|
|
218969
|
+
return undefined; // ray is parallel to the triangle (includes coplanar case)
|
|
218970
|
+
const f = 1.0 / a;
|
|
218971
|
+
const s = Ray3d._workVector3 = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(vertex0, this.origin, Ray3d._workVector3);
|
|
218972
|
+
let u = f * s.dotProduct(h);
|
|
218973
|
+
if (u < 0.0) {
|
|
218974
|
+
if (u > -parameterTol)
|
|
218975
|
+
u = 0.0;
|
|
218976
|
+
else
|
|
218977
|
+
return undefined; // ray does not intersect the triangle
|
|
218978
|
+
}
|
|
218979
|
+
else if (u > 1.0) {
|
|
218980
|
+
if (u < 1.0 + parameterTol)
|
|
218981
|
+
u = 1.0;
|
|
218982
|
+
else
|
|
218983
|
+
return undefined; // ray does not intersect the triangle
|
|
218984
|
+
}
|
|
218985
|
+
const q = Ray3d._workVector4 = s.crossProduct(edge1, Ray3d._workVector4);
|
|
218986
|
+
let v = f * this.direction.dotProduct(q);
|
|
218987
|
+
if (v < 0.0) {
|
|
218988
|
+
if (v > -parameterTol)
|
|
218989
|
+
v = 0.0;
|
|
218990
|
+
else
|
|
218991
|
+
return undefined; // ray does not intersect the triangle
|
|
218992
|
+
}
|
|
218993
|
+
else if (u + v > 1.0) {
|
|
218994
|
+
if (u + v < 1.0 + parameterTol)
|
|
218995
|
+
v = 1.0 - u;
|
|
218996
|
+
else
|
|
218997
|
+
return undefined; // ray does not intersect the triangle
|
|
218998
|
+
}
|
|
218999
|
+
// at this stage, we know the line (parameterized as the ray) intersects the triangle
|
|
219000
|
+
const t = f * edge2.dotProduct(q);
|
|
219001
|
+
if (t <= distanceTol) // line intersection but not ray intersection
|
|
219002
|
+
return undefined;
|
|
219003
|
+
return this.origin.plusScaled(this.direction, t, result); // ray intersection
|
|
219004
|
+
}
|
|
218889
219005
|
/**
|
|
218890
219006
|
* Return the shortest vector `v` to `targetPoint` from the line defined by this ray.
|
|
218891
219007
|
* * If the projection of `targetPoint` onto the line defined by this ray is q, then `v = targetPoint - q`.
|
|
@@ -219776,7 +219892,7 @@ class Transform {
|
|
|
219776
219892
|
/**
|
|
219777
219893
|
* Create a Transform with translation provided by x,y,z parts.
|
|
219778
219894
|
* * Translation Transform maps any vector `v` to `v + p` where `p = (x,y,z)`
|
|
219779
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
219895
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeMove
|
|
219780
219896
|
* @param x x part of translation
|
|
219781
219897
|
* @param y y part of translation
|
|
219782
219898
|
* @param z z part of translation
|
|
@@ -219789,7 +219905,7 @@ class Transform {
|
|
|
219789
219905
|
/**
|
|
219790
219906
|
* Create a Transform with specified `translation` part.
|
|
219791
219907
|
* * Translation Transform maps any vector `v` to `v + translation`
|
|
219792
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
219908
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeMove
|
|
219793
219909
|
* @param translation x,y,z parts of the translation
|
|
219794
219910
|
* @param result optional pre-allocated Transform
|
|
219795
219911
|
* @returns new or updated transform
|
|
@@ -219912,7 +220028,7 @@ class Transform {
|
|
|
219912
220028
|
* Create a Transform which leaves the fixedPoint unchanged and scales everything else around it by
|
|
219913
220029
|
* a single scale factor. The returned Transform maps a point `p` to `M*p + (f - M*f)`
|
|
219914
220030
|
* where `f` is the fixedPoint and M is the scale matrix (i.e., `Tp = M*(p-f) + f`).
|
|
219915
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
220031
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeScale
|
|
219916
220032
|
*/
|
|
219917
220033
|
static createScaleAboutPoint(fixedPoint, scale, result) {
|
|
219918
220034
|
const matrix = _Matrix3d__WEBPACK_IMPORTED_MODULE_2__.Matrix3d.createScale(scale, scale, scale);
|
|
@@ -225467,7 +225583,7 @@ class SimpleNewton {
|
|
|
225467
225583
|
* normally moves to full machine precision.
|
|
225468
225584
|
* * This is an open-loop newton -- it just runs, and returns undefined if anything bad happens.
|
|
225469
225585
|
*/
|
|
225470
|
-
static runNewton1D(x, func, derivative, absoluteTolerance =
|
|
225586
|
+
static runNewton1D(x, func, derivative, absoluteTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallFloatingPoint) {
|
|
225471
225587
|
let numConverged = 0;
|
|
225472
225588
|
let tolerance;
|
|
225473
225589
|
const relTol = 1.0e-11;
|
|
@@ -230891,34 +231007,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
230891
231007
|
/* harmony import */ var _curve_ParityRegion__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../curve/ParityRegion */ "../../core/geometry/lib/esm/curve/ParityRegion.js");
|
|
230892
231008
|
/* harmony import */ var _curve_Query_CylindricalRange__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../curve/Query/CylindricalRange */ "../../core/geometry/lib/esm/curve/Query/CylindricalRange.js");
|
|
230893
231009
|
/* harmony import */ var _curve_Query_StrokeCountChain__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../curve/Query/StrokeCountChain */ "../../core/geometry/lib/esm/curve/Query/StrokeCountChain.js");
|
|
230894
|
-
/* harmony import */ var
|
|
231010
|
+
/* harmony import */ var _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../curve/StrokeOptions */ "../../core/geometry/lib/esm/curve/StrokeOptions.js");
|
|
230895
231011
|
/* harmony import */ var _curve_UnionRegion__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../curve/UnionRegion */ "../../core/geometry/lib/esm/curve/UnionRegion.js");
|
|
230896
|
-
/* harmony import */ var
|
|
231012
|
+
/* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
|
|
230897
231013
|
/* harmony import */ var _geometry3d_Angle__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../geometry3d/Angle */ "../../core/geometry/lib/esm/geometry3d/Angle.js");
|
|
230898
231014
|
/* harmony import */ var _geometry3d_BilinearPatch__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../geometry3d/BilinearPatch */ "../../core/geometry/lib/esm/geometry3d/BilinearPatch.js");
|
|
230899
231015
|
/* harmony import */ var _geometry3d_FrameBuilder__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../geometry3d/FrameBuilder */ "../../core/geometry/lib/esm/geometry3d/FrameBuilder.js");
|
|
230900
|
-
/* harmony import */ var
|
|
231016
|
+
/* harmony import */ var _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../geometry3d/GeometryHandler */ "../../core/geometry/lib/esm/geometry3d/GeometryHandler.js");
|
|
230901
231017
|
/* harmony import */ var _geometry3d_GrowableFloat64Array__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../geometry3d/GrowableFloat64Array */ "../../core/geometry/lib/esm/geometry3d/GrowableFloat64Array.js");
|
|
230902
231018
|
/* harmony import */ var _geometry3d_GrowableXYZArray__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../geometry3d/GrowableXYZArray */ "../../core/geometry/lib/esm/geometry3d/GrowableXYZArray.js");
|
|
230903
231019
|
/* harmony import */ var _geometry3d_IndexedXYZCollection__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../geometry3d/IndexedXYZCollection */ "../../core/geometry/lib/esm/geometry3d/IndexedXYZCollection.js");
|
|
230904
|
-
/* harmony import */ var
|
|
231020
|
+
/* harmony import */ var _geometry3d_Matrix3d__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../geometry3d/Matrix3d */ "../../core/geometry/lib/esm/geometry3d/Matrix3d.js");
|
|
230905
231021
|
/* harmony import */ var _geometry3d_Plane3dByOriginAndVectors__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../geometry3d/Plane3dByOriginAndVectors */ "../../core/geometry/lib/esm/geometry3d/Plane3dByOriginAndVectors.js");
|
|
230906
231022
|
/* harmony import */ var _geometry3d_Point2dVector2d__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../geometry3d/Point2dVector2d */ "../../core/geometry/lib/esm/geometry3d/Point2dVector2d.js");
|
|
230907
231023
|
/* harmony import */ var _geometry3d_Point3dArrayCarrier__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../geometry3d/Point3dArrayCarrier */ "../../core/geometry/lib/esm/geometry3d/Point3dArrayCarrier.js");
|
|
230908
231024
|
/* harmony import */ var _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../geometry3d/Point3dVector3d */ "../../core/geometry/lib/esm/geometry3d/Point3dVector3d.js");
|
|
230909
231025
|
/* harmony import */ var _geometry3d_PolygonOps__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../geometry3d/PolygonOps */ "../../core/geometry/lib/esm/geometry3d/PolygonOps.js");
|
|
230910
|
-
/* harmony import */ var
|
|
231026
|
+
/* harmony import */ var _geometry3d_Range__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../geometry3d/Range */ "../../core/geometry/lib/esm/geometry3d/Range.js");
|
|
230911
231027
|
/* harmony import */ var _geometry3d_Segment1d__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../geometry3d/Segment1d */ "../../core/geometry/lib/esm/geometry3d/Segment1d.js");
|
|
230912
231028
|
/* harmony import */ var _geometry3d_Transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../geometry3d/Transform */ "../../core/geometry/lib/esm/geometry3d/Transform.js");
|
|
230913
231029
|
/* harmony import */ var _geometry3d_UVSurfaceOps__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../geometry3d/UVSurfaceOps */ "../../core/geometry/lib/esm/geometry3d/UVSurfaceOps.js");
|
|
230914
231030
|
/* harmony import */ var _solid_SweepContour__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../solid/SweepContour */ "../../core/geometry/lib/esm/solid/SweepContour.js");
|
|
230915
231031
|
/* harmony import */ var _topology_Graph__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../topology/Graph */ "../../core/geometry/lib/esm/topology/Graph.js");
|
|
230916
231032
|
/* harmony import */ var _topology_Triangulation__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../topology/Triangulation */ "../../core/geometry/lib/esm/topology/Triangulation.js");
|
|
230917
|
-
/* harmony import */ var
|
|
231033
|
+
/* harmony import */ var _BoxTopology__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./BoxTopology */ "../../core/geometry/lib/esm/polyface/BoxTopology.js");
|
|
230918
231034
|
/* harmony import */ var _GreedyTriangulationBetweenLineStrings__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./GreedyTriangulationBetweenLineStrings */ "../../core/geometry/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js");
|
|
230919
231035
|
/* harmony import */ var _IndexedEdgeMatcher__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./IndexedEdgeMatcher */ "../../core/geometry/lib/esm/polyface/IndexedEdgeMatcher.js");
|
|
230920
231036
|
/* harmony import */ var _IndexedPolyfaceVisitor__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./IndexedPolyfaceVisitor */ "../../core/geometry/lib/esm/polyface/IndexedPolyfaceVisitor.js");
|
|
230921
|
-
/* harmony import */ var
|
|
231037
|
+
/* harmony import */ var _Polyface__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Polyface */ "../../core/geometry/lib/esm/polyface/Polyface.js");
|
|
230922
231038
|
/* harmony import */ var _PolyfaceQuery__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./PolyfaceQuery */ "../../core/geometry/lib/esm/polyface/PolyfaceQuery.js");
|
|
230923
231039
|
/*---------------------------------------------------------------------------------------------
|
|
230924
231040
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -231017,7 +231133,7 @@ class FacetSector {
|
|
|
231017
231133
|
packedDerivatives.getVector3dAtCheckedVectorIndex(i, this.sectionDerivative);
|
|
231018
231134
|
}
|
|
231019
231135
|
static suppressSmallUnitVectorComponents(uvw) {
|
|
231020
|
-
const tol =
|
|
231136
|
+
const tol = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallFloatingPoint;
|
|
231021
231137
|
if (Math.abs(uvw.x) < tol)
|
|
231022
231138
|
uvw.x = 0.0;
|
|
231023
231139
|
if (Math.abs(uvw.y) < tol)
|
|
@@ -231094,7 +231210,7 @@ FacetSector._edgeVector = _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_0
|
|
|
231094
231210
|
* * `builder.addQuadFacet(points)`
|
|
231095
231211
|
* @public
|
|
231096
231212
|
*/
|
|
231097
|
-
class PolyfaceBuilder extends
|
|
231213
|
+
class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODULE_3__.NullGeometryHandler {
|
|
231098
231214
|
/** return (pointer to) the `StrokeOptions` in use by the builder. */
|
|
231099
231215
|
get options() { return this._options; }
|
|
231100
231216
|
/** Ask if this builder is reversing vertex order as loops are received. */
|
|
@@ -231109,8 +231225,8 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
231109
231225
|
toggleReversedFacetFlag() { this._reversed = !this._reversed; }
|
|
231110
231226
|
constructor(options) {
|
|
231111
231227
|
super();
|
|
231112
|
-
this._options = options ? options :
|
|
231113
|
-
this._polyface =
|
|
231228
|
+
this._options = options ? options : _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_4__.StrokeOptions.createForFacets();
|
|
231229
|
+
this._polyface = _Polyface__WEBPACK_IMPORTED_MODULE_5__.IndexedPolyface.create(this._options.needNormals, this._options.needParams, this._options.needColors, this._options.needTwoSided);
|
|
231114
231230
|
this._reversed = false;
|
|
231115
231231
|
}
|
|
231116
231232
|
/**
|
|
@@ -231122,7 +231238,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
231122
231238
|
}
|
|
231123
231239
|
/** add facets for a transformed unit box. */
|
|
231124
231240
|
addTransformedUnitBox(transform) {
|
|
231125
|
-
this.addTransformedRangeMesh(transform,
|
|
231241
|
+
this.addTransformedRangeMesh(transform, _geometry3d_Range__WEBPACK_IMPORTED_MODULE_6__.Range3d.createXYZXYZ(0, 0, 0, 1, 1, 1));
|
|
231126
231242
|
}
|
|
231127
231243
|
/** Add facets for a transformed range box.
|
|
231128
231244
|
* @param transform applied to the range points before adding to the polyface
|
|
@@ -231136,7 +231252,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
231136
231252
|
for (const p of points)
|
|
231137
231253
|
this._polyface.addPoint(transform.multiplyPoint3d(p));
|
|
231138
231254
|
let faceCounter = 0;
|
|
231139
|
-
for (const facet of
|
|
231255
|
+
for (const facet of _BoxTopology__WEBPACK_IMPORTED_MODULE_7__.BoxTopology.cornerIndexCCW) {
|
|
231140
231256
|
if (!faceSelector || (faceCounter < faceSelector.length && faceSelector[faceCounter])) {
|
|
231141
231257
|
const myFacet = facet.map((pointIndex) => pointIndex + pointIndex0);
|
|
231142
231258
|
if (this._reversed)
|
|
@@ -231357,7 +231473,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
231357
231473
|
getUVTransformForTriangleFacet(pointA, pointB, pointC) {
|
|
231358
231474
|
const vectorAB = pointA.vectorTo(pointB);
|
|
231359
231475
|
const vectorAC = pointA.vectorTo(pointC);
|
|
231360
|
-
const unitAxes =
|
|
231476
|
+
const unitAxes = _geometry3d_Matrix3d__WEBPACK_IMPORTED_MODULE_8__.Matrix3d.createRigidFromColumns(vectorAB, vectorAC, _Geometry__WEBPACK_IMPORTED_MODULE_2__.AxisOrder.XYZ);
|
|
231361
231477
|
const localToWorld = _geometry3d_Transform__WEBPACK_IMPORTED_MODULE_9__.Transform.createOriginAndMatrix(pointA, unitAxes);
|
|
231362
231478
|
return localToWorld.inverse();
|
|
231363
231479
|
}
|
|
@@ -231883,11 +231999,11 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
231883
231999
|
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));
|
|
231884
232000
|
this.endFace();
|
|
231885
232001
|
if (cone.capped) {
|
|
231886
|
-
if (!
|
|
232002
|
+
if (!_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(cone.getRadiusA())) {
|
|
231887
232003
|
this.addTrianglesInUncheckedConvexPolygon(lineStringA, true); // lower triangles flip
|
|
231888
232004
|
this.endFace();
|
|
231889
232005
|
}
|
|
231890
|
-
if (!
|
|
232006
|
+
if (!_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(cone.getRadiusB())) {
|
|
231891
232007
|
this.addTrianglesInUncheckedConvexPolygon(lineStringB, false); // upper triangles to not flip.
|
|
231892
232008
|
this.endFace();
|
|
231893
232009
|
}
|
|
@@ -231898,8 +232014,8 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
231898
232014
|
*/
|
|
231899
232015
|
addTorusPipe(surface, phiStrokeCount, thetaStrokeCount) {
|
|
231900
232016
|
const thetaFraction = surface.getThetaFraction();
|
|
231901
|
-
const numU =
|
|
231902
|
-
const numV =
|
|
232017
|
+
const numU = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.clamp(_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.resolveNumber(phiStrokeCount, 8), 4, 64);
|
|
232018
|
+
const numV = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.clamp(_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.resolveNumber(thetaStrokeCount, Math.ceil(16 * thetaFraction)), 2, 64);
|
|
231903
232019
|
this.toggleReversedFacetFlag();
|
|
231904
232020
|
const sizes = surface.maxIsoParametricDistance();
|
|
231905
232021
|
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));
|
|
@@ -231982,8 +232098,8 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
231982
232098
|
_curve_Query_CylindricalRange__WEBPACK_IMPORTED_MODULE_17__.CylindricalRangeQuery.buildRotationalNormalsInLineStrings(baseStrokes, axis, swingVector);
|
|
231983
232099
|
const maxDistance = perpendicularVector.magnitude();
|
|
231984
232100
|
const maxPath = Math.abs(maxDistance * surface.getSweep().radians);
|
|
231985
|
-
let numStep =
|
|
231986
|
-
numStep =
|
|
232101
|
+
let numStep = _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_4__.StrokeOptions.applyAngleTol(this._options, 1, surface.getSweep().radians, undefined);
|
|
232102
|
+
numStep = _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_4__.StrokeOptions.applyMaxEdgeLength(this._options, numStep, maxPath);
|
|
231987
232103
|
for (let i = 1; i <= numStep; i++) {
|
|
231988
232104
|
const transformA = surface.getFractionalRotationTransform((i - 1) / numStep);
|
|
231989
232105
|
const transformB = surface.getFractionalRotationTransform(i / numStep);
|
|
@@ -232159,7 +232275,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
232159
232275
|
if (!stroke1)
|
|
232160
232276
|
stroke1 = contours[i].curves.cloneStroked();
|
|
232161
232277
|
if (i > 0 && stroke0 && stroke1) {
|
|
232162
|
-
const distanceRange =
|
|
232278
|
+
const distanceRange = _geometry3d_Range__WEBPACK_IMPORTED_MODULE_6__.Range1d.createNull();
|
|
232163
232279
|
if (_curve_Query_StrokeCountChain__WEBPACK_IMPORTED_MODULE_16__.StrokeCountSection.extendDistanceRangeBetweenStrokes(stroke0, stroke1, distanceRange)
|
|
232164
232280
|
&& !distanceRange.isNull) {
|
|
232165
232281
|
const numVEdge = this._options.applyMaxEdgeLength(1, distanceRange.high);
|
|
@@ -232182,11 +232298,11 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
232182
232298
|
*/
|
|
232183
232299
|
addSphere(sphere, strokeCount) {
|
|
232184
232300
|
let numStrokeTheta = strokeCount ? strokeCount : this.options.applyTolerancesToArc(sphere.maxAxisRadius());
|
|
232185
|
-
if (
|
|
232301
|
+
if (_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isOdd(numStrokeTheta))
|
|
232186
232302
|
numStrokeTheta += 1;
|
|
232187
|
-
const numStrokePhi =
|
|
232303
|
+
const numStrokePhi = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.clampToStartEnd(Math.abs(numStrokeTheta * sphere.latitudeSweepFraction), 1, Math.ceil(numStrokeTheta * 0.5));
|
|
232188
232304
|
const lineStringA = sphere.strokeConstantVSection(0.0, numStrokeTheta, this._options);
|
|
232189
|
-
if (sphere.capped && !
|
|
232305
|
+
if (sphere.capped && !_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(lineStringA.quickLength())) {
|
|
232190
232306
|
this.addTrianglesInUncheckedConvexPolygon(lineStringA, true); // lower triangles flip
|
|
232191
232307
|
this.endFace();
|
|
232192
232308
|
}
|
|
@@ -232194,7 +232310,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
232194
232310
|
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));
|
|
232195
232311
|
this.endFace();
|
|
232196
232312
|
const lineStringB = sphere.strokeConstantVSection(1.0, numStrokeTheta, this._options);
|
|
232197
|
-
if (sphere.capped && !
|
|
232313
|
+
if (sphere.capped && !_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(lineStringB.quickLength())) {
|
|
232198
232314
|
this.addTrianglesInUncheckedConvexPolygon(lineStringB, false); // upper triangles do not flip
|
|
232199
232315
|
this.endFace();
|
|
232200
232316
|
}
|
|
@@ -232204,11 +232320,11 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
232204
232320
|
*/
|
|
232205
232321
|
addBox(box) {
|
|
232206
232322
|
const corners = box.getCorners();
|
|
232207
|
-
const xLength =
|
|
232208
|
-
const yLength =
|
|
232323
|
+
const xLength = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.maxXY(box.getBaseX(), box.getBaseX());
|
|
232324
|
+
const yLength = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.maxXY(box.getBaseY(), box.getTopY());
|
|
232209
232325
|
let zLength = 0.0;
|
|
232210
232326
|
for (let i = 0; i < 4; i++) {
|
|
232211
|
-
zLength =
|
|
232327
|
+
zLength = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.maxXY(zLength, corners[i].distance(corners[i + 4]));
|
|
232212
232328
|
}
|
|
232213
232329
|
const numX = this._options.applyMaxEdgeLength(1, xLength);
|
|
232214
232330
|
const numY = this._options.applyMaxEdgeLength(1, yLength);
|
|
@@ -232274,10 +232390,10 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
232274
232390
|
addPolygonGrowableXYZArray(points) {
|
|
232275
232391
|
// don't use trailing points that match start point.
|
|
232276
232392
|
let numPointsToUse = points.length;
|
|
232277
|
-
while (numPointsToUse > 2 &&
|
|
232393
|
+
while (numPointsToUse > 2 && _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(points.distanceIndexIndex(0, numPointsToUse - 1)))
|
|
232278
232394
|
numPointsToUse--;
|
|
232279
232395
|
// strip trailing duplicates
|
|
232280
|
-
while (numPointsToUse > 2 &&
|
|
232396
|
+
while (numPointsToUse > 2 && _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(points.distanceIndexIndex(numPointsToUse - 2, numPointsToUse - 1)))
|
|
232281
232397
|
numPointsToUse--;
|
|
232282
232398
|
// ignore triangles for which the height is less than smallMetricDistance times length
|
|
232283
232399
|
// sum of edge lengths is twice the perimeter. If it is flat that's twice the largest base dimension.
|
|
@@ -232286,7 +232402,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
232286
232402
|
const cross = points.crossProductIndexIndexIndex(0, 1, 2);
|
|
232287
232403
|
const q = cross.magnitude();
|
|
232288
232404
|
const p = points.distanceIndexIndex(0, 1) + points.distanceIndexIndex(0, 2) + points.distanceIndexIndex(1, 2);
|
|
232289
|
-
if (q <
|
|
232405
|
+
if (q < _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance * p)
|
|
232290
232406
|
numPointsToUse = 0;
|
|
232291
232407
|
}
|
|
232292
232408
|
if (numPointsToUse > 2) {
|
|
@@ -232316,7 +232432,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
232316
232432
|
addFacetFromGrowableArrays(points, normals, params, colors, edgeVisible) {
|
|
232317
232433
|
// don't use trailing points that match start point.
|
|
232318
232434
|
let numPointsToUse = points.length;
|
|
232319
|
-
while (numPointsToUse > 1 &&
|
|
232435
|
+
while (numPointsToUse > 1 && _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isSmallMetricDistance(points.distanceIndexIndex(0, numPointsToUse - 1)))
|
|
232320
232436
|
numPointsToUse--;
|
|
232321
232437
|
let index = 0;
|
|
232322
232438
|
if (normals && normals.length < numPointsToUse)
|
|
@@ -232760,7 +232876,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
232760
232876
|
addSweptIndexedPolyface(source, sweepVector, triangulateSides = false) {
|
|
232761
232877
|
let isSimpleSweep = true;
|
|
232762
232878
|
const totalProjectedArea = _PolyfaceQuery__WEBPACK_IMPORTED_MODULE_34__.PolyfaceQuery.sumFacetAreas(source, sweepVector);
|
|
232763
|
-
if (
|
|
232879
|
+
if (_Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.isAlmostEqualNumber(0.0, totalProjectedArea))
|
|
232764
232880
|
isSimpleSweep = false;
|
|
232765
232881
|
const partitionedIndices = _PolyfaceQuery__WEBPACK_IMPORTED_MODULE_34__.PolyfaceQuery.partitionFacetIndicesByVisibilityVector(source, sweepVector, _geometry3d_Angle__WEBPACK_IMPORTED_MODULE_35__.Angle.createDegrees(1.0e-3));
|
|
232766
232882
|
const numForwardFacets = partitionedIndices[0].length;
|
|
@@ -277160,7 +277276,7 @@ const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.
|
|
|
277160
277276
|
const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
277161
277277
|
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");
|
|
277162
277278
|
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");
|
|
277163
|
-
const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
277279
|
+
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");
|
|
277164
277280
|
class IModelSession {
|
|
277165
277281
|
constructor(iModelId, iTwinId, changesetId) {
|
|
277166
277282
|
this.iTwinId = iTwinId;
|
|
@@ -277247,12 +277363,12 @@ exports.TestContext = void 0;
|
|
|
277247
277363
|
const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
|
|
277248
277364
|
const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
277249
277365
|
const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
277250
|
-
const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.
|
|
277366
|
+
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");
|
|
277251
277367
|
const Settings_1 = __webpack_require__(/*! ../../common/Settings */ "./lib/common/Settings.js");
|
|
277252
277368
|
const SideChannels_1 = __webpack_require__(/*! ../../common/SideChannels */ "./lib/common/SideChannels.js");
|
|
277253
277369
|
const IModelSession_1 = __webpack_require__(/*! ./IModelSession */ "./lib/frontend/setup/IModelSession.js");
|
|
277254
277370
|
const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
277255
|
-
const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.
|
|
277371
|
+
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");
|
|
277256
277372
|
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");
|
|
277257
277373
|
class TestContext {
|
|
277258
277374
|
constructor(env) {
|
|
@@ -287703,7 +287819,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
287703
287819
|
/***/ ((module) => {
|
|
287704
287820
|
|
|
287705
287821
|
"use strict";
|
|
287706
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.
|
|
287822
|
+
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"}}]}}');
|
|
287707
287823
|
|
|
287708
287824
|
/***/ })
|
|
287709
287825
|
|