@itwin/rpcinterface-full-stack-tests 3.4.0-dev.32 → 3.4.0-dev.35
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/{_c5fe.bundled-tests.js → _fc1f.bundled-tests.js} +3 -3
- package/lib/dist/_fc1f.bundled-tests.js.map +1 -0
- package/lib/dist/bundled-tests.js +867 -282
- 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/{vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9.bundled-tests.js → vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_9_node_modules_loaders_gl_draco_di-01256f.bundled-tests.js} +72 -72
- package/lib/dist/{vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9.bundled-tests.js.map → vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_9_node_modules_loaders_gl_draco_di-01256f.bundled-tests.js.map} +1 -1
- package/package.json +14 -14
- package/lib/dist/_c5fe.bundled-tests.js.map +0 -1
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
/***/ }),
|
|
23
23
|
|
|
24
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.3.
|
|
24
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.3.3/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
|
|
25
25
|
/*!********************************************************************************************************************!*\
|
|
26
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.3.
|
|
26
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.3.3/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
|
|
27
27
|
\********************************************************************************************************************/
|
|
28
28
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
29
29
|
|
|
@@ -2296,7 +2296,7 @@ exports.getAccessTokenFromBackend = exports.getTokenCallbackName = void 0;
|
|
|
2296
2296
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2297
2297
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
2298
2298
|
*--------------------------------------------------------------------------------------------*/
|
|
2299
|
-
const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.3.
|
|
2299
|
+
const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.3.3/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
|
|
2300
2300
|
// Shared by both the frontend and backend side of the tests
|
|
2301
2301
|
exports.getTokenCallbackName = "getToken";
|
|
2302
2302
|
async function getAccessTokenFromBackend(user, oidcConfig) {
|
|
@@ -21247,8 +21247,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21247
21247
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21248
21248
|
/* harmony export */ "default": () => (/* binding */ Browser)
|
|
21249
21249
|
/* harmony export */ });
|
|
21250
|
-
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
21251
|
-
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
21250
|
+
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
21251
|
+
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
21252
21252
|
|
|
21253
21253
|
|
|
21254
21254
|
|
|
@@ -21679,10 +21679,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21679
21679
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21680
21680
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
21681
21681
|
/* harmony export */ });
|
|
21682
|
-
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
21683
|
-
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
21684
|
-
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
21685
|
-
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
21682
|
+
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
21683
|
+
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
21684
|
+
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
21685
|
+
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
21686
21686
|
|
|
21687
21687
|
|
|
21688
21688
|
|
|
@@ -157829,7 +157829,7 @@ class GltfReader {
|
|
|
157829
157829
|
if (dracoMeshes.length === 0)
|
|
157830
157830
|
return;
|
|
157831
157831
|
try {
|
|
157832
|
-
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-
|
|
157832
|
+
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_9_node_modules_loaders_gl_draco_di-01256f"), __webpack_require__.e("_fc1f")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.9/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
|
|
157833
157833
|
await Promise.all(dracoMeshes.map(async (x) => this.decodeDracoMesh(x, dracoLoader)));
|
|
157834
157834
|
}
|
|
157835
157835
|
catch (err) {
|
|
@@ -160956,7 +160956,7 @@ function readPnts(stream, dataOffset, pnts) {
|
|
|
160956
160956
|
async function decodeDracoPointCloud(buf) {
|
|
160957
160957
|
var _a, _b, _c, _d, _e, _f;
|
|
160958
160958
|
try {
|
|
160959
|
-
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-
|
|
160959
|
+
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_9_node_modules_loaders_gl_draco_di-01256f"), __webpack_require__.e("_fc1f")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.9/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
|
|
160960
160960
|
const mesh = await dracoLoader.parse(buf, {});
|
|
160961
160961
|
if (mesh.topology !== "point-list")
|
|
160962
160962
|
return undefined;
|
|
@@ -197841,7 +197841,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
197841
197841
|
/* harmony export */ "BSplineWrapMode": () => (/* reexport safe */ _bspline_KnotVector__WEBPACK_IMPORTED_MODULE_108__.BSplineWrapMode),
|
|
197842
197842
|
/* harmony export */ "BagOfCurves": () => (/* reexport safe */ _curve_CurveCollection__WEBPACK_IMPORTED_MODULE_63__.BagOfCurves),
|
|
197843
197843
|
/* harmony export */ "BarycentricTriangle": () => (/* reexport safe */ _geometry3d_BarycentricTriangle__WEBPACK_IMPORTED_MODULE_3__.BarycentricTriangle),
|
|
197844
|
-
/* harmony export */ "BentleyGeometryFlatBuffer": () => (/* reexport safe */
|
|
197844
|
+
/* harmony export */ "BentleyGeometryFlatBuffer": () => (/* reexport safe */ _serialization_BentleyGeometryFlatBuffer__WEBPACK_IMPORTED_MODULE_125__.BentleyGeometryFlatBuffer),
|
|
197845
197845
|
/* harmony export */ "Bezier1dNd": () => (/* reexport safe */ _bspline_Bezier1dNd__WEBPACK_IMPORTED_MODULE_98__.Bezier1dNd),
|
|
197846
197846
|
/* harmony export */ "BezierBezierIntersectionXYRRToRRD": () => (/* reexport safe */ _curve_CurveCurveIntersectXY__WEBPACK_IMPORTED_MODULE_65__.BezierBezierIntersectionXYRRToRRD),
|
|
197847
197847
|
/* harmony export */ "BezierCoffs": () => (/* reexport safe */ _numerics_BezierPolynomials__WEBPACK_IMPORTED_MODULE_49__.BezierCoffs),
|
|
@@ -197892,7 +197892,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
197892
197892
|
/* harmony export */ "CurveSearchStatus": () => (/* reexport safe */ _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_67__.CurveSearchStatus),
|
|
197893
197893
|
/* harmony export */ "CutLoop": () => (/* reexport safe */ _geometry3d_PolygonOps__WEBPACK_IMPORTED_MODULE_26__.CutLoop),
|
|
197894
197894
|
/* harmony export */ "CutLoopMergeContext": () => (/* reexport safe */ _geometry3d_PolygonOps__WEBPACK_IMPORTED_MODULE_26__.CutLoopMergeContext),
|
|
197895
|
-
/* harmony export */ "DeepCompare": () => (/* reexport safe */
|
|
197895
|
+
/* harmony export */ "DeepCompare": () => (/* reexport safe */ _serialization_DeepCompare__WEBPACK_IMPORTED_MODULE_123__.DeepCompare),
|
|
197896
197896
|
/* harmony export */ "Degree2PowerPolynomial": () => (/* reexport safe */ _numerics_Polynomials__WEBPACK_IMPORTED_MODULE_54__.Degree2PowerPolynomial),
|
|
197897
197897
|
/* harmony export */ "Degree3PowerPolynomial": () => (/* reexport safe */ _numerics_Polynomials__WEBPACK_IMPORTED_MODULE_54__.Degree3PowerPolynomial),
|
|
197898
197898
|
/* harmony export */ "Degree4PowerPolynomial": () => (/* reexport safe */ _numerics_Polynomials__WEBPACK_IMPORTED_MODULE_54__.Degree4PowerPolynomial),
|
|
@@ -197915,7 +197915,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
197915
197915
|
/* harmony export */ "HalfEdge": () => (/* reexport safe */ _topology_Graph__WEBPACK_IMPORTED_MODULE_119__.HalfEdge),
|
|
197916
197916
|
/* harmony export */ "HalfEdgeGraph": () => (/* reexport safe */ _topology_Graph__WEBPACK_IMPORTED_MODULE_119__.HalfEdgeGraph),
|
|
197917
197917
|
/* harmony export */ "HalfEdgeMask": () => (/* reexport safe */ _topology_Graph__WEBPACK_IMPORTED_MODULE_119__.HalfEdgeMask),
|
|
197918
|
-
/* harmony export */ "IModelJson": () => (/* reexport safe */
|
|
197918
|
+
/* harmony export */ "IModelJson": () => (/* reexport safe */ _serialization_IModelJsonSchema__WEBPACK_IMPORTED_MODULE_122__.IModelJson),
|
|
197919
197919
|
/* harmony export */ "ImplicitLineXY": () => (/* reexport safe */ _numerics_Polynomials__WEBPACK_IMPORTED_MODULE_54__.ImplicitLineXY),
|
|
197920
197920
|
/* harmony export */ "IndexedCollectionInterval": () => (/* reexport safe */ _geometry3d_IndexedCollectionInterval__WEBPACK_IMPORTED_MODULE_13__.IndexedCollectionInterval),
|
|
197921
197921
|
/* harmony export */ "IndexedPolyface": () => (/* reexport safe */ _polyface_Polyface__WEBPACK_IMPORTED_MODULE_112__.IndexedPolyface),
|
|
@@ -198001,17 +198001,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
198001
198001
|
/* harmony export */ "RegionOps": () => (/* reexport safe */ _curve_RegionOps__WEBPACK_IMPORTED_MODULE_78__.RegionOps),
|
|
198002
198002
|
/* harmony export */ "RotationalSweep": () => (/* reexport safe */ _solid_RotationalSweep__WEBPACK_IMPORTED_MODULE_91__.RotationalSweep),
|
|
198003
198003
|
/* harmony export */ "RuledSweep": () => (/* reexport safe */ _solid_RuledSweep__WEBPACK_IMPORTED_MODULE_92__.RuledSweep),
|
|
198004
|
-
/* harmony export */ "Sample": () => (/* reexport safe */
|
|
198004
|
+
/* harmony export */ "Sample": () => (/* reexport safe */ _serialization_GeometrySamples__WEBPACK_IMPORTED_MODULE_124__.Sample),
|
|
198005
198005
|
/* harmony export */ "Segment1d": () => (/* reexport safe */ _geometry3d_Segment1d__WEBPACK_IMPORTED_MODULE_29__.Segment1d),
|
|
198006
198006
|
/* harmony export */ "SimpleNewton": () => (/* reexport safe */ _numerics_Newton__WEBPACK_IMPORTED_MODULE_51__.SimpleNewton),
|
|
198007
198007
|
/* harmony export */ "SineCosinePolynomial": () => (/* reexport safe */ _numerics_Polynomials__WEBPACK_IMPORTED_MODULE_54__.SineCosinePolynomial),
|
|
198008
198008
|
/* harmony export */ "SmallSystem": () => (/* reexport safe */ _numerics_Polynomials__WEBPACK_IMPORTED_MODULE_54__.SmallSystem),
|
|
198009
198009
|
/* harmony export */ "SmoothTransformBetweenFrusta": () => (/* reexport safe */ _geometry3d_FrustumAnimation__WEBPACK_IMPORTED_MODULE_7__.SmoothTransformBetweenFrusta),
|
|
198010
198010
|
/* harmony export */ "SolidPrimitive": () => (/* reexport safe */ _solid_SolidPrimitive__WEBPACK_IMPORTED_MODULE_93__.SolidPrimitive),
|
|
198011
|
+
/* harmony export */ "SpacePolygonTriangulation": () => (/* reexport safe */ _topology_SpaceTriangulation__WEBPACK_IMPORTED_MODULE_121__.SpacePolygonTriangulation),
|
|
198011
198012
|
/* harmony export */ "Sphere": () => (/* reexport safe */ _solid_Sphere__WEBPACK_IMPORTED_MODULE_94__.Sphere),
|
|
198012
198013
|
/* harmony export */ "SphereImplicit": () => (/* reexport safe */ _numerics_Polynomials__WEBPACK_IMPORTED_MODULE_54__.SphereImplicit),
|
|
198013
198014
|
/* harmony export */ "StandardViewIndex": () => (/* reexport safe */ _Geometry__WEBPACK_IMPORTED_MODULE_34__.StandardViewIndex),
|
|
198014
|
-
/* harmony export */ "SteppedIndexFunctionFactory": () => (/* reexport safe */
|
|
198015
|
+
/* harmony export */ "SteppedIndexFunctionFactory": () => (/* reexport safe */ _serialization_GeometrySamples__WEBPACK_IMPORTED_MODULE_124__.SteppedIndexFunctionFactory),
|
|
198015
198016
|
/* harmony export */ "StringifiedClipVector": () => (/* reexport safe */ _clipping_ClipVector__WEBPACK_IMPORTED_MODULE_41__.StringifiedClipVector),
|
|
198016
198017
|
/* harmony export */ "StrokeCountMap": () => (/* reexport safe */ _curve_Query_StrokeCountMap__WEBPACK_IMPORTED_MODULE_87__.StrokeCountMap),
|
|
198017
198018
|
/* harmony export */ "StrokeOptions": () => (/* reexport safe */ _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_82__.StrokeOptions),
|
|
@@ -198162,10 +198163,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
198162
198163
|
/* harmony import */ var _polyface_TaggedNumericData__WEBPACK_IMPORTED_MODULE_118__ = __webpack_require__(/*! ./polyface/TaggedNumericData */ "../../core/geometry/lib/esm/polyface/TaggedNumericData.js");
|
|
198163
198164
|
/* harmony import */ var _topology_Graph__WEBPACK_IMPORTED_MODULE_119__ = __webpack_require__(/*! ./topology/Graph */ "../../core/geometry/lib/esm/topology/Graph.js");
|
|
198164
198165
|
/* harmony import */ var _topology_Triangulation__WEBPACK_IMPORTED_MODULE_120__ = __webpack_require__(/*! ./topology/Triangulation */ "../../core/geometry/lib/esm/topology/Triangulation.js");
|
|
198165
|
-
/* harmony import */ var
|
|
198166
|
-
/* harmony import */ var
|
|
198167
|
-
/* harmony import */ var
|
|
198168
|
-
/* harmony import */ var
|
|
198166
|
+
/* harmony import */ var _topology_SpaceTriangulation__WEBPACK_IMPORTED_MODULE_121__ = __webpack_require__(/*! ./topology/SpaceTriangulation */ "../../core/geometry/lib/esm/topology/SpaceTriangulation.js");
|
|
198167
|
+
/* harmony import */ var _serialization_IModelJsonSchema__WEBPACK_IMPORTED_MODULE_122__ = __webpack_require__(/*! ./serialization/IModelJsonSchema */ "../../core/geometry/lib/esm/serialization/IModelJsonSchema.js");
|
|
198168
|
+
/* harmony import */ var _serialization_DeepCompare__WEBPACK_IMPORTED_MODULE_123__ = __webpack_require__(/*! ./serialization/DeepCompare */ "../../core/geometry/lib/esm/serialization/DeepCompare.js");
|
|
198169
|
+
/* harmony import */ var _serialization_GeometrySamples__WEBPACK_IMPORTED_MODULE_124__ = __webpack_require__(/*! ./serialization/GeometrySamples */ "../../core/geometry/lib/esm/serialization/GeometrySamples.js");
|
|
198170
|
+
/* harmony import */ var _serialization_BentleyGeometryFlatBuffer__WEBPACK_IMPORTED_MODULE_125__ = __webpack_require__(/*! ./serialization/BentleyGeometryFlatBuffer */ "../../core/geometry/lib/esm/serialization/BentleyGeometryFlatBuffer.js");
|
|
198169
198171
|
/*---------------------------------------------------------------------------------------------
|
|
198170
198172
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
198171
198173
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -198410,6 +198412,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
198410
198412
|
|
|
198411
198413
|
|
|
198412
198414
|
|
|
198415
|
+
|
|
198413
198416
|
|
|
198414
198417
|
|
|
198415
198418
|
|
|
@@ -206859,6 +206862,30 @@ class LineString3d extends _CurvePrimitive__WEBPACK_IMPORTED_MODULE_0__.CurvePri
|
|
|
206859
206862
|
this.addFraction(fraction);
|
|
206860
206863
|
}
|
|
206861
206864
|
}
|
|
206865
|
+
/** Compress out duplicate points (according to point.isAlmostEqual)
|
|
206866
|
+
*/
|
|
206867
|
+
removeDuplicatePoints(tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance) {
|
|
206868
|
+
const n = this._points.length;
|
|
206869
|
+
if (n < 2)
|
|
206870
|
+
return;
|
|
206871
|
+
let n1 = 1;
|
|
206872
|
+
for (let i = 1; i < n; i++) {
|
|
206873
|
+
const q = this._points.distanceIndexIndex(i, n1 - 1);
|
|
206874
|
+
if (q !== undefined && q > tolerance) {
|
|
206875
|
+
this._points.moveIndexToIndex(i, n1);
|
|
206876
|
+
if (this._fractions !== undefined)
|
|
206877
|
+
this._fractions.setAtUncheckedIndex(n1, this._fractions.atUncheckedIndex(i));
|
|
206878
|
+
if (this._derivatives)
|
|
206879
|
+
this._derivatives.moveIndexToIndex(i, n1);
|
|
206880
|
+
n1++;
|
|
206881
|
+
}
|
|
206882
|
+
}
|
|
206883
|
+
this._points.resize(n1);
|
|
206884
|
+
if (this._fractions)
|
|
206885
|
+
this._fractions.resize(n1);
|
|
206886
|
+
if (this._derivatives)
|
|
206887
|
+
this._derivatives.resize(n1);
|
|
206888
|
+
}
|
|
206862
206889
|
/** Append a suitable evaluation of a curve ..
|
|
206863
206890
|
* * always append the curve point
|
|
206864
206891
|
* * if fraction array is present, append the fraction
|
|
@@ -211575,15 +211602,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
211575
211602
|
/* harmony import */ var _curve_Arc3d__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../curve/Arc3d */ "../../core/geometry/lib/esm/curve/Arc3d.js");
|
|
211576
211603
|
/* harmony import */ var _curve_CurveCollection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../curve/CurveCollection */ "../../core/geometry/lib/esm/curve/CurveCollection.js");
|
|
211577
211604
|
/* harmony import */ var _curve_CurvePrimitive__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../curve/CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
|
|
211578
|
-
/* harmony import */ var
|
|
211579
|
-
/* harmony import */ var
|
|
211580
|
-
/* harmony import */ var
|
|
211605
|
+
/* harmony import */ var _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../curve/GeometryQuery */ "../../core/geometry/lib/esm/curve/GeometryQuery.js");
|
|
211606
|
+
/* harmony import */ var _curve_LineSegment3d__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../curve/LineSegment3d */ "../../core/geometry/lib/esm/curve/LineSegment3d.js");
|
|
211607
|
+
/* harmony import */ var _curve_LineString3d__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../curve/LineString3d */ "../../core/geometry/lib/esm/curve/LineString3d.js");
|
|
211581
211608
|
/* harmony import */ var _curve_Loop__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../curve/Loop */ "../../core/geometry/lib/esm/curve/Loop.js");
|
|
211582
211609
|
/* harmony import */ var _curve_Path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../curve/Path */ "../../core/geometry/lib/esm/curve/Path.js");
|
|
211583
211610
|
/* harmony import */ var _curve_RegionOps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../curve/RegionOps */ "../../core/geometry/lib/esm/curve/RegionOps.js");
|
|
211584
211611
|
/* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
|
|
211585
211612
|
/* harmony import */ var _curve_CurveCurve__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../curve/CurveCurve */ "../../core/geometry/lib/esm/curve/CurveCurve.js");
|
|
211586
|
-
/* harmony import */ var
|
|
211613
|
+
/* harmony import */ var _PolygonOffsetContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./PolygonOffsetContext */ "../../core/geometry/lib/esm/curve/internalContexts/PolygonOffsetContext.js");
|
|
211587
211614
|
/* harmony import */ var _geometry3d_FrameBuilder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../geometry3d/FrameBuilder */ "../../core/geometry/lib/esm/geometry3d/FrameBuilder.js");
|
|
211588
211615
|
/*---------------------------------------------------------------------------------------------
|
|
211589
211616
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -211820,6 +211847,16 @@ class MultiChainCollector {
|
|
|
211820
211847
|
return curves[0];
|
|
211821
211848
|
return _curve_Path__WEBPACK_IMPORTED_MODULE_6__.Path.createArray(curves);
|
|
211822
211849
|
}
|
|
211850
|
+
chainToLineString3d(curves) {
|
|
211851
|
+
if (curves.length === 0)
|
|
211852
|
+
return undefined;
|
|
211853
|
+
const linestring = _curve_LineString3d__WEBPACK_IMPORTED_MODULE_7__.LineString3d.create();
|
|
211854
|
+
for (const curve of curves) {
|
|
211855
|
+
curve.emitStrokes(linestring);
|
|
211856
|
+
linestring.removeDuplicatePoints();
|
|
211857
|
+
}
|
|
211858
|
+
return linestring;
|
|
211859
|
+
}
|
|
211823
211860
|
/** Return the collected results, structured as the simplest possible type. */
|
|
211824
211861
|
grabResult(makeLoopIfClosed = false) {
|
|
211825
211862
|
const chains = this._chains;
|
|
@@ -211834,6 +211871,22 @@ class MultiChainCollector {
|
|
|
211834
211871
|
}
|
|
211835
211872
|
return bag;
|
|
211836
211873
|
}
|
|
211874
|
+
/** Return chains as individual calls to announceChain. */
|
|
211875
|
+
announceChainsAsLineString3d(announceChain) {
|
|
211876
|
+
const chains = this._chains;
|
|
211877
|
+
if (chains.length === 1) {
|
|
211878
|
+
const ls = this.chainToLineString3d(chains[0]);
|
|
211879
|
+
if (ls)
|
|
211880
|
+
announceChain(ls);
|
|
211881
|
+
}
|
|
211882
|
+
else if (chains.length > 1) {
|
|
211883
|
+
for (const chain of chains) {
|
|
211884
|
+
const ls = this.chainToLineString3d(chain);
|
|
211885
|
+
if (ls)
|
|
211886
|
+
announceChain(ls);
|
|
211887
|
+
}
|
|
211888
|
+
}
|
|
211889
|
+
}
|
|
211837
211890
|
}
|
|
211838
211891
|
// static methods to assist offset sequences ....
|
|
211839
211892
|
class OffsetHelpers {
|
|
@@ -211854,7 +211907,7 @@ class OffsetHelpers {
|
|
|
211854
211907
|
}
|
|
211855
211908
|
// recursively sum lengths, allowing CurvePrimitive, CurveCollection, or array of such at any level.
|
|
211856
211909
|
static extendRange(range, data) {
|
|
211857
|
-
if (data instanceof
|
|
211910
|
+
if (data instanceof _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_8__.GeometryQuery) {
|
|
211858
211911
|
data.extendRange(range);
|
|
211859
211912
|
}
|
|
211860
211913
|
else if (Array.isArray(data)) {
|
|
@@ -211869,7 +211922,7 @@ class OffsetHelpers {
|
|
|
211869
211922
|
static appendOffsets(data, offset, result, skipOffsetOfLoop) {
|
|
211870
211923
|
let summedLengths = 0;
|
|
211871
211924
|
if (data instanceof _curve_CurvePrimitive__WEBPACK_IMPORTED_MODULE_1__.CurvePrimitive) {
|
|
211872
|
-
const resultA =
|
|
211925
|
+
const resultA = _PolygonOffsetContext__WEBPACK_IMPORTED_MODULE_9__.CurveChainWireOffsetContext.constructCurveXYOffset(_curve_Path__WEBPACK_IMPORTED_MODULE_6__.Path.create(data), offset);
|
|
211873
211926
|
if (resultA) {
|
|
211874
211927
|
summedLengths += this.sumLengths(resultA);
|
|
211875
211928
|
result.push(resultA);
|
|
@@ -211878,7 +211931,7 @@ class OffsetHelpers {
|
|
|
211878
211931
|
else if (data instanceof _curve_Loop__WEBPACK_IMPORTED_MODULE_5__.Loop || data instanceof _curve_Path__WEBPACK_IMPORTED_MODULE_6__.Path) {
|
|
211879
211932
|
if (false) {}
|
|
211880
211933
|
else {
|
|
211881
|
-
const resultA =
|
|
211934
|
+
const resultA = _PolygonOffsetContext__WEBPACK_IMPORTED_MODULE_9__.CurveChainWireOffsetContext.constructCurveXYOffset(data, offset);
|
|
211882
211935
|
if (resultA) {
|
|
211883
211936
|
summedLengths += this.sumLengths(resultA);
|
|
211884
211937
|
result.push(resultA);
|
|
@@ -211921,7 +211974,6 @@ class OffsetHelpers {
|
|
|
211921
211974
|
}
|
|
211922
211975
|
/**
|
|
211923
211976
|
* * Restructure curve fragments as chains and offsets
|
|
211924
|
-
* * Return object with named chains, insideOffsets, outsideOffsets
|
|
211925
211977
|
* * BEWARE that if the input is not a loop the classification of outputs is suspect.
|
|
211926
211978
|
* @param fragments fragments to be chained
|
|
211927
211979
|
* @param gapTolerance distance to be treated as "effectively zero" when joining head-to-tail.
|
|
@@ -211937,7 +211989,7 @@ class OffsetHelpers {
|
|
|
211937
211989
|
*
|
|
211938
211990
|
*/
|
|
211939
211991
|
static simpleEndPointMove(g, atEnd, to) {
|
|
211940
|
-
if (g instanceof (
|
|
211992
|
+
if (g instanceof (_curve_LineSegment3d__WEBPACK_IMPORTED_MODULE_10__.LineSegment3d)) {
|
|
211941
211993
|
if (atEnd) {
|
|
211942
211994
|
g.point1Ref.setFrom(to);
|
|
211943
211995
|
}
|
|
@@ -211946,7 +211998,7 @@ class OffsetHelpers {
|
|
|
211946
211998
|
}
|
|
211947
211999
|
return true;
|
|
211948
212000
|
}
|
|
211949
|
-
else if (g instanceof
|
|
212001
|
+
else if (g instanceof _curve_LineString3d__WEBPACK_IMPORTED_MODULE_7__.LineString3d && g.numPoints() > 0) {
|
|
211950
212002
|
const i = atEnd ? g.numPoints() - 1 : 0;
|
|
211951
212003
|
g.packedPoints.setAtCheckedPointIndex(i, to);
|
|
211952
212004
|
return true;
|
|
@@ -226292,6 +226344,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
226292
226344
|
|
|
226293
226345
|
|
|
226294
226346
|
|
|
226347
|
+
/**
|
|
226348
|
+
*
|
|
226349
|
+
* @param numA first candidate -- presumed 0 or positive
|
|
226350
|
+
* @param numB second candidate -- may be undefined, invalid if outside closed interval 0..numA
|
|
226351
|
+
* @param multiplyBy second candidate multiplier (applied only if candidate is defined)
|
|
226352
|
+
*/
|
|
226353
|
+
function selectOptionalClampedMin(numA, numB, multiplyBy) {
|
|
226354
|
+
if (numB !== undefined) {
|
|
226355
|
+
const numC = numB * multiplyBy;
|
|
226356
|
+
if (numC >= 0 && numC <= numA)
|
|
226357
|
+
return numC;
|
|
226358
|
+
}
|
|
226359
|
+
return numA;
|
|
226360
|
+
}
|
|
226295
226361
|
/**
|
|
226296
226362
|
* The `NumberArray` class contains static methods that act on arrays of numbers.
|
|
226297
226363
|
* @public
|
|
@@ -226941,17 +227007,17 @@ class Point3dArray {
|
|
|
226941
227007
|
* Sum lengths of edges.
|
|
226942
227008
|
* @param data points.
|
|
226943
227009
|
*/
|
|
226944
|
-
static sumEdgeLengths(data, addClosureEdge = false) {
|
|
227010
|
+
static sumEdgeLengths(data, addClosureEdge = false, maxPointsToUse) {
|
|
226945
227011
|
let sum = 0.0;
|
|
226946
227012
|
if (Array.isArray(data)) {
|
|
226947
|
-
const n = data.length - 1;
|
|
227013
|
+
const n = selectOptionalClampedMin(data.length, maxPointsToUse, 1) - 1;
|
|
226948
227014
|
for (let i = 0; i < n; i++)
|
|
226949
227015
|
sum += data[i].distance(data[i + 1]);
|
|
226950
227016
|
if (addClosureEdge && n > 0)
|
|
226951
227017
|
sum += data[0].distance(data[n]);
|
|
226952
227018
|
}
|
|
226953
227019
|
else if (data instanceof Float64Array) {
|
|
226954
|
-
const numXYZ = data.length;
|
|
227020
|
+
const numXYZ = selectOptionalClampedMin(data.length, maxPointsToUse, 3);
|
|
226955
227021
|
let i = 0;
|
|
226956
227022
|
for (; i + 5 < numXYZ; i += 3) { // final i points at final point x
|
|
226957
227023
|
sum += _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.hypotenuseXYZ(data[i + 3] - data[i], data[i + 4] - data[i + 1], data[i + 5] - data[i + 2]);
|
|
@@ -226962,6 +227028,26 @@ class Point3dArray {
|
|
|
226962
227028
|
}
|
|
226963
227029
|
return sum;
|
|
226964
227030
|
}
|
|
227031
|
+
/**
|
|
227032
|
+
* Count the number of points, but ...
|
|
227033
|
+
* * ignore trailing duplicates of point 0.
|
|
227034
|
+
* * return 0 if there are any duplicates within the remaining points.
|
|
227035
|
+
* @param points points to examine.
|
|
227036
|
+
*/
|
|
227037
|
+
static countNonDuplicates(points, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
|
|
227038
|
+
let n = points.length;
|
|
227039
|
+
// strip of (allow) trailing duplicates ...
|
|
227040
|
+
while (n > 1) {
|
|
227041
|
+
if (points[0].isAlmostEqual(points[n - 1], tolerance))
|
|
227042
|
+
n--;
|
|
227043
|
+
else
|
|
227044
|
+
break;
|
|
227045
|
+
}
|
|
227046
|
+
for (let i = 0; i + 1 < n; i++)
|
|
227047
|
+
if (points[i].isAlmostEqual(points[i + 1], tolerance))
|
|
227048
|
+
return 0;
|
|
227049
|
+
return n;
|
|
227050
|
+
}
|
|
226965
227051
|
/**
|
|
226966
227052
|
* Return an array containing clones of the Point3d data[]
|
|
226967
227053
|
* @param data source data
|
|
@@ -227396,15 +227482,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
227396
227482
|
/* harmony export */ "Point3dArrayPolygonOps": () => (/* binding */ Point3dArrayPolygonOps),
|
|
227397
227483
|
/* harmony export */ "PolygonOps": () => (/* binding */ PolygonOps)
|
|
227398
227484
|
/* harmony export */ });
|
|
227399
|
-
/* harmony import */ var
|
|
227485
|
+
/* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
|
|
227400
227486
|
/* harmony import */ var _geometry4d_Matrix4d__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../geometry4d/Matrix4d */ "../../core/geometry/lib/esm/geometry4d/Matrix4d.js");
|
|
227401
227487
|
/* harmony import */ var _geometry4d_Point4d__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../geometry4d/Point4d */ "../../core/geometry/lib/esm/geometry4d/Point4d.js");
|
|
227402
227488
|
/* harmony import */ var _topology_XYParitySearchContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../topology/XYParitySearchContext */ "../../core/geometry/lib/esm/topology/XYParitySearchContext.js");
|
|
227403
227489
|
/* harmony import */ var _FrameBuilder__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FrameBuilder */ "../../core/geometry/lib/esm/geometry3d/FrameBuilder.js");
|
|
227404
227490
|
/* harmony import */ var _GrowableXYZArray__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./GrowableXYZArray */ "../../core/geometry/lib/esm/geometry3d/GrowableXYZArray.js");
|
|
227405
|
-
/* harmony import */ var
|
|
227491
|
+
/* harmony import */ var _IndexedXYZCollection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./IndexedXYZCollection */ "../../core/geometry/lib/esm/geometry3d/IndexedXYZCollection.js");
|
|
227406
227492
|
/* harmony import */ var _Point2dVector2d__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Point2dVector2d */ "../../core/geometry/lib/esm/geometry3d/Point2dVector2d.js");
|
|
227407
|
-
/* harmony import */ var
|
|
227493
|
+
/* harmony import */ var _Point3dArrayCarrier__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Point3dArrayCarrier */ "../../core/geometry/lib/esm/geometry3d/Point3dArrayCarrier.js");
|
|
227408
227494
|
/* harmony import */ var _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Point3dVector3d */ "../../core/geometry/lib/esm/geometry3d/Point3dVector3d.js");
|
|
227409
227495
|
/* harmony import */ var _Ray3d__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Ray3d */ "../../core/geometry/lib/esm/geometry3d/Ray3d.js");
|
|
227410
227496
|
/* harmony import */ var _SortablePolygon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SortablePolygon */ "../../core/geometry/lib/esm/geometry3d/SortablePolygon.js");
|
|
@@ -227638,6 +227724,41 @@ class PolygonOps {
|
|
|
227638
227724
|
}
|
|
227639
227725
|
return s * 0.5;
|
|
227640
227726
|
}
|
|
227727
|
+
/** Sum areas of triangles from points[0] to each far edge, as viewed with upVector pointing up.
|
|
227728
|
+
* * Consider triangles from points[0] to each edge.
|
|
227729
|
+
* * Sum the areas perpendicular to the upVector.
|
|
227730
|
+
* * If the upVector is near-zero length, a simple z vector is used.
|
|
227731
|
+
* @returns sum of triangle areas.
|
|
227732
|
+
*/
|
|
227733
|
+
static sumTriangleAreasPerpendicularToUpVector(points, upVector) {
|
|
227734
|
+
let scale = upVector.magnitude();
|
|
227735
|
+
if (scale < _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance) {
|
|
227736
|
+
upVector = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create(0, 0, 1);
|
|
227737
|
+
scale = 1.0;
|
|
227738
|
+
}
|
|
227739
|
+
let s = 0;
|
|
227740
|
+
const n = points.length;
|
|
227741
|
+
if (Array.isArray(points)) {
|
|
227742
|
+
if (n >= 3) {
|
|
227743
|
+
const origin = points[0];
|
|
227744
|
+
const vector0 = origin.vectorTo(points[1]);
|
|
227745
|
+
let vector1 = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create();
|
|
227746
|
+
// This will work with or without closure edge. If closure is given, the last vector is 000.
|
|
227747
|
+
for (let i = 2; i < n; i++) {
|
|
227748
|
+
vector1 = origin.vectorTo(points[i], vector1);
|
|
227749
|
+
s += vector0.tripleProduct(vector1, upVector);
|
|
227750
|
+
vector0.setFrom(vector1);
|
|
227751
|
+
}
|
|
227752
|
+
}
|
|
227753
|
+
return s * 0.5 / scale;
|
|
227754
|
+
}
|
|
227755
|
+
const crossVector = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create();
|
|
227756
|
+
for (let i = 2; i < n; i++) {
|
|
227757
|
+
points.crossProductIndexIndexIndex(0, i - 1, i, crossVector);
|
|
227758
|
+
s += crossVector.dotProduct(upVector);
|
|
227759
|
+
}
|
|
227760
|
+
return s * 0.5 / scale;
|
|
227761
|
+
}
|
|
227641
227762
|
/** Sum areas of triangles from points[0] to each far edge.
|
|
227642
227763
|
* * Consider triangles from points[0] to each edge.
|
|
227643
227764
|
* * Sum the areas(absolute, without regard to orientation) all these triangles.
|
|
@@ -227685,7 +227806,7 @@ class PolygonOps {
|
|
|
227685
227806
|
static areaNormal(points, result) {
|
|
227686
227807
|
if (!result)
|
|
227687
227808
|
result = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create();
|
|
227688
|
-
PolygonOps.areaNormalGo(new
|
|
227809
|
+
PolygonOps.areaNormalGo(new _Point3dArrayCarrier__WEBPACK_IMPORTED_MODULE_3__.Point3dArrayCarrier(points), result);
|
|
227689
227810
|
return result;
|
|
227690
227811
|
}
|
|
227691
227812
|
/** return the area of the polygon.
|
|
@@ -227698,7 +227819,7 @@ class PolygonOps {
|
|
|
227698
227819
|
/** return the projected XY area of the polygon. */
|
|
227699
227820
|
static areaXY(points) {
|
|
227700
227821
|
let area = 0.0;
|
|
227701
|
-
if (points instanceof
|
|
227822
|
+
if (points instanceof _IndexedXYZCollection__WEBPACK_IMPORTED_MODULE_4__.IndexedXYZCollection) {
|
|
227702
227823
|
if (points.length > 2) {
|
|
227703
227824
|
const x0 = points.getXAtUncheckedPointIndex(0);
|
|
227704
227825
|
const y0 = points.getYAtUncheckedPointIndex(0);
|
|
@@ -227708,7 +227829,7 @@ class PolygonOps {
|
|
|
227708
227829
|
for (let i = 1; i + 1 < points.length; i++, u1 = u2, v1 = v2) {
|
|
227709
227830
|
u2 = points.getXAtUncheckedPointIndex(i) - x0;
|
|
227710
227831
|
v2 = points.getYAtUncheckedPointIndex(i) - y0;
|
|
227711
|
-
area +=
|
|
227832
|
+
area += _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.crossProductXYXY(u1, v1, u2, v2);
|
|
227712
227833
|
}
|
|
227713
227834
|
}
|
|
227714
227835
|
}
|
|
@@ -227734,7 +227855,7 @@ class PolygonOps {
|
|
|
227734
227855
|
*/
|
|
227735
227856
|
static centroidAreaNormal(points) {
|
|
227736
227857
|
if (Array.isArray(points)) {
|
|
227737
|
-
const carrier = new
|
|
227858
|
+
const carrier = new _Point3dArrayCarrier__WEBPACK_IMPORTED_MODULE_3__.Point3dArrayCarrier(points);
|
|
227738
227859
|
return this.centroidAreaNormal(carrier);
|
|
227739
227860
|
}
|
|
227740
227861
|
const n = points.length;
|
|
@@ -227776,7 +227897,7 @@ class PolygonOps {
|
|
|
227776
227897
|
vector0.setFrom(vector1);
|
|
227777
227898
|
}
|
|
227778
227899
|
const area = 0.5 * normalSum.magnitude();
|
|
227779
|
-
const inverseArea =
|
|
227900
|
+
const inverseArea = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.conditionalDivideFraction(1, area);
|
|
227780
227901
|
if (inverseArea !== undefined) {
|
|
227781
227902
|
const result = _Ray3d__WEBPACK_IMPORTED_MODULE_0__.Ray3d.createCapture(origin.plusScaled(centroidSum, inverseArea), normalSum);
|
|
227782
227903
|
result.tryNormalizeInPlaceWithAreaWeight(area);
|
|
@@ -227807,7 +227928,7 @@ class PolygonOps {
|
|
|
227807
227928
|
areaSum += tempArea;
|
|
227808
227929
|
}
|
|
227809
227930
|
area = areaSum * 0.5;
|
|
227810
|
-
const a =
|
|
227931
|
+
const a = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.conditionalDivideFraction(1.0, 6.0 * area);
|
|
227811
227932
|
if (a === undefined) {
|
|
227812
227933
|
centroid.setFrom(origin);
|
|
227813
227934
|
return undefined;
|
|
@@ -228015,7 +228136,7 @@ class PolygonOps {
|
|
|
228015
228136
|
* @return the number of loops reversed.
|
|
228016
228137
|
*/
|
|
228017
228138
|
static orientLoopsCCWForOutwardNormalInPlace(loops, outwardNormal) {
|
|
228018
|
-
if (loops instanceof
|
|
228139
|
+
if (loops instanceof _IndexedXYZCollection__WEBPACK_IMPORTED_MODULE_4__.IndexedXYZCollection)
|
|
228019
228140
|
return this.orientLoopsCCWForOutwardNormalInPlace([loops], outwardNormal);
|
|
228020
228141
|
const orientations = [];
|
|
228021
228142
|
const unitNormal = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create();
|
|
@@ -228177,7 +228298,7 @@ class IndexedXYZCollectionPolygonOps {
|
|
|
228177
228298
|
* @param tolerance tolerance for "on plane" decision.
|
|
228178
228299
|
* @return the number of crossings. If this is larger than 2, the result is "correct" in a parity sense but may have overlapping (hence cancelling) parts.
|
|
228179
228300
|
*/
|
|
228180
|
-
static clipConvexPolygonInPlace(plane, xyz, work, keepPositive = true, tolerance =
|
|
228301
|
+
static clipConvexPolygonInPlace(plane, xyz, work, keepPositive = true, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance) {
|
|
228181
228302
|
work.clear();
|
|
228182
228303
|
const s = keepPositive ? 1.0 : -1.0;
|
|
228183
228304
|
const n = xyz.length;
|
|
@@ -228239,7 +228360,7 @@ class IndexedXYZCollectionPolygonOps {
|
|
|
228239
228360
|
* * `minChainLength` indicates the shortest chain to be returned.
|
|
228240
228361
|
* @internal
|
|
228241
228362
|
*/
|
|
228242
|
-
static gatherCutLoopsFromPlaneClip(plane, xyz, minChainLength = 3, tolerance =
|
|
228363
|
+
static gatherCutLoopsFromPlaneClip(plane, xyz, minChainLength = 3, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance) {
|
|
228243
228364
|
const result = new CutLoopMergeContext();
|
|
228244
228365
|
// find the first on-plane point
|
|
228245
228366
|
let firstOnPlaneIndex = 0;
|
|
@@ -228359,9 +228480,9 @@ class Point3dArrayPolygonOps {
|
|
|
228359
228480
|
* @param altitudeRange min and max altitudes encountered.
|
|
228360
228481
|
*/
|
|
228361
228482
|
static convexPolygonSplitInsideOutsidePlane(plane, xyz, xyzIn, xyzOut, altitudeRange) {
|
|
228362
|
-
const xyzCarrier = new
|
|
228363
|
-
const xyzInCarrier = new
|
|
228364
|
-
const xyzOutCarrier = new
|
|
228483
|
+
const xyzCarrier = new _Point3dArrayCarrier__WEBPACK_IMPORTED_MODULE_3__.Point3dArrayCarrier(xyz);
|
|
228484
|
+
const xyzInCarrier = new _Point3dArrayCarrier__WEBPACK_IMPORTED_MODULE_3__.Point3dArrayCarrier(xyzIn);
|
|
228485
|
+
const xyzOutCarrier = new _Point3dArrayCarrier__WEBPACK_IMPORTED_MODULE_3__.Point3dArrayCarrier(xyzOut);
|
|
228365
228486
|
IndexedXYZCollectionPolygonOps.splitConvexPolygonInsideOutsidePlane(plane, xyzCarrier, xyzInCarrier, xyzOutCarrier, altitudeRange);
|
|
228366
228487
|
}
|
|
228367
228488
|
/** Return an array containing
|
|
@@ -228395,7 +228516,7 @@ class Point3dArrayPolygonOps {
|
|
|
228395
228516
|
* @param work scratch object
|
|
228396
228517
|
* @param tolerance tolerance for on-plane decision.
|
|
228397
228518
|
*/
|
|
228398
|
-
static convexPolygonClipInPlace(plane, xyz, work, tolerance =
|
|
228519
|
+
static convexPolygonClipInPlace(plane, xyz, work, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance) {
|
|
228399
228520
|
if (work === undefined)
|
|
228400
228521
|
work = [];
|
|
228401
228522
|
work.length = 0;
|
|
@@ -228942,6 +229063,26 @@ class PolylineOps {
|
|
|
228942
229063
|
data.push(q0.clone());
|
|
228943
229064
|
}
|
|
228944
229065
|
}
|
|
229066
|
+
/**
|
|
229067
|
+
* Remove closure points a polyline or array of polylines
|
|
229068
|
+
* @param data points.
|
|
229069
|
+
*/
|
|
229070
|
+
static removeClosurePoint(data) {
|
|
229071
|
+
if (data.length === 0)
|
|
229072
|
+
return;
|
|
229073
|
+
const q0 = data[0];
|
|
229074
|
+
if (Array.isArray(q0)) {
|
|
229075
|
+
for (const child of data) {
|
|
229076
|
+
if (Array.isArray(child))
|
|
229077
|
+
this.removeClosurePoint(child);
|
|
229078
|
+
}
|
|
229079
|
+
return;
|
|
229080
|
+
}
|
|
229081
|
+
const q1 = data[data.length - 1];
|
|
229082
|
+
if (q0 instanceof _Point3dVector3d__WEBPACK_IMPORTED_MODULE_4__.Point3d && q1 instanceof _Point3dVector3d__WEBPACK_IMPORTED_MODULE_4__.Point3d && q0.isAlmostEqual(q1)) {
|
|
229083
|
+
data.pop();
|
|
229084
|
+
}
|
|
229085
|
+
}
|
|
228945
229086
|
}
|
|
228946
229087
|
|
|
228947
229088
|
|
|
@@ -243409,7 +243550,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
243409
243550
|
* @param normals array of points. This may contain extra points not to be used in the polygon
|
|
243410
243551
|
* @param numPointsToUse number of points to use.
|
|
243411
243552
|
*/
|
|
243412
|
-
addFacetFromGrowableArrays(points, normals, params, colors) {
|
|
243553
|
+
addFacetFromGrowableArrays(points, normals, params, colors, edgeVisible) {
|
|
243413
243554
|
// don't use trailing points that match start point.
|
|
243414
243555
|
let numPointsToUse = points.length;
|
|
243415
243556
|
while (numPointsToUse > 1 && _Geometry__WEBPACK_IMPORTED_MODULE_8__.Geometry.isSmallMetricDistance(points.distanceIndexIndex(0, numPointsToUse - 1)))
|
|
@@ -243421,10 +243562,12 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
243421
243562
|
params = undefined;
|
|
243422
243563
|
if (colors && colors.length < numPointsToUse)
|
|
243423
243564
|
colors = undefined;
|
|
243565
|
+
if (edgeVisible && edgeVisible.length < numPointsToUse)
|
|
243566
|
+
edgeVisible = undefined;
|
|
243424
243567
|
if (!this._reversed) {
|
|
243425
243568
|
for (let i = 0; i < numPointsToUse; i++) {
|
|
243426
243569
|
index = this.findOrAddPointInGrowableXYZArray(points, i);
|
|
243427
|
-
this._polyface.addPointIndex(index);
|
|
243570
|
+
this._polyface.addPointIndex(index, edgeVisible ? edgeVisible[i] : true);
|
|
243428
243571
|
if (normals) {
|
|
243429
243572
|
index = this.findOrAddNormalInGrowableXYZArray(normals, i);
|
|
243430
243573
|
this._polyface.addNormalIndex(index);
|
|
@@ -243463,7 +243606,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
243463
243606
|
* * indices are added (in reverse order if indicated by the builder state)
|
|
243464
243607
|
*/
|
|
243465
243608
|
addFacetFromVisitor(visitor) {
|
|
243466
|
-
this.addFacetFromGrowableArrays(visitor.point, visitor.normal, visitor.param, visitor.color);
|
|
243609
|
+
this.addFacetFromGrowableArrays(visitor.point, visitor.normal, visitor.param, visitor.color, visitor.edgeVisible);
|
|
243467
243610
|
}
|
|
243468
243611
|
/** Add a polyface, with optional reverse and transform. */
|
|
243469
243612
|
addIndexedPolyface(source, reversed, transform) {
|
|
@@ -245065,29 +245208,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
245065
245208
|
/* harmony export */ "DuplicateFacetClusterSelector": () => (/* binding */ DuplicateFacetClusterSelector),
|
|
245066
245209
|
/* harmony export */ "PolyfaceQuery": () => (/* binding */ PolyfaceQuery)
|
|
245067
245210
|
/* harmony export */ });
|
|
245211
|
+
/* harmony import */ var _geometry3d_PointHelpers__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../geometry3d/PointHelpers */ "../../core/geometry/lib/esm/geometry3d/PointHelpers.js");
|
|
245068
245212
|
/* harmony import */ var _curve_CurveCollection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../curve/CurveCollection */ "../../core/geometry/lib/esm/curve/CurveCollection.js");
|
|
245213
|
+
/* harmony import */ var _curve_internalContexts_MultiChainCollector__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../curve/internalContexts/MultiChainCollector */ "../../core/geometry/lib/esm/curve/internalContexts/MultiChainCollector.js");
|
|
245069
245214
|
/* harmony import */ var _curve_LineSegment3d__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../curve/LineSegment3d */ "../../core/geometry/lib/esm/curve/LineSegment3d.js");
|
|
245070
245215
|
/* harmony import */ var _curve_LineString3d__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../curve/LineString3d */ "../../core/geometry/lib/esm/curve/LineString3d.js");
|
|
245071
245216
|
/* harmony import */ var _curve_Loop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../curve/Loop */ "../../core/geometry/lib/esm/curve/Loop.js");
|
|
245072
|
-
/* harmony import */ var
|
|
245217
|
+
/* harmony import */ var _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../curve/StrokeOptions */ "../../core/geometry/lib/esm/curve/StrokeOptions.js");
|
|
245073
245218
|
/* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
|
|
245074
245219
|
/* harmony import */ var _geometry3d_Angle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../geometry3d/Angle */ "../../core/geometry/lib/esm/geometry3d/Angle.js");
|
|
245220
|
+
/* harmony import */ var _geometry3d_FrameBuilder__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../geometry3d/FrameBuilder */ "../../core/geometry/lib/esm/geometry3d/FrameBuilder.js");
|
|
245075
245221
|
/* harmony import */ var _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../geometry3d/Point3dVector3d */ "../../core/geometry/lib/esm/geometry3d/Point3dVector3d.js");
|
|
245076
245222
|
/* harmony import */ var _geometry3d_PolygonOps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../geometry3d/PolygonOps */ "../../core/geometry/lib/esm/geometry3d/PolygonOps.js");
|
|
245077
|
-
/* harmony import */ var
|
|
245223
|
+
/* harmony import */ var _geometry3d_Range__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../geometry3d/Range */ "../../core/geometry/lib/esm/geometry3d/Range.js");
|
|
245078
245224
|
/* harmony import */ var _geometry4d_Matrix4d__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../geometry4d/Matrix4d */ "../../core/geometry/lib/esm/geometry4d/Matrix4d.js");
|
|
245079
245225
|
/* harmony import */ var _geometry4d_MomentData__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../geometry4d/MomentData */ "../../core/geometry/lib/esm/geometry4d/MomentData.js");
|
|
245080
245226
|
/* harmony import */ var _numerics_UnionFind__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../numerics/UnionFind */ "../../core/geometry/lib/esm/numerics/UnionFind.js");
|
|
245081
|
-
/* harmony import */ var
|
|
245082
|
-
/* harmony import */ var
|
|
245227
|
+
/* harmony import */ var _topology_ChainMerge__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../topology/ChainMerge */ "../../core/geometry/lib/esm/topology/ChainMerge.js");
|
|
245228
|
+
/* harmony import */ var _topology_Graph__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../topology/Graph */ "../../core/geometry/lib/esm/topology/Graph.js");
|
|
245229
|
+
/* harmony import */ var _topology_HalfEdgeGraphSearch__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../topology/HalfEdgeGraphSearch */ "../../core/geometry/lib/esm/topology/HalfEdgeGraphSearch.js");
|
|
245230
|
+
/* harmony import */ var _topology_Merging__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../topology/Merging */ "../../core/geometry/lib/esm/topology/Merging.js");
|
|
245231
|
+
/* harmony import */ var _FacetOrientation__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./FacetOrientation */ "../../core/geometry/lib/esm/polyface/FacetOrientation.js");
|
|
245083
245232
|
/* harmony import */ var _IndexedEdgeMatcher__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./IndexedEdgeMatcher */ "../../core/geometry/lib/esm/polyface/IndexedEdgeMatcher.js");
|
|
245084
245233
|
/* harmony import */ var _IndexedPolyfaceVisitor__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./IndexedPolyfaceVisitor */ "../../core/geometry/lib/esm/polyface/IndexedPolyfaceVisitor.js");
|
|
245085
|
-
/* harmony import */ var
|
|
245234
|
+
/* harmony import */ var _multiclip_BuildAverageNormalsContext__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./multiclip/BuildAverageNormalsContext */ "../../core/geometry/lib/esm/polyface/multiclip/BuildAverageNormalsContext.js");
|
|
245086
245235
|
/* harmony import */ var _multiclip_SweepLineStringToFacetContext__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./multiclip/SweepLineStringToFacetContext */ "../../core/geometry/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js");
|
|
245087
|
-
/* harmony import */ var
|
|
245236
|
+
/* harmony import */ var _multiclip_XYPointBuckets__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./multiclip/XYPointBuckets */ "../../core/geometry/lib/esm/polyface/multiclip/XYPointBuckets.js");
|
|
245088
245237
|
/* harmony import */ var _Polyface__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Polyface */ "../../core/geometry/lib/esm/polyface/Polyface.js");
|
|
245089
245238
|
/* harmony import */ var _PolyfaceBuilder__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./PolyfaceBuilder */ "../../core/geometry/lib/esm/polyface/PolyfaceBuilder.js");
|
|
245090
|
-
/* harmony import */ var
|
|
245239
|
+
/* harmony import */ var _RangeLengthData__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./RangeLengthData */ "../../core/geometry/lib/esm/polyface/RangeLengthData.js");
|
|
245240
|
+
/* harmony import */ var _topology_SpaceTriangulation__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../topology/SpaceTriangulation */ "../../core/geometry/lib/esm/topology/SpaceTriangulation.js");
|
|
245091
245241
|
/*---------------------------------------------------------------------------------------------
|
|
245092
245242
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
245093
245243
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -245112,6 +245262,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
245112
245262
|
|
|
245113
245263
|
|
|
245114
245264
|
|
|
245265
|
+
|
|
245266
|
+
|
|
245267
|
+
|
|
245268
|
+
|
|
245269
|
+
|
|
245270
|
+
|
|
245271
|
+
|
|
245115
245272
|
|
|
245116
245273
|
|
|
245117
245274
|
|
|
@@ -245346,15 +245503,39 @@ class PolyfaceQuery {
|
|
|
245346
245503
|
return badClusters.length === 0;
|
|
245347
245504
|
}
|
|
245348
245505
|
/**
|
|
245349
|
-
|
|
245350
|
-
|
|
245351
|
-
|
|
245352
|
-
|
|
245506
|
+
* construct a CurveCollection containing boundary edges.
|
|
245507
|
+
* * each edge is a LineSegment3d
|
|
245508
|
+
* @param source polyface or visitor
|
|
245509
|
+
* @param includeDanglers true to in include typical boundary edges with a single incident facet
|
|
245510
|
+
* @param includeMismatch true to include edges with more than 2 incident facets
|
|
245511
|
+
* @param includeNull true to include edges with identical start and end vertex indices.
|
|
245512
|
+
* @returns
|
|
245513
|
+
*/
|
|
245353
245514
|
static boundaryEdges(source, includeDanglers = true, includeMismatch = true, includeNull = true) {
|
|
245515
|
+
const result = new _curve_CurveCollection__WEBPACK_IMPORTED_MODULE_2__.BagOfCurves();
|
|
245516
|
+
const announceEdge = (pointA, pointB, _indexA, _indexB, _readIndex) => {
|
|
245517
|
+
result.tryAddChild(_curve_LineSegment3d__WEBPACK_IMPORTED_MODULE_10__.LineSegment3d.create(pointA, pointB));
|
|
245518
|
+
};
|
|
245519
|
+
PolyfaceQuery.announceBoundaryEdges(source, announceEdge, includeDanglers, includeMismatch, includeNull);
|
|
245520
|
+
if (result.children.length === 0)
|
|
245521
|
+
return undefined;
|
|
245522
|
+
return result;
|
|
245523
|
+
}
|
|
245524
|
+
/**
|
|
245525
|
+
* Test if the facets in `source` occur in perfectly mated pairs, as is required for a closed manifold volume.
|
|
245526
|
+
* If not, extract the boundary edges as lines.
|
|
245527
|
+
* @param source polyface or visitor
|
|
245528
|
+
* @param announceEdge function to be called with each boundary edge. The announcement is start and end points, start and end indices, and facet index.
|
|
245529
|
+
* @param includeDanglers true to in include typical boundary edges with a single incident facet
|
|
245530
|
+
* @param includeMismatch true to include edges with more than 2 incident facets
|
|
245531
|
+
* @param includeNull true to include edges with identical start and end vertex indices.
|
|
245532
|
+
*/
|
|
245533
|
+
static announceBoundaryEdges(source, announceEdge, includeDanglers = true, includeMismatch = true, includeNull = true) {
|
|
245354
245534
|
if (source === undefined)
|
|
245355
245535
|
return undefined;
|
|
245356
245536
|
const edges = new _IndexedEdgeMatcher__WEBPACK_IMPORTED_MODULE_9__.IndexedEdgeMatcher();
|
|
245357
245537
|
const visitor = source instanceof _Polyface__WEBPACK_IMPORTED_MODULE_3__.Polyface ? source.createVisitor(1) : source;
|
|
245538
|
+
visitor.setNumWrap(1);
|
|
245358
245539
|
visitor.reset();
|
|
245359
245540
|
while (visitor.moveToNextFacet()) {
|
|
245360
245541
|
const numEdges = visitor.pointCount - 1;
|
|
@@ -245376,7 +245557,6 @@ class PolyfaceQuery {
|
|
|
245376
245557
|
if (badList.length === 0)
|
|
245377
245558
|
return undefined;
|
|
245378
245559
|
const sourcePolyface = visitor.clientPolyface();
|
|
245379
|
-
const result = new _curve_CurveCollection__WEBPACK_IMPORTED_MODULE_2__.BagOfCurves();
|
|
245380
245560
|
for (const list of badList) {
|
|
245381
245561
|
for (const e of list) {
|
|
245382
245562
|
const e1 = e instanceof _IndexedEdgeMatcher__WEBPACK_IMPORTED_MODULE_9__.SortableEdge ? e : e[0];
|
|
@@ -245385,10 +245565,9 @@ class PolyfaceQuery {
|
|
|
245385
245565
|
const pointA = sourcePolyface.data.getPoint(indexA);
|
|
245386
245566
|
const pointB = sourcePolyface.data.getPoint(indexB);
|
|
245387
245567
|
if (pointA && pointB)
|
|
245388
|
-
|
|
245568
|
+
announceEdge(pointA, pointB, indexA, indexB, visitor.currentReadIndex());
|
|
245389
245569
|
}
|
|
245390
245570
|
}
|
|
245391
|
-
return result;
|
|
245392
245571
|
}
|
|
245393
245572
|
/** Find segments (within the linestring) which project to facets.
|
|
245394
245573
|
* * Announce each pair of linestring segment and on-facet segment through a callback.
|
|
@@ -245531,16 +245710,131 @@ class PolyfaceQuery {
|
|
|
245531
245710
|
const visitor = _IndexedPolyfaceVisitor__WEBPACK_IMPORTED_MODULE_14__.IndexedPolyfaceSubsetVisitor.createSubsetVisitor(polyface, partitionedIndices[visibilitySelect], 1);
|
|
245532
245711
|
return this.boundaryEdges(visitor, true, false, false);
|
|
245533
245712
|
}
|
|
245534
|
-
/**
|
|
245535
|
-
*
|
|
245713
|
+
/**
|
|
245714
|
+
* Search for edges with only 1 incident facet.
|
|
245715
|
+
* * chain them into loops
|
|
245716
|
+
* * emit the loops to the announceLoop function
|
|
245717
|
+
* @param mesh
|
|
245718
|
+
*/
|
|
245719
|
+
static announceBoundaryChainsAsLineString3d(mesh, announceLoop) {
|
|
245720
|
+
const collector = new _curve_internalContexts_MultiChainCollector__WEBPACK_IMPORTED_MODULE_15__.MultiChainCollector(_Geometry__WEBPACK_IMPORTED_MODULE_5__.Geometry.smallMetricDistance, 1000);
|
|
245721
|
+
PolyfaceQuery.announceBoundaryEdges(mesh, (pointA, pointB, _indexA, _indexB) => collector.captureCurve(_curve_LineSegment3d__WEBPACK_IMPORTED_MODULE_10__.LineSegment3d.create(pointA, pointB)), true, false, false);
|
|
245722
|
+
collector.announceChainsAsLineString3d(announceLoop);
|
|
245723
|
+
}
|
|
245724
|
+
/**
|
|
245725
|
+
* Return a mesh with
|
|
245726
|
+
* * clusters of adjacent, coplanar facets merged into larger facets.
|
|
245727
|
+
* * other facets included unchanged.
|
|
245728
|
+
* @param mesh existing mesh
|
|
245729
|
+
* @returns
|
|
245730
|
+
*/
|
|
245731
|
+
static cloneWithMaximalPlanarFacets(mesh) {
|
|
245732
|
+
PolyfaceQuery.markPairedEdgesInvisible(mesh, _geometry3d_Angle__WEBPACK_IMPORTED_MODULE_13__.Angle.createRadians(_Geometry__WEBPACK_IMPORTED_MODULE_5__.Geometry.smallAngleRadians));
|
|
245733
|
+
const partitions = PolyfaceQuery.partitionFacetIndicesByEdgeConnectedComponent(mesh, true);
|
|
245734
|
+
const builder = _PolyfaceBuilder__WEBPACK_IMPORTED_MODULE_16__.PolyfaceBuilder.create();
|
|
245735
|
+
const visitor = mesh.createVisitor(0);
|
|
245736
|
+
const planarPartitions = [];
|
|
245737
|
+
for (const partition of partitions) {
|
|
245738
|
+
if (partition.length === 1) {
|
|
245739
|
+
if (visitor.moveToReadIndex(partition[0]))
|
|
245740
|
+
builder.addFacetFromVisitor(visitor);
|
|
245741
|
+
}
|
|
245742
|
+
else {
|
|
245743
|
+
// This is a non-trivial set of contiguous coplanar facets
|
|
245744
|
+
planarPartitions.push(partition);
|
|
245745
|
+
}
|
|
245746
|
+
}
|
|
245747
|
+
const fragmentPolyfaces = PolyfaceQuery.clonePartitions(mesh, planarPartitions);
|
|
245748
|
+
const gapTolerance = 1.0e-4;
|
|
245749
|
+
const planarityTolerance = 1.0e-4;
|
|
245750
|
+
for (const fragment of fragmentPolyfaces) {
|
|
245751
|
+
const edges = [];
|
|
245752
|
+
const edgeStrings = [];
|
|
245753
|
+
PolyfaceQuery.announceBoundaryEdges(fragment, (pointA, pointB, _indexA, _indexB) => {
|
|
245754
|
+
edges.push(_curve_LineSegment3d__WEBPACK_IMPORTED_MODULE_10__.LineSegment3d.create(pointA, pointB));
|
|
245755
|
+
edgeStrings.push([pointA.clone(), pointB.clone()]);
|
|
245756
|
+
});
|
|
245757
|
+
const chains = _curve_internalContexts_MultiChainCollector__WEBPACK_IMPORTED_MODULE_15__.OffsetHelpers.collectChains(edges, gapTolerance, planarityTolerance);
|
|
245758
|
+
if (chains) {
|
|
245759
|
+
const frameBuilder = new _geometry3d_FrameBuilder__WEBPACK_IMPORTED_MODULE_17__.FrameBuilder();
|
|
245760
|
+
frameBuilder.announce(chains);
|
|
245761
|
+
const frame = frameBuilder.getValidatedFrame(false);
|
|
245762
|
+
if (frame !== undefined) {
|
|
245763
|
+
const inverseFrame = frame.inverse();
|
|
245764
|
+
if (inverseFrame !== undefined) {
|
|
245765
|
+
inverseFrame.multiplyPoint3dArrayArrayInPlace(edgeStrings);
|
|
245766
|
+
const graph = _topology_Merging__WEBPACK_IMPORTED_MODULE_18__.HalfEdgeGraphMerge.formGraphFromChains(edgeStrings, true, _topology_Graph__WEBPACK_IMPORTED_MODULE_19__.HalfEdgeMask.BOUNDARY_EDGE);
|
|
245767
|
+
if (graph) {
|
|
245768
|
+
_topology_HalfEdgeGraphSearch__WEBPACK_IMPORTED_MODULE_20__.HalfEdgeGraphSearch.collectConnectedComponentsWithExteriorParityMasks(graph, new _topology_HalfEdgeGraphSearch__WEBPACK_IMPORTED_MODULE_20__.HalfEdgeMaskTester(_topology_Graph__WEBPACK_IMPORTED_MODULE_19__.HalfEdgeMask.BOUNDARY_EDGE), _topology_Graph__WEBPACK_IMPORTED_MODULE_19__.HalfEdgeMask.EXTERIOR);
|
|
245769
|
+
// this.purgeNullFaces(HalfEdgeMask.EXTERIOR);
|
|
245770
|
+
const polyface1 = _PolyfaceBuilder__WEBPACK_IMPORTED_MODULE_16__.PolyfaceBuilder.graphToPolyface(graph);
|
|
245771
|
+
builder.addIndexedPolyface(polyface1, false, frame);
|
|
245772
|
+
}
|
|
245773
|
+
}
|
|
245774
|
+
}
|
|
245775
|
+
}
|
|
245776
|
+
}
|
|
245777
|
+
return builder.claimPolyface(true);
|
|
245778
|
+
}
|
|
245779
|
+
/**
|
|
245780
|
+
* Return a mesh with "some" holes filled in with new facets.
|
|
245781
|
+
* * The candidates to be filled are all loops returned by boundaryChainsAsLineString3d
|
|
245782
|
+
* * unclosed chains are rejected.
|
|
245783
|
+
* * optionally also copy the original mesh, so the composite is a clone with holes filled.
|
|
245784
|
+
* * The options structure enforces restrictions on how complicated the hole filling can be:
|
|
245785
|
+
* * maxEdgesAroundHole -- holes with more edges are skipped
|
|
245786
|
+
* * maxPerimeter -- holes with larger summed edge lengths are skipped.
|
|
245787
|
+
* * upVector -- holes that do not have positive area along this view are skipped.
|
|
245788
|
+
* * includeOriginalMesh -- includes the original mesh in the output mesh.
|
|
245789
|
+
* @param mesh existing mesh
|
|
245790
|
+
* @param options options controlling the hole fill.
|
|
245791
|
+
* @param unfilledChains optional array to receive the points around holes that were not filled.
|
|
245792
|
+
* @returns
|
|
245536
245793
|
*/
|
|
245794
|
+
static fillSimpleHoles(mesh, options, unfilledChains) {
|
|
245795
|
+
if (mesh instanceof _Polyface__WEBPACK_IMPORTED_MODULE_3__.IndexedPolyface)
|
|
245796
|
+
return this.fillSimpleHoles(mesh.createVisitor(0), options, unfilledChains);
|
|
245797
|
+
const builder = _PolyfaceBuilder__WEBPACK_IMPORTED_MODULE_16__.PolyfaceBuilder.create();
|
|
245798
|
+
const chains = [];
|
|
245799
|
+
PolyfaceQuery.announceBoundaryChainsAsLineString3d(mesh, (ls) => { ls.reverseInPlace(); chains.push(ls); });
|
|
245800
|
+
for (const c of chains) {
|
|
245801
|
+
const points = c.points;
|
|
245802
|
+
let rejected = false;
|
|
245803
|
+
if (!c.isPhysicallyClosed)
|
|
245804
|
+
rejected = true;
|
|
245805
|
+
else if (options.maxEdgesAroundHole !== undefined && points.length > options.maxEdgesAroundHole)
|
|
245806
|
+
rejected = true;
|
|
245807
|
+
else if (options.maxPerimeter !== undefined && _geometry3d_PointHelpers__WEBPACK_IMPORTED_MODULE_21__.Point3dArray.sumEdgeLengths(points, false) > options.maxPerimeter)
|
|
245808
|
+
rejected = true;
|
|
245809
|
+
else if (options.upVector !== undefined && _geometry3d_PolygonOps__WEBPACK_IMPORTED_MODULE_4__.PolygonOps.sumTriangleAreasPerpendicularToUpVector(points, options.upVector) <= 0.0)
|
|
245810
|
+
rejected = true;
|
|
245811
|
+
if (!rejected && _topology_SpaceTriangulation__WEBPACK_IMPORTED_MODULE_22__.SpacePolygonTriangulation.triangulateSimplestSpaceLoop(points, (_loop, triangles) => {
|
|
245812
|
+
for (const t of triangles)
|
|
245813
|
+
builder.addPolygon(t);
|
|
245814
|
+
})) {
|
|
245815
|
+
}
|
|
245816
|
+
else {
|
|
245817
|
+
rejected = true;
|
|
245818
|
+
}
|
|
245819
|
+
if (rejected && unfilledChains !== undefined)
|
|
245820
|
+
unfilledChains.push(c); // yes, capture it -- this scope owns the chains and has no further use for it.
|
|
245821
|
+
}
|
|
245822
|
+
if (options.includeOriginalMesh !== undefined && options.includeOriginalMesh) {
|
|
245823
|
+
for (mesh.reset(); mesh.moveToNextFacet();)
|
|
245824
|
+
builder.addFacetFromVisitor(mesh);
|
|
245825
|
+
}
|
|
245826
|
+
return builder.claimPolyface(true);
|
|
245827
|
+
}
|
|
245828
|
+
/** Clone the facets in each partition to a separate polyface.
|
|
245829
|
+
*
|
|
245830
|
+
*/
|
|
245537
245831
|
static clonePartitions(polyface, partitions) {
|
|
245538
245832
|
if (polyface instanceof _Polyface__WEBPACK_IMPORTED_MODULE_3__.Polyface) {
|
|
245539
245833
|
return this.clonePartitions(polyface.createVisitor(0), partitions);
|
|
245540
245834
|
}
|
|
245541
245835
|
polyface.setNumWrap(0);
|
|
245542
245836
|
const polyfaces = [];
|
|
245543
|
-
const options =
|
|
245837
|
+
const options = _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_23__.StrokeOptions.createForFacets();
|
|
245544
245838
|
options.needNormals = polyface.normal !== undefined;
|
|
245545
245839
|
options.needParams = polyface.param !== undefined;
|
|
245546
245840
|
options.needColors = polyface.color !== undefined;
|
|
@@ -245563,7 +245857,7 @@ class PolyfaceQuery {
|
|
|
245563
245857
|
return this.cloneFiltered(source.createVisitor(0), filter);
|
|
245564
245858
|
}
|
|
245565
245859
|
source.setNumWrap(0);
|
|
245566
|
-
const options =
|
|
245860
|
+
const options = _curve_StrokeOptions__WEBPACK_IMPORTED_MODULE_23__.StrokeOptions.createForFacets();
|
|
245567
245861
|
options.needNormals = source.normal !== undefined;
|
|
245568
245862
|
options.needParams = source.param !== undefined;
|
|
245569
245863
|
options.needColors = source.color !== undefined;
|
|
@@ -245595,9 +245889,9 @@ class PolyfaceQuery {
|
|
|
245595
245889
|
/** Search the facets for facet subsets that are connected with at least edge contact.
|
|
245596
245890
|
* * Return array of arrays of facet indices.
|
|
245597
245891
|
*/
|
|
245598
|
-
static partitionFacetIndicesByEdgeConnectedComponent(polyface) {
|
|
245892
|
+
static partitionFacetIndicesByEdgeConnectedComponent(polyface, stopAtVisibleEdges = false) {
|
|
245599
245893
|
if (polyface instanceof _Polyface__WEBPACK_IMPORTED_MODULE_3__.Polyface) {
|
|
245600
|
-
return this.partitionFacetIndicesByEdgeConnectedComponent(polyface.createVisitor(0));
|
|
245894
|
+
return this.partitionFacetIndicesByEdgeConnectedComponent(polyface.createVisitor(0), stopAtVisibleEdges);
|
|
245601
245895
|
}
|
|
245602
245896
|
polyface.setNumWrap(1);
|
|
245603
245897
|
const matcher = new _IndexedEdgeMatcher__WEBPACK_IMPORTED_MODULE_9__.IndexedEdgeMatcher();
|
|
@@ -245607,7 +245901,11 @@ class PolyfaceQuery {
|
|
|
245607
245901
|
const numEdges = polyface.pointCount - 1;
|
|
245608
245902
|
numFacets++;
|
|
245609
245903
|
for (let i = 0; i < numEdges; i++) {
|
|
245610
|
-
|
|
245904
|
+
if (stopAtVisibleEdges && polyface.edgeVisible[i]) {
|
|
245905
|
+
}
|
|
245906
|
+
else {
|
|
245907
|
+
matcher.addEdge(polyface.clientPointIndex(i), polyface.clientPointIndex(i + 1), polyface.currentReadIndex());
|
|
245908
|
+
}
|
|
245611
245909
|
}
|
|
245612
245910
|
}
|
|
245613
245911
|
const allEdges = [];
|
|
@@ -245668,7 +245966,7 @@ class PolyfaceQuery {
|
|
|
245668
245966
|
* * Return chains.
|
|
245669
245967
|
*/
|
|
245670
245968
|
static sweepLinestringToFacetsXYReturnChains(linestringPoints, polyface) {
|
|
245671
|
-
const chainContext =
|
|
245969
|
+
const chainContext = _topology_ChainMerge__WEBPACK_IMPORTED_MODULE_24__.ChainMergeContext.create();
|
|
245672
245970
|
this.announceSweepLinestringToConvexPolyfaceXY(linestringPoints, polyface, (_linestring, _segmentIndex, _polyface, _facetIndex, points, indexA, indexB) => {
|
|
245673
245971
|
chainContext.addSegment(points[indexA], points[indexB]);
|
|
245674
245972
|
});
|
|
@@ -245682,7 +245980,7 @@ class PolyfaceQuery {
|
|
|
245682
245980
|
* * Return chains.
|
|
245683
245981
|
*/
|
|
245684
245982
|
static async asyncSweepLinestringToFacetsXYReturnChains(linestringPoints, polyface) {
|
|
245685
|
-
const chainContext =
|
|
245983
|
+
const chainContext = _topology_ChainMerge__WEBPACK_IMPORTED_MODULE_24__.ChainMergeContext.create();
|
|
245686
245984
|
await Promise.resolve(this.asyncAnnounceSweepLinestringToConvexPolyfaceXY(linestringPoints, polyface, (_linestring, _segmentIndex, _polyface, _facetIndex, points, indexA, indexB) => {
|
|
245687
245985
|
chainContext.addSegment(points[indexA], points[indexB]);
|
|
245688
245986
|
}));
|
|
@@ -245698,7 +245996,7 @@ class PolyfaceQuery {
|
|
|
245698
245996
|
if (polyface instanceof _Polyface__WEBPACK_IMPORTED_MODULE_3__.Polyface) {
|
|
245699
245997
|
return this.collectRangeLengthData(polyface.createVisitor(0));
|
|
245700
245998
|
}
|
|
245701
|
-
const rangeData = new
|
|
245999
|
+
const rangeData = new _RangeLengthData__WEBPACK_IMPORTED_MODULE_25__.RangeLengthData();
|
|
245702
246000
|
// polyface is a visitor ...
|
|
245703
246001
|
for (polyface.reset(); polyface.moveToNextFacet();)
|
|
245704
246002
|
rangeData.accumulateGrowableXYZArrayRange(polyface.point);
|
|
@@ -245710,9 +246008,9 @@ class PolyfaceQuery {
|
|
|
245710
246008
|
static cloneWithTVertexFixup(polyface) {
|
|
245711
246009
|
const oldFacetVisitor = polyface.createVisitor(1); // This is to visit the existing facets.
|
|
245712
246010
|
const newFacetVisitor = polyface.createVisitor(0); // This is to build the new facets.
|
|
245713
|
-
const rangeSearcher =
|
|
246011
|
+
const rangeSearcher = _multiclip_XYPointBuckets__WEBPACK_IMPORTED_MODULE_26__.XYPointBuckets.create(polyface.data.point, 30);
|
|
245714
246012
|
const builder = _PolyfaceBuilder__WEBPACK_IMPORTED_MODULE_16__.PolyfaceBuilder.create();
|
|
245715
|
-
const edgeRange =
|
|
246013
|
+
const edgeRange = _geometry3d_Range__WEBPACK_IMPORTED_MODULE_27__.Range3d.createNull();
|
|
245716
246014
|
const point0 = _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_6__.Point3d.create();
|
|
245717
246015
|
const point1 = _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_6__.Point3d.create();
|
|
245718
246016
|
const spacePoint = _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_6__.Point3d.create();
|
|
@@ -245751,7 +246049,7 @@ class PolyfaceQuery {
|
|
|
245751
246049
|
}
|
|
245752
246050
|
}
|
|
245753
246051
|
}
|
|
245754
|
-
builder.addFacetFromGrowableArrays(newFacetVisitor.point, newFacetVisitor.normal, newFacetVisitor.param, newFacetVisitor.color);
|
|
246052
|
+
builder.addFacetFromGrowableArrays(newFacetVisitor.point, newFacetVisitor.normal, newFacetVisitor.param, newFacetVisitor.color, newFacetVisitor.edgeVisible);
|
|
245755
246053
|
}
|
|
245756
246054
|
return builder.claimPolyface();
|
|
245757
246055
|
}
|
|
@@ -245906,7 +246204,7 @@ class PolyfaceQuery {
|
|
|
245906
246204
|
}
|
|
245907
246205
|
}
|
|
245908
246206
|
if (newFacetVisitor.point.length > 2)
|
|
245909
|
-
builder.addFacetFromGrowableArrays(newFacetVisitor.point, newFacetVisitor.normal, newFacetVisitor.param, newFacetVisitor.color);
|
|
246207
|
+
builder.addFacetFromGrowableArrays(newFacetVisitor.point, newFacetVisitor.normal, newFacetVisitor.param, newFacetVisitor.color, newFacetVisitor.edgeVisible);
|
|
245910
246208
|
}
|
|
245911
246209
|
return builder.claimPolyface();
|
|
245912
246210
|
}
|
|
@@ -246022,14 +246320,14 @@ class PolyfaceQuery {
|
|
|
246022
246320
|
* @param mesh
|
|
246023
246321
|
*/
|
|
246024
246322
|
static reorientVertexOrderAroundFacetsForConsistentOrientation(mesh) {
|
|
246025
|
-
return
|
|
246323
|
+
return _FacetOrientation__WEBPACK_IMPORTED_MODULE_28__.FacetOrientationFixup.doFixup(mesh);
|
|
246026
246324
|
}
|
|
246027
246325
|
/**
|
|
246028
246326
|
* Set up indexed normals with one normal in the plane of each facet of the mesh.
|
|
246029
246327
|
* @param polyface
|
|
246030
246328
|
*/
|
|
246031
246329
|
static buildPerFaceNormals(polyface) {
|
|
246032
|
-
|
|
246330
|
+
_multiclip_BuildAverageNormalsContext__WEBPACK_IMPORTED_MODULE_29__.BuildAverageNormalsContext.buildPerFaceNormals(polyface);
|
|
246033
246331
|
}
|
|
246034
246332
|
/**
|
|
246035
246333
|
* * At each vertex of the mesh
|
|
@@ -246042,7 +246340,7 @@ class PolyfaceQuery {
|
|
|
246042
246340
|
* @param toleranceAngle averaging is done between normals up to this angle.
|
|
246043
246341
|
*/
|
|
246044
246342
|
static buildAverageNormals(polyface, toleranceAngle = _geometry3d_Angle__WEBPACK_IMPORTED_MODULE_13__.Angle.createDegrees(31.0)) {
|
|
246045
|
-
|
|
246343
|
+
_multiclip_BuildAverageNormalsContext__WEBPACK_IMPORTED_MODULE_29__.BuildAverageNormalsContext.buildFastAverageNormals(polyface, toleranceAngle);
|
|
246046
246344
|
}
|
|
246047
246345
|
}
|
|
246048
246346
|
// amount of computation to do per step of async methods.
|
|
@@ -256617,6 +256915,37 @@ class Sample {
|
|
|
256617
256915
|
point0.push(point0[0].clone());
|
|
256618
256916
|
return point0;
|
|
256619
256917
|
}
|
|
256918
|
+
/**
|
|
256919
|
+
* Create a mesh with
|
|
256920
|
+
* * xy facets are 1x1 quads starting at origin
|
|
256921
|
+
* * acceptFunction is called to accept or reject each quad's lower left xy coordinates
|
|
256922
|
+
* @param xzPoints array of points in the xz plane. Expected to have increasing x and all integer coordinates.
|
|
256923
|
+
* @param ySweep distance to sweep in y direction
|
|
256924
|
+
* @param acceptFunction (x0: number, y0: number)=> boolean
|
|
256925
|
+
*/
|
|
256926
|
+
static sweepXZLineStringToMeshWithHoles(xzPoints, ySweep, acceptFunction) {
|
|
256927
|
+
const builder = _polyface_PolyfaceBuilder__WEBPACK_IMPORTED_MODULE_48__.PolyfaceBuilder.create();
|
|
256928
|
+
for (let i0 = 0; i0 + 1 < xzPoints.length; i0++) {
|
|
256929
|
+
const x0 = xzPoints[i0][0];
|
|
256930
|
+
const z0 = xzPoints[i0][1];
|
|
256931
|
+
const i1 = i0 + 1;
|
|
256932
|
+
const x1 = xzPoints[i1][0];
|
|
256933
|
+
const z1 = xzPoints[i1][1];
|
|
256934
|
+
for (let xA = x0; xA + 1 <= x1; xA++) {
|
|
256935
|
+
const xB = xA + 1;
|
|
256936
|
+
const sA = (xA - x0) / (x1 - x0);
|
|
256937
|
+
const sB = (xB - x0) / (x1 - x0);
|
|
256938
|
+
const zA = _Geometry__WEBPACK_IMPORTED_MODULE_5__.Geometry.interpolate(z0, sA, z1);
|
|
256939
|
+
const zB = _Geometry__WEBPACK_IMPORTED_MODULE_5__.Geometry.interpolate(z0, sB, z1);
|
|
256940
|
+
for (let yC = 0; yC + 1 <= ySweep; yC++) {
|
|
256941
|
+
const yD = yC + 1;
|
|
256942
|
+
if (acceptFunction(xA, yC))
|
|
256943
|
+
builder.addPolygon([_geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(xA, yC, zA), _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(xB, yC, zB), _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(xB, yD, zB), _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(xA, yD, zA)]);
|
|
256944
|
+
}
|
|
256945
|
+
}
|
|
256946
|
+
}
|
|
256947
|
+
return builder.claimPolyface(true);
|
|
256948
|
+
}
|
|
256620
256949
|
}
|
|
256621
256950
|
/** Array with assorted Point2d samples */
|
|
256622
256951
|
Sample.point2d = [
|
|
@@ -264676,6 +265005,156 @@ class SignedDataSummary {
|
|
|
264676
265005
|
}
|
|
264677
265006
|
|
|
264678
265007
|
|
|
265008
|
+
/***/ }),
|
|
265009
|
+
|
|
265010
|
+
/***/ "../../core/geometry/lib/esm/topology/SpaceTriangulation.js":
|
|
265011
|
+
/*!******************************************************************!*\
|
|
265012
|
+
!*** ../../core/geometry/lib/esm/topology/SpaceTriangulation.js ***!
|
|
265013
|
+
\******************************************************************/
|
|
265014
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
265015
|
+
|
|
265016
|
+
"use strict";
|
|
265017
|
+
__webpack_require__.r(__webpack_exports__);
|
|
265018
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
265019
|
+
/* harmony export */ "SpacePolygonTriangulation": () => (/* binding */ SpacePolygonTriangulation)
|
|
265020
|
+
/* harmony export */ });
|
|
265021
|
+
/* harmony import */ var _curve_LineString3d__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../curve/LineString3d */ "../../core/geometry/lib/esm/curve/LineString3d.js");
|
|
265022
|
+
/* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
|
|
265023
|
+
/* harmony import */ var _geometry3d_PointHelpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../geometry3d/PointHelpers */ "../../core/geometry/lib/esm/geometry3d/PointHelpers.js");
|
|
265024
|
+
/* harmony import */ var _geometry3d_PolygonOps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../geometry3d/PolygonOps */ "../../core/geometry/lib/esm/geometry3d/PolygonOps.js");
|
|
265025
|
+
/* harmony import */ var _geometry3d_PolylineOps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../geometry3d/PolylineOps */ "../../core/geometry/lib/esm/geometry3d/PolylineOps.js");
|
|
265026
|
+
/*---------------------------------------------------------------------------------------------
|
|
265027
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
265028
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
265029
|
+
*--------------------------------------------------------------------------------------------*/
|
|
265030
|
+
/** @packageDocumentation
|
|
265031
|
+
* @module Topology
|
|
265032
|
+
*/
|
|
265033
|
+
|
|
265034
|
+
|
|
265035
|
+
|
|
265036
|
+
|
|
265037
|
+
|
|
265038
|
+
/**
|
|
265039
|
+
* Class with static methods to triangulate various forms of possibly non-planar polygons.
|
|
265040
|
+
* @public
|
|
265041
|
+
*/
|
|
265042
|
+
class SpacePolygonTriangulation {
|
|
265043
|
+
/**
|
|
265044
|
+
* * Return a number which is:
|
|
265045
|
+
* * 0 for collapsed (zero area) triangle
|
|
265046
|
+
* * positive for non-zero area
|
|
265047
|
+
* * larger is "better"
|
|
265048
|
+
* * Specifically, return (if well defined) the area divided by summed squares of edge lengths.
|
|
265049
|
+
* @param point0
|
|
265050
|
+
* @param point1
|
|
265051
|
+
* @param point2
|
|
265052
|
+
*/
|
|
265053
|
+
static spaceTriangleAspectRatio(point0, point1, point2) {
|
|
265054
|
+
const crossProduct = point0.crossProductToPoints(point1, point2);
|
|
265055
|
+
const area = 0.5 * crossProduct.magnitude();
|
|
265056
|
+
const summedEdgeSquares = point0.distanceSquared(point1) + point1.distanceSquared(point2) + point2.distanceSquared(point0);
|
|
265057
|
+
return _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.safeDivideFraction(area, summedEdgeSquares, 0.0);
|
|
265058
|
+
}
|
|
265059
|
+
/**
|
|
265060
|
+
* * Treat a space quad as two triangles with interior diagonal from point0 to point2
|
|
265061
|
+
* * Return the smaller of the aspect ratios of the two triangles.
|
|
265062
|
+
* * The quad edges proceed in the order [point0, point1, point2, point3]
|
|
265063
|
+
* @param point0 first point of quad
|
|
265064
|
+
* @param point1 second point of quad (diagonally opposite of point3)
|
|
265065
|
+
* @param point2 third point (diagonally opposite point0)
|
|
265066
|
+
* @param point3 fourth point
|
|
265067
|
+
*/
|
|
265068
|
+
static spaceQuadDiagonalAspectRatio(point0, point1, point2, point3) {
|
|
265069
|
+
const q012 = this.spaceTriangleAspectRatio(point0, point1, point2);
|
|
265070
|
+
const q023 = this.spaceTriangleAspectRatio(point0, point2, point3);
|
|
265071
|
+
return Math.max(q012, q023);
|
|
265072
|
+
}
|
|
265073
|
+
/** "Triangulate" by cutting of the ear with best aspect ratio. Reject if successive normals have negative dot product with PolygonOps.AreaNormal */
|
|
265074
|
+
static triangulateGreedyEarCut(points, announceLoopAndTriangles) {
|
|
265075
|
+
const normalA = _geometry3d_PolygonOps__WEBPACK_IMPORTED_MODULE_1__.PolygonOps.areaNormal(points);
|
|
265076
|
+
const triangles = [];
|
|
265077
|
+
const myPoints = points.slice();
|
|
265078
|
+
_geometry3d_PolylineOps__WEBPACK_IMPORTED_MODULE_2__.PolylineOps.removeClosurePoint(myPoints);
|
|
265079
|
+
// first pass deals with entire array.
|
|
265080
|
+
// each pass lops off one point.
|
|
265081
|
+
for (; myPoints.length > 2;) {
|
|
265082
|
+
// Find the ear candidate whose cross product vector has largest dot product (large area, best alignment with overall).
|
|
265083
|
+
let bestRatio = -1.0;
|
|
265084
|
+
let bestRatioIndex0 = 0;
|
|
265085
|
+
let i0 = myPoints.length - 2;
|
|
265086
|
+
let i1 = myPoints.length - 1;
|
|
265087
|
+
let i2;
|
|
265088
|
+
for (i2 = 0; i2 < myPoints.length; i0 = i1, i1 = i2, i2++) {
|
|
265089
|
+
const ratio = this.spaceTriangleAspectRatio(myPoints[i0], myPoints[i1], myPoints[i2]);
|
|
265090
|
+
const normalB = myPoints[i0].crossProductToPoints(myPoints[i1], myPoints[i2]);
|
|
265091
|
+
if (normalB.dotProduct(normalA) > 0 && ratio > bestRatio) {
|
|
265092
|
+
bestRatio = ratio;
|
|
265093
|
+
bestRatioIndex0 = i0;
|
|
265094
|
+
}
|
|
265095
|
+
}
|
|
265096
|
+
if (bestRatio <= 0.0)
|
|
265097
|
+
return false;
|
|
265098
|
+
// add the ear to the result
|
|
265099
|
+
i0 = bestRatioIndex0;
|
|
265100
|
+
i1 = (i0 + 1) % myPoints.length;
|
|
265101
|
+
i2 = (i1 + 1) % myPoints.length;
|
|
265102
|
+
const t = [];
|
|
265103
|
+
t.push(myPoints[i0], myPoints[i1], myPoints[i2]);
|
|
265104
|
+
// remove the middle point
|
|
265105
|
+
myPoints.splice(i1, 1);
|
|
265106
|
+
triangles.push(t);
|
|
265107
|
+
}
|
|
265108
|
+
announceLoopAndTriangles(points, triangles);
|
|
265109
|
+
return true;
|
|
265110
|
+
}
|
|
265111
|
+
static triangulateSimplestSpaceLoopGo(points, announceLoopAndTriangles, maxPerimeter) {
|
|
265112
|
+
const n = _geometry3d_PointHelpers__WEBPACK_IMPORTED_MODULE_3__.Point3dArray.countNonDuplicates(points);
|
|
265113
|
+
if (maxPerimeter !== undefined && _geometry3d_PointHelpers__WEBPACK_IMPORTED_MODULE_3__.Point3dArray.sumEdgeLengths(points, true, n) > maxPerimeter)
|
|
265114
|
+
return false;
|
|
265115
|
+
if (n < 3)
|
|
265116
|
+
return false;
|
|
265117
|
+
if (n === 3) {
|
|
265118
|
+
if (this.spaceTriangleAspectRatio(points[0], points[1], points[2]) === 0)
|
|
265119
|
+
return false;
|
|
265120
|
+
// already a triangle . . .
|
|
265121
|
+
announceLoopAndTriangles(points, [points.slice()]);
|
|
265122
|
+
return true;
|
|
265123
|
+
}
|
|
265124
|
+
if (n === 4) {
|
|
265125
|
+
const d02 = this.spaceQuadDiagonalAspectRatio(points[0], points[1], points[2], points[3]);
|
|
265126
|
+
const d13 = this.spaceQuadDiagonalAspectRatio(points[1], points[2], points[3], points[0]);
|
|
265127
|
+
if (d02 === 0.0 && d13 === 0.0)
|
|
265128
|
+
return false;
|
|
265129
|
+
// announce the two triangles with better aspect ratios ....
|
|
265130
|
+
if (d02 > d13) {
|
|
265131
|
+
announceLoopAndTriangles(points, [[points[0], points[1], points[2]], [points[2], points[3], points[0]]]);
|
|
265132
|
+
return true;
|
|
265133
|
+
}
|
|
265134
|
+
else {
|
|
265135
|
+
announceLoopAndTriangles(points, [[points[0], points[1], points[3]], [points[3], points[1], points[2]]]);
|
|
265136
|
+
return true;
|
|
265137
|
+
}
|
|
265138
|
+
}
|
|
265139
|
+
return this.triangulateGreedyEarCut(points, announceLoopAndTriangles);
|
|
265140
|
+
}
|
|
265141
|
+
/**
|
|
265142
|
+
* * Emit triangles for a (possibly non-planar) loop for various simple cases:
|
|
265143
|
+
* * only 3 points: just emit that triangle.
|
|
265144
|
+
* * only 4 points: split across a diagonal, choosing the one with better aspect ratios of its two triangles.
|
|
265145
|
+
* * BUT
|
|
265146
|
+
* * do not complete the triangulation if perimeter is larger than maxPerimeter (i.e. only consider small areas)
|
|
265147
|
+
* * Hence it is expected that the caller will use this as the first attempt, possibly followed by calls to other more adventurous methods.
|
|
265148
|
+
*/
|
|
265149
|
+
static triangulateSimplestSpaceLoop(loop, announceLoopAndTriangles, maxPerimeter) {
|
|
265150
|
+
if (loop instanceof _curve_LineString3d__WEBPACK_IMPORTED_MODULE_4__.LineString3d)
|
|
265151
|
+
return this.triangulateSimplestSpaceLoopGo(loop.points, announceLoopAndTriangles, maxPerimeter);
|
|
265152
|
+
// (array case by exhaustion)
|
|
265153
|
+
return this.triangulateSimplestSpaceLoopGo(loop, announceLoopAndTriangles, maxPerimeter);
|
|
265154
|
+
}
|
|
265155
|
+
}
|
|
265156
|
+
|
|
265157
|
+
|
|
264679
265158
|
/***/ }),
|
|
264680
265159
|
|
|
264681
265160
|
/***/ "../../core/geometry/lib/esm/topology/Triangulation.js":
|
|
@@ -287219,7 +287698,7 @@ class TestContext {
|
|
|
287219
287698
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
287220
287699
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
287221
287700
|
await core_frontend_1.NoRenderApp.startup({
|
|
287222
|
-
applicationVersion: "3.4.0-dev.
|
|
287701
|
+
applicationVersion: "3.4.0-dev.35",
|
|
287223
287702
|
applicationId: this.settings.gprid,
|
|
287224
287703
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
287225
287704
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -287320,85 +287799,86 @@ describe("Basic Scenarios", async () => {
|
|
|
287320
287799
|
__webpack_require__.r(__webpack_exports__);
|
|
287321
287800
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
287322
287801
|
/* harmony export */ "AsyncTasksTracker": () => (/* reexport safe */ _presentation_common_AsyncTasks__WEBPACK_IMPORTED_MODULE_0__.AsyncTasksTracker),
|
|
287323
|
-
/* harmony export */ "CategoryDescription": () => (/* reexport safe */
|
|
287324
|
-
/* harmony export */ "ChildNodeSpecificationTypes": () => (/* reexport safe */
|
|
287802
|
+
/* harmony export */ "CategoryDescription": () => (/* reexport safe */ _presentation_common_content_Category__WEBPACK_IMPORTED_MODULE_18__.CategoryDescription),
|
|
287803
|
+
/* harmony export */ "ChildNodeSpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_hierarchy_ChildNodeSpecification__WEBPACK_IMPORTED_MODULE_34__.ChildNodeSpecificationTypes),
|
|
287325
287804
|
/* harmony export */ "ClassInfo": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.ClassInfo),
|
|
287326
|
-
/* harmony export */ "Content": () => (/* reexport safe */
|
|
287327
|
-
/* harmony export */ "ContentFlags": () => (/* reexport safe */
|
|
287328
|
-
/* harmony export */ "ContentSpecificationTypes": () => (/* reexport safe */
|
|
287805
|
+
/* harmony export */ "Content": () => (/* reexport safe */ _presentation_common_content_Content__WEBPACK_IMPORTED_MODULE_19__.Content),
|
|
287806
|
+
/* harmony export */ "ContentFlags": () => (/* reexport safe */ _presentation_common_content_Descriptor__WEBPACK_IMPORTED_MODULE_20__.ContentFlags),
|
|
287807
|
+
/* harmony export */ "ContentSpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_content_ContentSpecification__WEBPACK_IMPORTED_MODULE_55__.ContentSpecificationTypes),
|
|
287329
287808
|
/* harmony export */ "DEFAULT_KEYS_BATCH_SIZE": () => (/* reexport safe */ _presentation_common_Utils__WEBPACK_IMPORTED_MODULE_11__.DEFAULT_KEYS_BATCH_SIZE),
|
|
287330
|
-
/* harmony export */ "DefaultContentDisplayTypes": () => (/* reexport safe */
|
|
287331
|
-
/* harmony export */ "Descriptor": () => (/* reexport safe */
|
|
287809
|
+
/* harmony export */ "DefaultContentDisplayTypes": () => (/* reexport safe */ _presentation_common_content_DisplayTypes__WEBPACK_IMPORTED_MODULE_21__.DefaultContentDisplayTypes),
|
|
287810
|
+
/* harmony export */ "Descriptor": () => (/* reexport safe */ _presentation_common_content_Descriptor__WEBPACK_IMPORTED_MODULE_20__.Descriptor),
|
|
287332
287811
|
/* harmony export */ "DiagnosticsLogEntry": () => (/* reexport safe */ _presentation_common_Diagnostics__WEBPACK_IMPORTED_MODULE_1__.DiagnosticsLogEntry),
|
|
287333
|
-
/* harmony export */ "DisplayValue": () => (/* reexport safe */
|
|
287334
|
-
/* harmony export */ "DisplayValueGroup": () => (/* reexport safe */
|
|
287812
|
+
/* harmony export */ "DisplayValue": () => (/* reexport safe */ _presentation_common_content_Value__WEBPACK_IMPORTED_MODULE_28__.DisplayValue),
|
|
287813
|
+
/* harmony export */ "DisplayValueGroup": () => (/* reexport safe */ _presentation_common_content_Value__WEBPACK_IMPORTED_MODULE_28__.DisplayValueGroup),
|
|
287335
287814
|
/* harmony export */ "ExpandedNodeUpdateRecord": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.ExpandedNodeUpdateRecord),
|
|
287336
|
-
/* harmony export */ "FIELD_NAMES_SEPARATOR": () => (/* reexport safe */
|
|
287337
|
-
/* harmony export */ "Field": () => (/* reexport safe */
|
|
287338
|
-
/* harmony export */ "FieldDescriptor": () => (/* reexport safe */
|
|
287339
|
-
/* harmony export */ "FieldDescriptorType": () => (/* reexport safe */
|
|
287340
|
-
/* harmony export */ "GroupingSpecificationTypes": () => (/* reexport safe */
|
|
287815
|
+
/* harmony export */ "FIELD_NAMES_SEPARATOR": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_29__.FIELD_NAMES_SEPARATOR),
|
|
287816
|
+
/* harmony export */ "Field": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_23__.Field),
|
|
287817
|
+
/* harmony export */ "FieldDescriptor": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_23__.FieldDescriptor),
|
|
287818
|
+
/* harmony export */ "FieldDescriptorType": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_23__.FieldDescriptorType),
|
|
287819
|
+
/* harmony export */ "GroupingSpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_46__.GroupingSpecificationTypes),
|
|
287341
287820
|
/* harmony export */ "HierarchyCompareInfo": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.HierarchyCompareInfo),
|
|
287342
287821
|
/* harmony export */ "HierarchyUpdateInfo": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.HierarchyUpdateInfo),
|
|
287343
287822
|
/* harmony export */ "HierarchyUpdateRecord": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.HierarchyUpdateRecord),
|
|
287344
287823
|
/* harmony export */ "InstanceKey": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.InstanceKey),
|
|
287345
|
-
/* harmony export */ "InstanceLabelOverrideValueSpecificationType": () => (/* reexport safe */
|
|
287346
|
-
/* harmony export */ "Item": () => (/* reexport safe */
|
|
287824
|
+
/* harmony export */ "InstanceLabelOverrideValueSpecificationType": () => (/* reexport safe */ _presentation_common_rules_customization_InstanceLabelOverride__WEBPACK_IMPORTED_MODULE_48__.InstanceLabelOverrideValueSpecificationType),
|
|
287825
|
+
/* harmony export */ "Item": () => (/* reexport safe */ _presentation_common_content_Item__WEBPACK_IMPORTED_MODULE_24__.Item),
|
|
287347
287826
|
/* harmony export */ "Key": () => (/* reexport safe */ _presentation_common_KeySet__WEBPACK_IMPORTED_MODULE_4__.Key),
|
|
287348
287827
|
/* harmony export */ "KeySet": () => (/* reexport safe */ _presentation_common_KeySet__WEBPACK_IMPORTED_MODULE_4__.KeySet),
|
|
287349
287828
|
/* harmony export */ "LabelCompositeValue": () => (/* reexport safe */ _presentation_common_LabelDefinition__WEBPACK_IMPORTED_MODULE_5__.LabelCompositeValue),
|
|
287350
287829
|
/* harmony export */ "LabelDefinition": () => (/* reexport safe */ _presentation_common_LabelDefinition__WEBPACK_IMPORTED_MODULE_5__.LabelDefinition),
|
|
287830
|
+
/* harmony export */ "LocalizationHelper": () => (/* reexport safe */ _presentation_common_LocalizationHelper__WEBPACK_IMPORTED_MODULE_13__.LocalizationHelper),
|
|
287351
287831
|
/* harmony export */ "NavigationPropertyInfo": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.NavigationPropertyInfo),
|
|
287352
|
-
/* harmony export */ "NestedContentField": () => (/* reexport safe */
|
|
287353
|
-
/* harmony export */ "NestedContentValue": () => (/* reexport safe */
|
|
287354
|
-
/* harmony export */ "Node": () => (/* reexport safe */
|
|
287355
|
-
/* harmony export */ "NodeKey": () => (/* reexport safe */
|
|
287356
|
-
/* harmony export */ "NodePathElement": () => (/* reexport safe */
|
|
287357
|
-
/* harmony export */ "NodePathFilteringData": () => (/* reexport safe */
|
|
287832
|
+
/* harmony export */ "NestedContentField": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_23__.NestedContentField),
|
|
287833
|
+
/* harmony export */ "NestedContentValue": () => (/* reexport safe */ _presentation_common_content_Value__WEBPACK_IMPORTED_MODULE_28__.NestedContentValue),
|
|
287834
|
+
/* harmony export */ "Node": () => (/* reexport safe */ _presentation_common_hierarchy_Node__WEBPACK_IMPORTED_MODULE_31__.Node),
|
|
287835
|
+
/* harmony export */ "NodeKey": () => (/* reexport safe */ _presentation_common_hierarchy_Key__WEBPACK_IMPORTED_MODULE_30__.NodeKey),
|
|
287836
|
+
/* harmony export */ "NodePathElement": () => (/* reexport safe */ _presentation_common_hierarchy_NodePathElement__WEBPACK_IMPORTED_MODULE_32__.NodePathElement),
|
|
287837
|
+
/* harmony export */ "NodePathFilteringData": () => (/* reexport safe */ _presentation_common_hierarchy_NodePathElement__WEBPACK_IMPORTED_MODULE_32__.NodePathFilteringData),
|
|
287358
287838
|
/* harmony export */ "PRESENTATION_COMMON_ROOT": () => (/* reexport safe */ _presentation_common_Utils__WEBPACK_IMPORTED_MODULE_11__.PRESENTATION_COMMON_ROOT),
|
|
287359
287839
|
/* harmony export */ "PRESENTATION_IPC_CHANNEL_NAME": () => (/* reexport safe */ _presentation_common_PresentationIpcInterface__WEBPACK_IMPORTED_MODULE_12__.PRESENTATION_IPC_CHANNEL_NAME),
|
|
287360
287840
|
/* harmony export */ "PartialHierarchyModification": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.PartialHierarchyModification),
|
|
287361
287841
|
/* harmony export */ "PresentationError": () => (/* reexport safe */ _presentation_common_Error__WEBPACK_IMPORTED_MODULE_3__.PresentationError),
|
|
287362
|
-
/* harmony export */ "PresentationIpcEvents": () => (/* reexport safe */
|
|
287363
|
-
/* harmony export */ "PresentationRpcInterface": () => (/* reexport safe */
|
|
287842
|
+
/* harmony export */ "PresentationIpcEvents": () => (/* reexport safe */ _presentation_common_PresentationRpcInterface__WEBPACK_IMPORTED_MODULE_14__.PresentationIpcEvents),
|
|
287843
|
+
/* harmony export */ "PresentationRpcInterface": () => (/* reexport safe */ _presentation_common_PresentationRpcInterface__WEBPACK_IMPORTED_MODULE_14__.PresentationRpcInterface),
|
|
287364
287844
|
/* harmony export */ "PresentationStatus": () => (/* reexport safe */ _presentation_common_Error__WEBPACK_IMPORTED_MODULE_3__.PresentationStatus),
|
|
287365
|
-
/* harmony export */ "PropertiesField": () => (/* reexport safe */
|
|
287366
|
-
/* harmony export */ "Property": () => (/* reexport safe */
|
|
287367
|
-
/* harmony export */ "PropertyEditorParameterTypes": () => (/* reexport safe */
|
|
287368
|
-
/* harmony export */ "PropertyGroupingValue": () => (/* reexport safe */
|
|
287845
|
+
/* harmony export */ "PropertiesField": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_23__.PropertiesField),
|
|
287846
|
+
/* harmony export */ "Property": () => (/* reexport safe */ _presentation_common_content_Property__WEBPACK_IMPORTED_MODULE_25__.Property),
|
|
287847
|
+
/* harmony export */ "PropertyEditorParameterTypes": () => (/* reexport safe */ _presentation_common_rules_content_modifiers_PropertyEditorsSpecification__WEBPACK_IMPORTED_MODULE_62__.PropertyEditorParameterTypes),
|
|
287848
|
+
/* harmony export */ "PropertyGroupingValue": () => (/* reexport safe */ _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_46__.PropertyGroupingValue),
|
|
287369
287849
|
/* harmony export */ "PropertyInfo": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.PropertyInfo),
|
|
287370
|
-
/* harmony export */ "PropertyValueFormat": () => (/* reexport safe */
|
|
287371
|
-
/* harmony export */ "QuerySpecificationTypes": () => (/* reexport safe */
|
|
287850
|
+
/* harmony export */ "PropertyValueFormat": () => (/* reexport safe */ _presentation_common_content_TypeDescription__WEBPACK_IMPORTED_MODULE_27__.PropertyValueFormat),
|
|
287851
|
+
/* harmony export */ "QuerySpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_hierarchy_CustomQueryInstanceNodesSpecification__WEBPACK_IMPORTED_MODULE_36__.QuerySpecificationTypes),
|
|
287372
287852
|
/* harmony export */ "RegisteredRuleset": () => (/* reexport safe */ _presentation_common_RegisteredRuleset__WEBPACK_IMPORTED_MODULE_7__.RegisteredRuleset),
|
|
287373
287853
|
/* harmony export */ "RelatedClassInfo": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.RelatedClassInfo),
|
|
287374
287854
|
/* harmony export */ "RelatedClassInfoWithOptionalRelationship": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.RelatedClassInfoWithOptionalRelationship),
|
|
287375
|
-
/* harmony export */ "RelatedPropertiesSpecialValues": () => (/* reexport safe */
|
|
287376
|
-
/* harmony export */ "RelationshipDirection": () => (/* reexport safe */
|
|
287377
|
-
/* harmony export */ "RelationshipMeaning": () => (/* reexport safe */
|
|
287855
|
+
/* harmony export */ "RelatedPropertiesSpecialValues": () => (/* reexport safe */ _presentation_common_rules_content_modifiers_RelatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_64__.RelatedPropertiesSpecialValues),
|
|
287856
|
+
/* harmony export */ "RelationshipDirection": () => (/* reexport safe */ _presentation_common_rules_RelationshipDirection__WEBPACK_IMPORTED_MODULE_67__.RelationshipDirection),
|
|
287857
|
+
/* harmony export */ "RelationshipMeaning": () => (/* reexport safe */ _presentation_common_rules_content_modifiers_RelatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_64__.RelationshipMeaning),
|
|
287378
287858
|
/* harmony export */ "RelationshipPath": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.RelationshipPath),
|
|
287379
|
-
/* harmony export */ "RpcRequestsHandler": () => (/* reexport safe */
|
|
287380
|
-
/* harmony export */ "RuleTypes": () => (/* reexport safe */
|
|
287859
|
+
/* harmony export */ "RpcRequestsHandler": () => (/* reexport safe */ _presentation_common_RpcRequestsHandler__WEBPACK_IMPORTED_MODULE_15__.RpcRequestsHandler),
|
|
287860
|
+
/* harmony export */ "RuleTypes": () => (/* reexport safe */ _presentation_common_rules_Rule__WEBPACK_IMPORTED_MODULE_69__.RuleTypes),
|
|
287381
287861
|
/* harmony export */ "RulesetVariable": () => (/* reexport safe */ _presentation_common_RulesetVariables__WEBPACK_IMPORTED_MODULE_8__.RulesetVariable),
|
|
287382
287862
|
/* harmony export */ "RulesetsFactory": () => (/* reexport safe */ _presentation_common_RulesetsFactory__WEBPACK_IMPORTED_MODULE_9__.RulesetsFactory),
|
|
287383
|
-
/* harmony export */ "SameLabelInstanceGroupApplicationStage": () => (/* reexport safe */
|
|
287384
|
-
/* harmony export */ "SelectClassInfo": () => (/* reexport safe */
|
|
287385
|
-
/* harmony export */ "SortDirection": () => (/* reexport safe */
|
|
287386
|
-
/* harmony export */ "StandardNodeTypes": () => (/* reexport safe */
|
|
287863
|
+
/* harmony export */ "SameLabelInstanceGroupApplicationStage": () => (/* reexport safe */ _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_46__.SameLabelInstanceGroupApplicationStage),
|
|
287864
|
+
/* harmony export */ "SelectClassInfo": () => (/* reexport safe */ _presentation_common_content_Descriptor__WEBPACK_IMPORTED_MODULE_20__.SelectClassInfo),
|
|
287865
|
+
/* harmony export */ "SortDirection": () => (/* reexport safe */ _presentation_common_content_Descriptor__WEBPACK_IMPORTED_MODULE_20__.SortDirection),
|
|
287866
|
+
/* harmony export */ "StandardNodeTypes": () => (/* reexport safe */ _presentation_common_hierarchy_Key__WEBPACK_IMPORTED_MODULE_30__.StandardNodeTypes),
|
|
287387
287867
|
/* harmony export */ "UPDATE_FULL": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.UPDATE_FULL),
|
|
287388
287868
|
/* harmony export */ "UpdateInfo": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.UpdateInfo),
|
|
287389
|
-
/* harmony export */ "Value": () => (/* reexport safe */
|
|
287390
|
-
/* harmony export */ "VariableValueType": () => (/* reexport safe */
|
|
287869
|
+
/* harmony export */ "Value": () => (/* reexport safe */ _presentation_common_content_Value__WEBPACK_IMPORTED_MODULE_28__.Value),
|
|
287870
|
+
/* harmony export */ "VariableValueType": () => (/* reexport safe */ _presentation_common_rules_Variables__WEBPACK_IMPORTED_MODULE_72__.VariableValueType),
|
|
287391
287871
|
/* harmony export */ "VariableValueTypes": () => (/* reexport safe */ _presentation_common_RulesetVariables__WEBPACK_IMPORTED_MODULE_8__.VariableValueTypes),
|
|
287392
|
-
/* harmony export */ "addFieldHierarchy": () => (/* reexport safe */
|
|
287393
|
-
/* harmony export */ "applyOptionalPrefix": () => (/* reexport safe */
|
|
287394
|
-
/* harmony export */ "createFieldHierarchies": () => (/* reexport safe */
|
|
287395
|
-
/* harmony export */ "getFieldByName": () => (/* reexport safe */
|
|
287872
|
+
/* harmony export */ "addFieldHierarchy": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_29__.addFieldHierarchy),
|
|
287873
|
+
/* harmony export */ "applyOptionalPrefix": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_29__.applyOptionalPrefix),
|
|
287874
|
+
/* harmony export */ "createFieldHierarchies": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_29__.createFieldHierarchies),
|
|
287875
|
+
/* harmony export */ "getFieldByName": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_23__.getFieldByName),
|
|
287396
287876
|
/* harmony export */ "getInstancesCount": () => (/* reexport safe */ _presentation_common_Utils__WEBPACK_IMPORTED_MODULE_11__.getInstancesCount),
|
|
287397
287877
|
/* harmony export */ "isComputeSelectionRequestOptions": () => (/* reexport safe */ _presentation_common_PresentationManagerOptions__WEBPACK_IMPORTED_MODULE_6__.isComputeSelectionRequestOptions),
|
|
287398
287878
|
/* harmony export */ "isSingleElementPropertiesRequestOptions": () => (/* reexport safe */ _presentation_common_PresentationManagerOptions__WEBPACK_IMPORTED_MODULE_6__.isSingleElementPropertiesRequestOptions),
|
|
287399
|
-
/* harmony export */ "traverseContent": () => (/* reexport safe */
|
|
287400
|
-
/* harmony export */ "traverseContentItem": () => (/* reexport safe */
|
|
287401
|
-
/* harmony export */ "traverseFieldHierarchy": () => (/* reexport safe */
|
|
287879
|
+
/* harmony export */ "traverseContent": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_29__.traverseContent),
|
|
287880
|
+
/* harmony export */ "traverseContentItem": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_29__.traverseContentItem),
|
|
287881
|
+
/* harmony export */ "traverseFieldHierarchy": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_29__.traverseFieldHierarchy)
|
|
287402
287882
|
/* harmony export */ });
|
|
287403
287883
|
/* harmony import */ var _presentation_common_AsyncTasks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./presentation-common/AsyncTasks */ "../../presentation/common/lib/esm/presentation-common/AsyncTasks.js");
|
|
287404
287884
|
/* harmony import */ var _presentation_common_Diagnostics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./presentation-common/Diagnostics */ "../../presentation/common/lib/esm/presentation-common/Diagnostics.js");
|
|
@@ -287413,65 +287893,66 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
287413
287893
|
/* harmony import */ var _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./presentation-common/Update */ "../../presentation/common/lib/esm/presentation-common/Update.js");
|
|
287414
287894
|
/* harmony import */ var _presentation_common_Utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./presentation-common/Utils */ "../../presentation/common/lib/esm/presentation-common/Utils.js");
|
|
287415
287895
|
/* harmony import */ var _presentation_common_PresentationIpcInterface__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./presentation-common/PresentationIpcInterface */ "../../presentation/common/lib/esm/presentation-common/PresentationIpcInterface.js");
|
|
287416
|
-
/* harmony import */ var
|
|
287417
|
-
/* harmony import */ var
|
|
287418
|
-
/* harmony import */ var
|
|
287419
|
-
/* harmony import */ var
|
|
287420
|
-
/* harmony import */ var
|
|
287421
|
-
/* harmony import */ var
|
|
287422
|
-
/* harmony import */ var
|
|
287423
|
-
/* harmony import */ var
|
|
287424
|
-
/* harmony import */ var
|
|
287425
|
-
/* harmony import */ var
|
|
287426
|
-
/* harmony import */ var
|
|
287427
|
-
/* harmony import */ var
|
|
287428
|
-
/* harmony import */ var
|
|
287429
|
-
/* harmony import */ var
|
|
287430
|
-
/* harmony import */ var
|
|
287431
|
-
/* harmony import */ var
|
|
287432
|
-
/* harmony import */ var
|
|
287433
|
-
/* harmony import */ var
|
|
287434
|
-
/* harmony import */ var
|
|
287435
|
-
/* harmony import */ var
|
|
287436
|
-
/* harmony import */ var
|
|
287437
|
-
/* harmony import */ var
|
|
287438
|
-
/* harmony import */ var
|
|
287439
|
-
/* harmony import */ var
|
|
287440
|
-
/* harmony import */ var
|
|
287441
|
-
/* harmony import */ var
|
|
287442
|
-
/* harmony import */ var
|
|
287443
|
-
/* harmony import */ var
|
|
287444
|
-
/* harmony import */ var
|
|
287445
|
-
/* harmony import */ var
|
|
287446
|
-
/* harmony import */ var
|
|
287447
|
-
/* harmony import */ var
|
|
287448
|
-
/* harmony import */ var
|
|
287449
|
-
/* harmony import */ var
|
|
287450
|
-
/* harmony import */ var
|
|
287451
|
-
/* harmony import */ var
|
|
287452
|
-
/* harmony import */ var
|
|
287453
|
-
/* harmony import */ var
|
|
287454
|
-
/* harmony import */ var
|
|
287455
|
-
/* harmony import */ var
|
|
287456
|
-
/* harmony import */ var
|
|
287457
|
-
/* harmony import */ var
|
|
287458
|
-
/* harmony import */ var
|
|
287459
|
-
/* harmony import */ var
|
|
287460
|
-
/* harmony import */ var
|
|
287461
|
-
/* harmony import */ var
|
|
287462
|
-
/* harmony import */ var
|
|
287463
|
-
/* harmony import */ var
|
|
287464
|
-
/* harmony import */ var
|
|
287465
|
-
/* harmony import */ var
|
|
287466
|
-
/* harmony import */ var
|
|
287467
|
-
/* harmony import */ var
|
|
287468
|
-
/* harmony import */ var
|
|
287469
|
-
/* harmony import */ var
|
|
287470
|
-
/* harmony import */ var
|
|
287471
|
-
/* harmony import */ var
|
|
287472
|
-
/* harmony import */ var
|
|
287473
|
-
/* harmony import */ var
|
|
287474
|
-
/* harmony import */ var
|
|
287896
|
+
/* harmony import */ var _presentation_common_LocalizationHelper__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./presentation-common/LocalizationHelper */ "../../presentation/common/lib/esm/presentation-common/LocalizationHelper.js");
|
|
287897
|
+
/* harmony import */ var _presentation_common_PresentationRpcInterface__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./presentation-common/PresentationRpcInterface */ "../../presentation/common/lib/esm/presentation-common/PresentationRpcInterface.js");
|
|
287898
|
+
/* harmony import */ var _presentation_common_RpcRequestsHandler__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./presentation-common/RpcRequestsHandler */ "../../presentation/common/lib/esm/presentation-common/RpcRequestsHandler.js");
|
|
287899
|
+
/* harmony import */ var _presentation_common_ElementProperties__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./presentation-common/ElementProperties */ "../../presentation/common/lib/esm/presentation-common/ElementProperties.js");
|
|
287900
|
+
/* harmony import */ var _presentation_common_selection_SelectionScope__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./presentation-common/selection/SelectionScope */ "../../presentation/common/lib/esm/presentation-common/selection/SelectionScope.js");
|
|
287901
|
+
/* harmony import */ var _presentation_common_content_Category__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./presentation-common/content/Category */ "../../presentation/common/lib/esm/presentation-common/content/Category.js");
|
|
287902
|
+
/* harmony import */ var _presentation_common_content_Content__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./presentation-common/content/Content */ "../../presentation/common/lib/esm/presentation-common/content/Content.js");
|
|
287903
|
+
/* harmony import */ var _presentation_common_content_Descriptor__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./presentation-common/content/Descriptor */ "../../presentation/common/lib/esm/presentation-common/content/Descriptor.js");
|
|
287904
|
+
/* harmony import */ var _presentation_common_content_DisplayTypes__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./presentation-common/content/DisplayTypes */ "../../presentation/common/lib/esm/presentation-common/content/DisplayTypes.js");
|
|
287905
|
+
/* harmony import */ var _presentation_common_content_Editor__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./presentation-common/content/Editor */ "../../presentation/common/lib/esm/presentation-common/content/Editor.js");
|
|
287906
|
+
/* harmony import */ var _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./presentation-common/content/Fields */ "../../presentation/common/lib/esm/presentation-common/content/Fields.js");
|
|
287907
|
+
/* harmony import */ var _presentation_common_content_Item__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./presentation-common/content/Item */ "../../presentation/common/lib/esm/presentation-common/content/Item.js");
|
|
287908
|
+
/* harmony import */ var _presentation_common_content_Property__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./presentation-common/content/Property */ "../../presentation/common/lib/esm/presentation-common/content/Property.js");
|
|
287909
|
+
/* harmony import */ var _presentation_common_content_Renderer__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./presentation-common/content/Renderer */ "../../presentation/common/lib/esm/presentation-common/content/Renderer.js");
|
|
287910
|
+
/* harmony import */ var _presentation_common_content_TypeDescription__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./presentation-common/content/TypeDescription */ "../../presentation/common/lib/esm/presentation-common/content/TypeDescription.js");
|
|
287911
|
+
/* harmony import */ var _presentation_common_content_Value__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./presentation-common/content/Value */ "../../presentation/common/lib/esm/presentation-common/content/Value.js");
|
|
287912
|
+
/* harmony import */ var _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./presentation-common/content/ContentTraverser */ "../../presentation/common/lib/esm/presentation-common/content/ContentTraverser.js");
|
|
287913
|
+
/* harmony import */ var _presentation_common_hierarchy_Key__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./presentation-common/hierarchy/Key */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Key.js");
|
|
287914
|
+
/* harmony import */ var _presentation_common_hierarchy_Node__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./presentation-common/hierarchy/Node */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Node.js");
|
|
287915
|
+
/* harmony import */ var _presentation_common_hierarchy_NodePathElement__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./presentation-common/hierarchy/NodePathElement */ "../../presentation/common/lib/esm/presentation-common/hierarchy/NodePathElement.js");
|
|
287916
|
+
/* harmony import */ var _presentation_common_rules_hierarchy_ChildNodeRule__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/ChildNodeRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js");
|
|
287917
|
+
/* harmony import */ var _presentation_common_rules_hierarchy_ChildNodeSpecification__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/ChildNodeSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js");
|
|
287918
|
+
/* harmony import */ var _presentation_common_rules_hierarchy_CustomNodeSpecification__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/CustomNodeSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js");
|
|
287919
|
+
/* harmony import */ var _presentation_common_rules_hierarchy_CustomQueryInstanceNodesSpecification__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js");
|
|
287920
|
+
/* harmony import */ var _presentation_common_rules_hierarchy_InstanceNodesOfSpecificClassesSpecification__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js");
|
|
287921
|
+
/* harmony import */ var _presentation_common_rules_hierarchy_NavigationRule__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/NavigationRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js");
|
|
287922
|
+
/* harmony import */ var _presentation_common_rules_hierarchy_NodeArtifactsRule__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/NodeArtifactsRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js");
|
|
287923
|
+
/* harmony import */ var _presentation_common_rules_hierarchy_RelatedInstanceNodesSpecification__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js");
|
|
287924
|
+
/* harmony import */ var _presentation_common_rules_hierarchy_RootNodeRule__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/RootNodeRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js");
|
|
287925
|
+
/* harmony import */ var _presentation_common_rules_hierarchy_SubCondition__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/SubCondition */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/SubCondition.js");
|
|
287926
|
+
/* harmony import */ var _presentation_common_rules_customization_CheckBoxRule__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./presentation-common/rules/customization/CheckBoxRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/CheckBoxRule.js");
|
|
287927
|
+
/* harmony import */ var _presentation_common_rules_customization_CustomizationRule__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./presentation-common/rules/customization/CustomizationRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/CustomizationRule.js");
|
|
287928
|
+
/* harmony import */ var _presentation_common_rules_customization_ExtendedDataRule__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./presentation-common/rules/customization/ExtendedDataRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js");
|
|
287929
|
+
/* harmony import */ var _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./presentation-common/rules/customization/GroupingRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/GroupingRule.js");
|
|
287930
|
+
/* harmony import */ var _presentation_common_rules_customization_ImageIdOverride__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./presentation-common/rules/customization/ImageIdOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/ImageIdOverride.js");
|
|
287931
|
+
/* harmony import */ var _presentation_common_rules_customization_InstanceLabelOverride__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./presentation-common/rules/customization/InstanceLabelOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js");
|
|
287932
|
+
/* harmony import */ var _presentation_common_rules_customization_LabelOverride__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./presentation-common/rules/customization/LabelOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/LabelOverride.js");
|
|
287933
|
+
/* harmony import */ var _presentation_common_rules_customization_SortingRule__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./presentation-common/rules/customization/SortingRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/SortingRule.js");
|
|
287934
|
+
/* harmony import */ var _presentation_common_rules_customization_StyleOverride__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./presentation-common/rules/customization/StyleOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/StyleOverride.js");
|
|
287935
|
+
/* harmony import */ var _presentation_common_rules_content_ContentInstancesOfSpecificClassesSpecification__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js");
|
|
287936
|
+
/* harmony import */ var _presentation_common_rules_content_ContentRelatedInstancesSpecification__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentRelatedInstancesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js");
|
|
287937
|
+
/* harmony import */ var _presentation_common_rules_content_ContentRule__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentRule */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentRule.js");
|
|
287938
|
+
/* harmony import */ var _presentation_common_rules_content_ContentSpecification__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentSpecification.js");
|
|
287939
|
+
/* harmony import */ var _presentation_common_rules_content_PropertySpecification__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./presentation-common/rules/content/PropertySpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/PropertySpecification.js");
|
|
287940
|
+
/* harmony import */ var _presentation_common_rules_content_SelectedNodeInstancesSpecification__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./presentation-common/rules/content/SelectedNodeInstancesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js");
|
|
287941
|
+
/* harmony import */ var _presentation_common_rules_content_DefaultPropertyCategoryOverride__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./presentation-common/rules/content/DefaultPropertyCategoryOverride */ "../../presentation/common/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js");
|
|
287942
|
+
/* harmony import */ var _presentation_common_rules_content_modifiers_CalculatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js");
|
|
287943
|
+
/* harmony import */ var _presentation_common_rules_content_modifiers_ContentModifier__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/ContentModifier */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js");
|
|
287944
|
+
/* harmony import */ var _presentation_common_rules_content_modifiers_PropertyCategorySpecification__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/PropertyCategorySpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js");
|
|
287945
|
+
/* harmony import */ var _presentation_common_rules_content_modifiers_PropertyEditorsSpecification__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/PropertyEditorsSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js");
|
|
287946
|
+
/* harmony import */ var _presentation_common_rules_content_modifiers_CustomRendererSpecification__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/CustomRendererSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.js");
|
|
287947
|
+
/* harmony import */ var _presentation_common_rules_content_modifiers_RelatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js");
|
|
287948
|
+
/* harmony import */ var _presentation_common_rules_ClassSpecifications__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./presentation-common/rules/ClassSpecifications */ "../../presentation/common/lib/esm/presentation-common/rules/ClassSpecifications.js");
|
|
287949
|
+
/* harmony import */ var _presentation_common_rules_RelatedInstanceSpecification__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./presentation-common/rules/RelatedInstanceSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js");
|
|
287950
|
+
/* harmony import */ var _presentation_common_rules_RelationshipDirection__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./presentation-common/rules/RelationshipDirection */ "../../presentation/common/lib/esm/presentation-common/rules/RelationshipDirection.js");
|
|
287951
|
+
/* harmony import */ var _presentation_common_rules_RelationshipPathSpecification__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./presentation-common/rules/RelationshipPathSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/RelationshipPathSpecification.js");
|
|
287952
|
+
/* harmony import */ var _presentation_common_rules_Rule__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./presentation-common/rules/Rule */ "../../presentation/common/lib/esm/presentation-common/rules/Rule.js");
|
|
287953
|
+
/* harmony import */ var _presentation_common_rules_Ruleset__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./presentation-common/rules/Ruleset */ "../../presentation/common/lib/esm/presentation-common/rules/Ruleset.js");
|
|
287954
|
+
/* harmony import */ var _presentation_common_rules_SchemasSpecification__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./presentation-common/rules/SchemasSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/SchemasSpecification.js");
|
|
287955
|
+
/* harmony import */ var _presentation_common_rules_Variables__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./presentation-common/rules/Variables */ "../../presentation/common/lib/esm/presentation-common/rules/Variables.js");
|
|
287475
287956
|
/*---------------------------------------------------------------------------------------------
|
|
287476
287957
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
287477
287958
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -287495,6 +287976,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
287495
287976
|
|
|
287496
287977
|
|
|
287497
287978
|
|
|
287979
|
+
|
|
287498
287980
|
/**
|
|
287499
287981
|
* @module RPC
|
|
287500
287982
|
*
|
|
@@ -288612,6 +289094,129 @@ var LabelDefinition;
|
|
|
288612
289094
|
})(LabelDefinition || (LabelDefinition = {}));
|
|
288613
289095
|
|
|
288614
289096
|
|
|
289097
|
+
/***/ }),
|
|
289098
|
+
|
|
289099
|
+
/***/ "../../presentation/common/lib/esm/presentation-common/LocalizationHelper.js":
|
|
289100
|
+
/*!***********************************************************************************!*\
|
|
289101
|
+
!*** ../../presentation/common/lib/esm/presentation-common/LocalizationHelper.js ***!
|
|
289102
|
+
\***********************************************************************************/
|
|
289103
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
289104
|
+
|
|
289105
|
+
"use strict";
|
|
289106
|
+
__webpack_require__.r(__webpack_exports__);
|
|
289107
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
289108
|
+
/* harmony export */ "LocalizationHelper": () => (/* binding */ LocalizationHelper)
|
|
289109
|
+
/* harmony export */ });
|
|
289110
|
+
/* harmony import */ var _LabelDefinition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LabelDefinition */ "../../presentation/common/lib/esm/presentation-common/LabelDefinition.js");
|
|
289111
|
+
/* harmony import */ var _content_Value__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./content/Value */ "../../presentation/common/lib/esm/presentation-common/content/Value.js");
|
|
289112
|
+
/*---------------------------------------------------------------------------------------------
|
|
289113
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
289114
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
289115
|
+
*--------------------------------------------------------------------------------------------*/
|
|
289116
|
+
/** @packageDocumentation
|
|
289117
|
+
* @module Core
|
|
289118
|
+
*/
|
|
289119
|
+
|
|
289120
|
+
|
|
289121
|
+
const KEY_PATTERN = /@[\w\d\-_]+:[\w\d\-\._]+?@/g;
|
|
289122
|
+
/** @internal */
|
|
289123
|
+
class LocalizationHelper {
|
|
289124
|
+
constructor(props) {
|
|
289125
|
+
this._getLocalizedString = props.getLocalizedString;
|
|
289126
|
+
}
|
|
289127
|
+
getLocalizedString(text) {
|
|
289128
|
+
return text.replace(KEY_PATTERN, (key) => this._getLocalizedString(key.replace(/^@|@$/g, "")));
|
|
289129
|
+
}
|
|
289130
|
+
getLocalizedNodes(nodes) {
|
|
289131
|
+
for (const node of nodes)
|
|
289132
|
+
this.translateNode(node);
|
|
289133
|
+
return nodes;
|
|
289134
|
+
}
|
|
289135
|
+
getLocalizedLabelDefinition(labelDefinition) {
|
|
289136
|
+
this.translateLabelDefinition(labelDefinition);
|
|
289137
|
+
return labelDefinition;
|
|
289138
|
+
}
|
|
289139
|
+
getLocalizedLabelDefinitions(labelDefinitions) {
|
|
289140
|
+
labelDefinitions.forEach((labelDefinition) => this.translateLabelDefinition(labelDefinition));
|
|
289141
|
+
return labelDefinitions;
|
|
289142
|
+
}
|
|
289143
|
+
getLocalizedContent(content) {
|
|
289144
|
+
content.contentSet.forEach((item) => this.translateContentItem(item));
|
|
289145
|
+
content.descriptor.fields.forEach((field) => this.translateContentDescriptorField(field));
|
|
289146
|
+
content.descriptor.categories.forEach((category) => this.translateContentDescriptorCategory(category));
|
|
289147
|
+
return content;
|
|
289148
|
+
}
|
|
289149
|
+
getLocalizedElementProperties(elem) {
|
|
289150
|
+
elem.label = this.getLocalizedString(elem.label);
|
|
289151
|
+
return elem;
|
|
289152
|
+
}
|
|
289153
|
+
translateContentItem(item) {
|
|
289154
|
+
for (const key in item.displayValues) {
|
|
289155
|
+
// istanbul ignore else
|
|
289156
|
+
if (key)
|
|
289157
|
+
item.displayValues[key] = this.translateContentItemDisplayValue(item.displayValues[key]);
|
|
289158
|
+
}
|
|
289159
|
+
for (const key in item.values) {
|
|
289160
|
+
// istanbul ignore else
|
|
289161
|
+
if (key)
|
|
289162
|
+
item.values[key] = this.translateContentItemValue(item.values[key]);
|
|
289163
|
+
}
|
|
289164
|
+
this.translateLabelDefinition(item.label);
|
|
289165
|
+
}
|
|
289166
|
+
translateContentItemDisplayValue(value) {
|
|
289167
|
+
// istanbul ignore else
|
|
289168
|
+
if (typeof value === "string") {
|
|
289169
|
+
value = this.getLocalizedString(value);
|
|
289170
|
+
}
|
|
289171
|
+
return value;
|
|
289172
|
+
}
|
|
289173
|
+
translateContentItemValue(value) {
|
|
289174
|
+
if (typeof value === "string") {
|
|
289175
|
+
value = this.getLocalizedString(value);
|
|
289176
|
+
}
|
|
289177
|
+
else if (_content_Value__WEBPACK_IMPORTED_MODULE_1__.Value.isNestedContent(value)) {
|
|
289178
|
+
for (const nestedValue of value) {
|
|
289179
|
+
for (const key in nestedValue.values) {
|
|
289180
|
+
// istanbul ignore else
|
|
289181
|
+
if (key)
|
|
289182
|
+
nestedValue.values[key] = this.translateContentItemValue(nestedValue.values[key]);
|
|
289183
|
+
}
|
|
289184
|
+
for (const key in nestedValue.displayValues) {
|
|
289185
|
+
// istanbul ignore else
|
|
289186
|
+
if (key)
|
|
289187
|
+
nestedValue.displayValues[key] = this.translateContentItemDisplayValue(nestedValue.displayValues[key]);
|
|
289188
|
+
}
|
|
289189
|
+
}
|
|
289190
|
+
}
|
|
289191
|
+
return value;
|
|
289192
|
+
}
|
|
289193
|
+
translateContentDescriptorField(field) {
|
|
289194
|
+
field.label = this.getLocalizedString(field.label);
|
|
289195
|
+
}
|
|
289196
|
+
translateContentDescriptorCategory(category) {
|
|
289197
|
+
category.label = this.getLocalizedString(category.label);
|
|
289198
|
+
category.description = this.getLocalizedString(category.description);
|
|
289199
|
+
}
|
|
289200
|
+
translateNode(node) {
|
|
289201
|
+
this.translateLabelDefinition(node.label);
|
|
289202
|
+
// istanbul ignore else
|
|
289203
|
+
if (node.description)
|
|
289204
|
+
node.description = this.getLocalizedString(node.description);
|
|
289205
|
+
}
|
|
289206
|
+
translateLabelDefinition(labelDefinition) {
|
|
289207
|
+
const translateComposite = (compositeValue) => {
|
|
289208
|
+
compositeValue.values.map((value) => this.translateLabelDefinition(value));
|
|
289209
|
+
};
|
|
289210
|
+
if (labelDefinition.typeName === _LabelDefinition__WEBPACK_IMPORTED_MODULE_0__.LabelDefinition.COMPOSITE_DEFINITION_TYPENAME)
|
|
289211
|
+
translateComposite(labelDefinition.rawValue);
|
|
289212
|
+
else if (labelDefinition.typeName === "string") {
|
|
289213
|
+
labelDefinition.rawValue = this.getLocalizedString(labelDefinition.rawValue);
|
|
289214
|
+
labelDefinition.displayValue = this.getLocalizedString(labelDefinition.displayValue);
|
|
289215
|
+
}
|
|
289216
|
+
}
|
|
289217
|
+
}
|
|
289218
|
+
|
|
289219
|
+
|
|
288615
289220
|
/***/ }),
|
|
288616
289221
|
|
|
288617
289222
|
/***/ "../../presentation/common/lib/esm/presentation-common/PresentationIpcInterface.js":
|
|
@@ -292970,7 +293575,7 @@ class IpcRequestsHandler {
|
|
|
292970
293575
|
"use strict";
|
|
292971
293576
|
__webpack_require__.r(__webpack_exports__);
|
|
292972
293577
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
292973
|
-
/* harmony export */ "
|
|
293578
|
+
/* harmony export */ "FrontendLocalizationHelper": () => (/* binding */ FrontendLocalizationHelper)
|
|
292974
293579
|
/* harmony export */ });
|
|
292975
293580
|
/* harmony import */ var _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/presentation-common */ "../../presentation/common/lib/esm/presentation-common.js");
|
|
292976
293581
|
/* harmony import */ var _Presentation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Presentation */ "../../presentation/frontend/lib/esm/presentation-frontend/Presentation.js");
|
|
@@ -292981,9 +293586,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
292981
293586
|
|
|
292982
293587
|
|
|
292983
293588
|
const NAMESPACES = ["BisCore", "ECPresentation", "RulesEngine"];
|
|
292984
|
-
const KEY_PATTERN = /@[\w\d\-_]+:[\w\d\-\._]+?@/g;
|
|
292985
293589
|
/** @internal */
|
|
292986
|
-
class LocalizationHelper {
|
|
293590
|
+
class FrontendLocalizationHelper extends _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_0__.LocalizationHelper {
|
|
293591
|
+
constructor(lang) {
|
|
293592
|
+
super({ getLocalizedString: (key) => _Presentation__WEBPACK_IMPORTED_MODULE_1__.Presentation.localization.getLocalizedString(key, { defaultValue: key, lng: this._lang }) });
|
|
293593
|
+
this._lang = lang;
|
|
293594
|
+
}
|
|
293595
|
+
get locale() {
|
|
293596
|
+
return this._lang;
|
|
293597
|
+
}
|
|
293598
|
+
set locale(locale) {
|
|
293599
|
+
this._lang = locale;
|
|
293600
|
+
}
|
|
292987
293601
|
static async registerNamespaces() {
|
|
292988
293602
|
const localizationPromises = NAMESPACES.map(async (namespace) => _Presentation__WEBPACK_IMPORTED_MODULE_1__.Presentation.localization.registerNamespace(namespace));
|
|
292989
293603
|
await Promise.all(localizationPromises);
|
|
@@ -292991,41 +293605,6 @@ class LocalizationHelper {
|
|
|
292991
293605
|
static unregisterNamespaces() {
|
|
292992
293606
|
NAMESPACES.map((namespace) => _Presentation__WEBPACK_IMPORTED_MODULE_1__.Presentation.localization.unregisterNamespace(namespace));
|
|
292993
293607
|
}
|
|
292994
|
-
getLocalizedString(text) {
|
|
292995
|
-
return text.replace(KEY_PATTERN, (key) => _Presentation__WEBPACK_IMPORTED_MODULE_1__.Presentation.localization.getLocalizedString(key.replace(/^@|@$/g, ""), { defaultValue: key }));
|
|
292996
|
-
}
|
|
292997
|
-
getLocalizedNodes(nodes) {
|
|
292998
|
-
for (const node of nodes)
|
|
292999
|
-
this.translateNode(node);
|
|
293000
|
-
return nodes;
|
|
293001
|
-
}
|
|
293002
|
-
getLocalizedLabelDefinition(labelDefinition) {
|
|
293003
|
-
this.translateLabelDefinition(labelDefinition);
|
|
293004
|
-
return labelDefinition;
|
|
293005
|
-
}
|
|
293006
|
-
getLocalizedLabelDefinitions(labelDefinitions) {
|
|
293007
|
-
labelDefinitions.forEach((labelDefinition) => this.translateLabelDefinition(labelDefinition));
|
|
293008
|
-
return labelDefinitions;
|
|
293009
|
-
}
|
|
293010
|
-
getLocalizedContent(content) {
|
|
293011
|
-
content.contentSet.forEach((item) => this.translateContentItem(item));
|
|
293012
|
-
return content;
|
|
293013
|
-
}
|
|
293014
|
-
translateContentItem(item) {
|
|
293015
|
-
this.translateLabelDefinition(item.label);
|
|
293016
|
-
}
|
|
293017
|
-
translateNode(node) {
|
|
293018
|
-
this.translateLabelDefinition(node.label);
|
|
293019
|
-
}
|
|
293020
|
-
translateLabelDefinition(labelDefinition) {
|
|
293021
|
-
const translateComposite = (compositeValue) => {
|
|
293022
|
-
compositeValue.values.map((value) => this.translateLabelDefinition(value));
|
|
293023
|
-
};
|
|
293024
|
-
if (labelDefinition.typeName === _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_0__.LabelDefinition.COMPOSITE_DEFINITION_TYPENAME)
|
|
293025
|
-
translateComposite(labelDefinition.rawValue);
|
|
293026
|
-
else if (labelDefinition.typeName === "string")
|
|
293027
|
-
labelDefinition.rawValue = this.getLocalizedString(labelDefinition.rawValue);
|
|
293028
|
-
}
|
|
293029
293608
|
}
|
|
293030
293609
|
|
|
293031
293610
|
|
|
@@ -293124,7 +293703,7 @@ class Presentation {
|
|
|
293124
293703
|
}
|
|
293125
293704
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
293126
293705
|
presentationManager.onNewiModelConnection = favoritePropertiesManager.initializeConnection.bind(favoritePropertiesManager);
|
|
293127
|
-
await _LocalizationHelper__WEBPACK_IMPORTED_MODULE_4__.
|
|
293706
|
+
await _LocalizationHelper__WEBPACK_IMPORTED_MODULE_4__.FrontendLocalizationHelper.registerNamespaces();
|
|
293128
293707
|
for (const handler of initializationHandlers) {
|
|
293129
293708
|
const cleanup = await handler();
|
|
293130
293709
|
if (cleanup)
|
|
@@ -293139,7 +293718,7 @@ class Presentation {
|
|
|
293139
293718
|
terminationHandlers.forEach((handler) => handler());
|
|
293140
293719
|
terminationHandlers.length = 0;
|
|
293141
293720
|
if (localization)
|
|
293142
|
-
_LocalizationHelper__WEBPACK_IMPORTED_MODULE_4__.
|
|
293721
|
+
_LocalizationHelper__WEBPACK_IMPORTED_MODULE_4__.FrontendLocalizationHelper.unregisterNamespaces();
|
|
293143
293722
|
if (presentationManager)
|
|
293144
293723
|
presentationManager.dispose();
|
|
293145
293724
|
presentationManager = undefined;
|
|
@@ -293274,13 +293853,12 @@ class PresentationManager {
|
|
|
293274
293853
|
this.handleUpdateAsync(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.UpdateInfo.fromJSON(report));
|
|
293275
293854
|
};
|
|
293276
293855
|
if (props) {
|
|
293277
|
-
this.activeLocale = props.activeLocale;
|
|
293278
293856
|
this.activeUnitSystem = props.activeUnitSystem;
|
|
293279
293857
|
}
|
|
293280
293858
|
this._requestsHandler = (_a = props === null || props === void 0 ? void 0 : props.rpcRequestsHandler) !== null && _a !== void 0 ? _a : new _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.RpcRequestsHandler(props ? { clientId: props.clientId } : undefined);
|
|
293281
293859
|
this._rulesetVars = new Map();
|
|
293282
293860
|
this._rulesets = _RulesetManager__WEBPACK_IMPORTED_MODULE_5__.RulesetManagerImpl.create();
|
|
293283
|
-
this._localizationHelper = new _LocalizationHelper__WEBPACK_IMPORTED_MODULE_4__.
|
|
293861
|
+
this._localizationHelper = new _LocalizationHelper__WEBPACK_IMPORTED_MODULE_4__.FrontendLocalizationHelper(props === null || props === void 0 ? void 0 : props.activeLocale);
|
|
293284
293862
|
this._connections = new Map();
|
|
293285
293863
|
if (_itwin_core_frontend__WEBPACK_IMPORTED_MODULE_1__.IpcApp.isValid) {
|
|
293286
293864
|
// Ipc only works in ipc apps, so the `onUpdate` callback will only be called there.
|
|
@@ -293289,6 +293867,9 @@ class PresentationManager {
|
|
|
293289
293867
|
this._stateTracker = (_c = props === null || props === void 0 ? void 0 : props.stateTracker) !== null && _c !== void 0 ? _c : new _StateTracker__WEBPACK_IMPORTED_MODULE_8__.StateTracker(this._ipcRequestsHandler);
|
|
293290
293868
|
}
|
|
293291
293869
|
}
|
|
293870
|
+
/** Get / set active locale used for localizing presentation data */
|
|
293871
|
+
get activeLocale() { return this._localizationHelper.locale; }
|
|
293872
|
+
set activeLocale(locale) { this._localizationHelper.locale = locale; }
|
|
293292
293873
|
dispose() {
|
|
293293
293874
|
this._requestsHandler.dispose();
|
|
293294
293875
|
if (this._clearEventListener) {
|
|
@@ -293529,7 +294110,11 @@ class PresentationManager {
|
|
|
293529
294110
|
*/
|
|
293530
294111
|
async getElementProperties(requestOptions) {
|
|
293531
294112
|
await this.onConnection(requestOptions.imodel);
|
|
293532
|
-
|
|
294113
|
+
const results = await this._requestsHandler.getElementProperties(this.toRpcTokenOptions(requestOptions));
|
|
294114
|
+
// istanbul ignore if
|
|
294115
|
+
if (!results)
|
|
294116
|
+
return undefined;
|
|
294117
|
+
return this._localizationHelper.getLocalizedElementProperties(results);
|
|
293533
294118
|
}
|
|
293534
294119
|
/**
|
|
293535
294120
|
* Retrieves content item instance keys.
|
|
@@ -302424,9 +303009,9 @@ const gBase64 = {
|
|
|
302424
303009
|
|
|
302425
303010
|
/***/ }),
|
|
302426
303011
|
|
|
302427
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303012
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
|
302428
303013
|
/*!******************************************************************************************************************************!*\
|
|
302429
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303014
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
|
|
302430
303015
|
\******************************************************************************************************************************/
|
|
302431
303016
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302432
303017
|
|
|
@@ -302447,9 +303032,9 @@ function _arrayLikeToArray(arr, len) {
|
|
|
302447
303032
|
|
|
302448
303033
|
/***/ }),
|
|
302449
303034
|
|
|
302450
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303035
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
|
|
302451
303036
|
/*!****************************************************************************************************************************!*\
|
|
302452
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303037
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
|
|
302453
303038
|
\****************************************************************************************************************************/
|
|
302454
303039
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302455
303040
|
|
|
@@ -302464,9 +303049,9 @@ function _arrayWithHoles(arr) {
|
|
|
302464
303049
|
|
|
302465
303050
|
/***/ }),
|
|
302466
303051
|
|
|
302467
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303052
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
|
|
302468
303053
|
/*!***********************************************************************************************************************************!*\
|
|
302469
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303054
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
|
|
302470
303055
|
\***********************************************************************************************************************************/
|
|
302471
303056
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302472
303057
|
|
|
@@ -302485,9 +303070,9 @@ function _assertThisInitialized(self) {
|
|
|
302485
303070
|
|
|
302486
303071
|
/***/ }),
|
|
302487
303072
|
|
|
302488
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303073
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
|
|
302489
303074
|
/*!****************************************************************************************************************************!*\
|
|
302490
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303075
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
|
|
302491
303076
|
\****************************************************************************************************************************/
|
|
302492
303077
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302493
303078
|
|
|
@@ -302504,9 +303089,9 @@ function _classCallCheck(instance, Constructor) {
|
|
|
302504
303089
|
|
|
302505
303090
|
/***/ }),
|
|
302506
303091
|
|
|
302507
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303092
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/createClass.js":
|
|
302508
303093
|
/*!*************************************************************************************************************************!*\
|
|
302509
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303094
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
|
|
302510
303095
|
\*************************************************************************************************************************/
|
|
302511
303096
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302512
303097
|
|
|
@@ -302536,9 +303121,9 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
302536
303121
|
|
|
302537
303122
|
/***/ }),
|
|
302538
303123
|
|
|
302539
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303124
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js":
|
|
302540
303125
|
/*!****************************************************************************************************************************!*\
|
|
302541
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303126
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
|
|
302542
303127
|
\****************************************************************************************************************************/
|
|
302543
303128
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302544
303129
|
|
|
@@ -302564,9 +303149,9 @@ function _defineProperty(obj, key, value) {
|
|
|
302564
303149
|
|
|
302565
303150
|
/***/ }),
|
|
302566
303151
|
|
|
302567
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303152
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":
|
|
302568
303153
|
/*!****************************************************************************************************************************!*\
|
|
302569
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303154
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
|
|
302570
303155
|
\****************************************************************************************************************************/
|
|
302571
303156
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302572
303157
|
|
|
@@ -302584,9 +303169,9 @@ function _getPrototypeOf(o) {
|
|
|
302584
303169
|
|
|
302585
303170
|
/***/ }),
|
|
302586
303171
|
|
|
302587
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303172
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/inherits.js":
|
|
302588
303173
|
/*!**********************************************************************************************************************!*\
|
|
302589
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303174
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/inherits.js ***!
|
|
302590
303175
|
\**********************************************************************************************************************/
|
|
302591
303176
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302592
303177
|
|
|
@@ -302595,7 +303180,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302595
303180
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302596
303181
|
/* harmony export */ "default": () => (/* binding */ _inherits)
|
|
302597
303182
|
/* harmony export */ });
|
|
302598
|
-
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303183
|
+
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");
|
|
302599
303184
|
|
|
302600
303185
|
function _inherits(subClass, superClass) {
|
|
302601
303186
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -302617,9 +303202,9 @@ function _inherits(subClass, superClass) {
|
|
|
302617
303202
|
|
|
302618
303203
|
/***/ }),
|
|
302619
303204
|
|
|
302620
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303205
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
|
|
302621
303206
|
/*!*****************************************************************************************************************************!*\
|
|
302622
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303207
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
|
|
302623
303208
|
\*****************************************************************************************************************************/
|
|
302624
303209
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302625
303210
|
|
|
@@ -302634,9 +303219,9 @@ function _iterableToArray(iter) {
|
|
|
302634
303219
|
|
|
302635
303220
|
/***/ }),
|
|
302636
303221
|
|
|
302637
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303222
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
|
|
302638
303223
|
/*!*****************************************************************************************************************************!*\
|
|
302639
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303224
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
|
|
302640
303225
|
\*****************************************************************************************************************************/
|
|
302641
303226
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302642
303227
|
|
|
@@ -302651,9 +303236,9 @@ function _nonIterableRest() {
|
|
|
302651
303236
|
|
|
302652
303237
|
/***/ }),
|
|
302653
303238
|
|
|
302654
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303239
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":
|
|
302655
303240
|
/*!***************************************************************************************************************************************!*\
|
|
302656
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303241
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
|
|
302657
303242
|
\***************************************************************************************************************************************/
|
|
302658
303243
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302659
303244
|
|
|
@@ -302662,8 +303247,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302662
303247
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302663
303248
|
/* harmony export */ "default": () => (/* binding */ _possibleConstructorReturn)
|
|
302664
303249
|
/* harmony export */ });
|
|
302665
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302666
|
-
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303250
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
303251
|
+
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
302667
303252
|
|
|
302668
303253
|
|
|
302669
303254
|
function _possibleConstructorReturn(self, call) {
|
|
@@ -302678,9 +303263,9 @@ function _possibleConstructorReturn(self, call) {
|
|
|
302678
303263
|
|
|
302679
303264
|
/***/ }),
|
|
302680
303265
|
|
|
302681
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303266
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
|
|
302682
303267
|
/*!****************************************************************************************************************************!*\
|
|
302683
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303268
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
|
|
302684
303269
|
\****************************************************************************************************************************/
|
|
302685
303270
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302686
303271
|
|
|
@@ -302699,9 +303284,9 @@ function _setPrototypeOf(o, p) {
|
|
|
302699
303284
|
|
|
302700
303285
|
/***/ }),
|
|
302701
303286
|
|
|
302702
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303287
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/toArray.js":
|
|
302703
303288
|
/*!*********************************************************************************************************************!*\
|
|
302704
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303289
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/toArray.js ***!
|
|
302705
303290
|
\*********************************************************************************************************************/
|
|
302706
303291
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302707
303292
|
|
|
@@ -302710,10 +303295,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302710
303295
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302711
303296
|
/* harmony export */ "default": () => (/* binding */ _toArray)
|
|
302712
303297
|
/* harmony export */ });
|
|
302713
|
-
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302714
|
-
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302715
|
-
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302716
|
-
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303298
|
+
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
|
|
303299
|
+
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
|
|
303300
|
+
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
|
|
303301
|
+
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
|
|
302717
303302
|
|
|
302718
303303
|
|
|
302719
303304
|
|
|
@@ -302724,9 +303309,9 @@ function _toArray(arr) {
|
|
|
302724
303309
|
|
|
302725
303310
|
/***/ }),
|
|
302726
303311
|
|
|
302727
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303312
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/typeof.js":
|
|
302728
303313
|
/*!********************************************************************************************************************!*\
|
|
302729
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303314
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
|
|
302730
303315
|
\********************************************************************************************************************/
|
|
302731
303316
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302732
303317
|
|
|
@@ -302747,9 +303332,9 @@ function _typeof(obj) {
|
|
|
302747
303332
|
|
|
302748
303333
|
/***/ }),
|
|
302749
303334
|
|
|
302750
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303335
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
|
|
302751
303336
|
/*!****************************************************************************************************************************************!*\
|
|
302752
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303337
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
|
|
302753
303338
|
\****************************************************************************************************************************************/
|
|
302754
303339
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302755
303340
|
|
|
@@ -302758,7 +303343,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302758
303343
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302759
303344
|
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
|
302760
303345
|
/* harmony export */ });
|
|
302761
|
-
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303346
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
|
|
302762
303347
|
|
|
302763
303348
|
function _unsupportedIterableToArray(o, minLen) {
|
|
302764
303349
|
if (!o) return;
|
|
@@ -302795,15 +303380,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302795
303380
|
/* harmony export */ "t": () => (/* binding */ t),
|
|
302796
303381
|
/* harmony export */ "use": () => (/* binding */ use)
|
|
302797
303382
|
/* harmony export */ });
|
|
302798
|
-
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302799
|
-
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302800
|
-
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302801
|
-
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302802
|
-
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302803
|
-
/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302804
|
-
/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302805
|
-
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
302806
|
-
/* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
303383
|
+
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
303384
|
+
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
303385
|
+
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
303386
|
+
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
303387
|
+
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
303388
|
+
/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
|
|
303389
|
+
/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
|
|
303390
|
+
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
303391
|
+
/* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/toArray.js");
|
|
302807
303392
|
|
|
302808
303393
|
|
|
302809
303394
|
|
|
@@ -305631,7 +306216,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
305631
306216
|
/***/ ((module) => {
|
|
305632
306217
|
|
|
305633
306218
|
"use strict";
|
|
305634
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.
|
|
306219
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.35","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","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","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 \\"../../tools/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/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.35","@itwin/core-bentley":"workspace:^3.4.0-dev.35","@itwin/core-common":"workspace:^3.4.0-dev.35","@itwin/core-geometry":"workspace:^3.4.0-dev.35","@itwin/core-orbitgt":"workspace:^3.4.0-dev.35","@itwin/core-quantity":"workspace:^3.4.0-dev.35","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.35"},"//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":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"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"}}]}}');
|
|
305635
306220
|
|
|
305636
306221
|
/***/ }),
|
|
305637
306222
|
|