@itwin/rpcinterface-full-stack-tests 4.1.0-dev.67 → 4.1.0-dev.68
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/_05e2.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +91 -63
- 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_4_4_node_modules_loaders_gl_draco_di-6aa0d4.bundled-tests.js.map +1 -1
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_05e2.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_05e2.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\7\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.4.4\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -43399,7 +43399,7 @@ class RpcInterface {
|
|
|
43399
43399
|
// patch difference is fine. If minor versions differ, compatible as long as backend minor version is greater
|
|
43400
43400
|
return difference === "patch" || (difference === "minor" && frontendSemver.minor < backendSemver.minor);
|
|
43401
43401
|
}
|
|
43402
|
-
/** @
|
|
43402
|
+
/** @beta */
|
|
43403
43403
|
constructor(routing = _rpc_core_RpcRoutingToken__WEBPACK_IMPORTED_MODULE_3__.RpcRoutingToken.default) {
|
|
43404
43404
|
this.routing = routing;
|
|
43405
43405
|
this.configuration = _rpc_core_RpcConfiguration__WEBPACK_IMPORTED_MODULE_0__.RpcConfiguration.supply(this);
|
|
@@ -47844,7 +47844,7 @@ var AreaPattern;
|
|
|
47844
47844
|
applyTransform(transform) {
|
|
47845
47845
|
if (transform.isIdentity)
|
|
47846
47846
|
return true;
|
|
47847
|
-
|
|
47847
|
+
let origin = this.origin ? this.origin : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.createZero();
|
|
47848
47848
|
const rMatrix = this.rotation ? this.rotation.toMatrix3d() : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createIdentity();
|
|
47849
47849
|
if (this.symbolId !== undefined) {
|
|
47850
47850
|
this.space1 = Params.transformPatternSpace(transform, this.space1 ? this.space1 : 0.0, rMatrix, this.angle1);
|
|
@@ -47877,7 +47877,7 @@ var AreaPattern;
|
|
|
47877
47877
|
if (this.space2 && 0 !== this.space2)
|
|
47878
47878
|
this.space2 = Params.transformPatternSpace(transform, this.space2, rMatrix, this.angle2);
|
|
47879
47879
|
}
|
|
47880
|
-
transform.multiplyPoint3d(origin);
|
|
47880
|
+
origin = transform.multiplyPoint3d(origin);
|
|
47881
47881
|
rMatrix.multiplyMatrixMatrix(transform.matrix, rMatrix);
|
|
47882
47882
|
const normalized = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createRigidFromMatrix3d(rMatrix);
|
|
47883
47883
|
if (!normalized)
|
|
@@ -195485,6 +195485,7 @@ class RegionOps {
|
|
|
195485
195485
|
* not detect self intersection among widely separated edges.
|
|
195486
195486
|
* * If offsetDistance is given as a number, default OffsetOptions are applied.
|
|
195487
195487
|
* * See [[JointOptions]] class doc for offset construction rules.
|
|
195488
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/Offset
|
|
195488
195489
|
* @param curves base curves.
|
|
195489
195490
|
* @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.
|
|
195490
195491
|
*/
|
|
@@ -198438,8 +198439,8 @@ class JointOptions {
|
|
|
198438
198439
|
* ranges blow up. Internally, this is implemented by applying an upper bound of 120 degrees to `maxChamferTurnDegrees`.
|
|
198439
198440
|
* * When `allowSharpestCorners` is true, this internal upper bound is removed, allowing sharp corners for turn angles
|
|
198440
198441
|
* up to `maxChamferTurnDegrees`.
|
|
198441
|
-
* * Thus, if you know your input turn angles are no greater than `maxChamferTurnDegrees`, you can create an offset
|
|
198442
|
-
*
|
|
198442
|
+
* * Thus, if you know your input turn angles are no greater than `maxChamferTurnDegrees`, you can create an offset with
|
|
198443
|
+
* sharp corners at each joint by setting `maxChamferTurnDegrees < minArcDegrees` and `allowSharpestCorners` to true.
|
|
198443
198444
|
*/
|
|
198444
198445
|
this.allowSharpestCorners = false;
|
|
198445
198446
|
/** Offset distance, positive to left of base curve. */
|
|
@@ -198475,8 +198476,7 @@ class JointOptions {
|
|
|
198475
198476
|
return leftOffsetDistanceOrOptions;
|
|
198476
198477
|
return new JointOptions(leftOffsetDistanceOrOptions);
|
|
198477
198478
|
}
|
|
198478
|
-
/**
|
|
198479
|
-
/** Return true if the options indicate this amount of turn should be handled with an arc. */
|
|
198479
|
+
/** Return true if the options indicate this amount of turn should be handled with an arc. */
|
|
198480
198480
|
needArc(theta) {
|
|
198481
198481
|
return Math.abs(theta.degrees) >= this.minArcDegrees;
|
|
198482
198482
|
}
|
|
@@ -199069,6 +199069,7 @@ class CurveChainWireOffsetContext {
|
|
|
199069
199069
|
* not detect self intersection among widely separated edges.
|
|
199070
199070
|
* * If offsetDistance is given as a number, default OffsetOptions are applied.
|
|
199071
199071
|
* * See [[JointOptions]] class doc for offset construction rules.
|
|
199072
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/Offset
|
|
199072
199073
|
* @param curves base curves.
|
|
199073
199074
|
* @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.
|
|
199074
199075
|
*/
|
|
@@ -211436,24 +211437,27 @@ class Plane3d {
|
|
|
211436
211437
|
isPointInPlane(spacePoint, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
|
|
211437
211438
|
return Math.abs(this.altitude(spacePoint)) <= tolerance;
|
|
211438
211439
|
}
|
|
211439
|
-
/**
|
|
211440
|
-
*
|
|
211440
|
+
/**
|
|
211441
|
+
* Return a value -1, 0, 1 giving a signed indicator of whether the toleranced altitude of the point is
|
|
211442
|
+
* negative, near zero, or positive.
|
|
211441
211443
|
*
|
|
211442
|
-
|
|
211444
|
+
*/
|
|
211443
211445
|
classifyAltitude(point, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
|
|
211444
211446
|
return _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.split3Way01(this.altitude(point), tolerance);
|
|
211445
211447
|
}
|
|
211446
|
-
/**
|
|
211447
|
-
*
|
|
211448
|
+
/**
|
|
211449
|
+
* Return a value -1, 0, 1 giving a signed indicator of whether the toleranced altitude of x,y,z is
|
|
211450
|
+
* negative, near zero, or positive.
|
|
211448
211451
|
*
|
|
211449
|
-
|
|
211452
|
+
*/
|
|
211450
211453
|
classifyAltitudeXYZ(x, y, z, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
|
|
211451
211454
|
return _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.split3Way01(this.altitudeXYZ(x, y, z), tolerance);
|
|
211452
211455
|
}
|
|
211453
211456
|
/**
|
|
211454
211457
|
* Return the unit normal for the plane.
|
|
211455
211458
|
* * The abstract base class implementation assembles the normal from normalX, normalY, normalZ calls.
|
|
211456
|
-
* * Derived classes should (but are not required to) override for maximum efficiency if the separate normal calls
|
|
211459
|
+
* * Derived classes should (but are not required to) override for maximum efficiency if the separate normal calls
|
|
211460
|
+
* cause repeated normalization.
|
|
211457
211461
|
* @param result
|
|
211458
211462
|
*/
|
|
211459
211463
|
getUnitNormal(result) {
|
|
@@ -211464,7 +211468,7 @@ class Plane3d {
|
|
|
211464
211468
|
* * Default implementation projects the origin (0,0,0) to the plane.
|
|
211465
211469
|
* * Classes that have a preferred origin for their plane should override.
|
|
211466
211470
|
* * Classes with a purely implicit equation of their plane can accept the default implementation
|
|
211467
|
-
|
|
211471
|
+
*/
|
|
211468
211472
|
getAnyPointOnPlane(result) {
|
|
211469
211473
|
return this.projectPointToPlane(_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(0, 0, 0), result);
|
|
211470
211474
|
}
|
|
@@ -211545,7 +211549,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211545
211549
|
return Plane3dByOriginAndUnitNormal._create(origin.x, origin.y, origin.z, 0, 1, 0);
|
|
211546
211550
|
return Plane3dByOriginAndUnitNormal._create(0, 0, 0, 0, 1, 0);
|
|
211547
211551
|
}
|
|
211548
|
-
/**
|
|
211552
|
+
/**
|
|
211553
|
+
* Create a new Plane3dByOriginAndUnitNormal with given origin and normal.
|
|
211549
211554
|
* * The inputs are NOT captured.
|
|
211550
211555
|
* * Returns undefined if `normal.normalize()` returns undefined.
|
|
211551
211556
|
*/
|
|
@@ -211561,7 +211566,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211561
211566
|
return undefined;
|
|
211562
211567
|
return new Plane3dByOriginAndUnitNormal(origin.clone(), normalized);
|
|
211563
211568
|
}
|
|
211564
|
-
/**
|
|
211569
|
+
/**
|
|
211570
|
+
* Create a new Plane3dByOriginAndUnitNormal from a variety of plane types.
|
|
211565
211571
|
* * The inputs are NOT captured.
|
|
211566
211572
|
* * Returns undefined if `source.getUnitNormal()` returns undefined.
|
|
211567
211573
|
*/
|
|
@@ -211580,7 +211586,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211580
211586
|
const origin = source.getAnyPointOnPlane();
|
|
211581
211587
|
return new Plane3dByOriginAndUnitNormal(origin, normal);
|
|
211582
211588
|
}
|
|
211583
|
-
/**
|
|
211589
|
+
/**
|
|
211590
|
+
* Create a new Plane3dByOriginAndUnitNormal with direct coordinates of origin and normal.
|
|
211584
211591
|
* * Returns undefined if the normal vector is all zeros.
|
|
211585
211592
|
* * If unable to normalize return undefined. (And if result is given it is left unchanged)
|
|
211586
211593
|
*/
|
|
@@ -211595,7 +211602,9 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211595
211602
|
}
|
|
211596
211603
|
return new Plane3dByOriginAndUnitNormal(_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(ax, ay, az), _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create(ux / magU, uy / magU, uz / magU));
|
|
211597
211604
|
}
|
|
211598
|
-
/**
|
|
211605
|
+
/**
|
|
211606
|
+
* Create a new Plane3dByOriginAndUnitNormal with unit normal (a) in the xy plane (b) perpendicular to the line
|
|
211607
|
+
* defined by xy parts of origin to target.
|
|
211599
211608
|
* * origin and normal both have z = 0.
|
|
211600
211609
|
* * The inputs are NOT captured.
|
|
211601
211610
|
* * Returns undefined if the normal vector is all zeros.
|
|
@@ -211605,7 +211614,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211605
211614
|
const uy = target.y - origin.y;
|
|
211606
211615
|
return this.createXYZUVW(origin.x, origin.y, 0.0, uy, -ux, 0.0, result);
|
|
211607
211616
|
}
|
|
211608
|
-
/**
|
|
211617
|
+
/**
|
|
211618
|
+
* Create a new Plane3dByOriginAndUnitNormal with xy origin (at z=0) and normal angle in xy plane.
|
|
211609
211619
|
* * Returns undefined if the normal vector is all zeros.
|
|
211610
211620
|
*/
|
|
211611
211621
|
static createXYAngle(x, y, normalAngleFromX, result) {
|
|
@@ -211616,7 +211626,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211616
211626
|
}
|
|
211617
211627
|
return new Plane3dByOriginAndUnitNormal(_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(x, y, 0), _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create(normalAngleFromX.cos(), normalAngleFromX.sin()));
|
|
211618
211628
|
}
|
|
211619
|
-
/**
|
|
211629
|
+
/**
|
|
211630
|
+
* Create a plane defined by two points and an in-plane vector.
|
|
211620
211631
|
* @param pointA any point in the plane
|
|
211621
211632
|
* @param pointB any other point in the plane
|
|
211622
211633
|
* @param vector any vector in the plane but not parallel to the vector from pointA to pointB
|
|
@@ -211627,7 +211638,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211627
211638
|
return new Plane3dByOriginAndUnitNormal(pointA, cross);
|
|
211628
211639
|
return undefined;
|
|
211629
211640
|
}
|
|
211630
|
-
/**
|
|
211641
|
+
/**
|
|
211642
|
+
* Create a plane defined by three points.
|
|
211631
211643
|
* @param pointA any point in the plane. This will be the origin.
|
|
211632
211644
|
* @param pointB any other point in the plane
|
|
211633
211645
|
* @param pointC any third point in the plane but not on the line of pointA and pointB
|
|
@@ -211638,7 +211650,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211638
211650
|
return new Plane3dByOriginAndUnitNormal(pointA, cross);
|
|
211639
211651
|
return undefined;
|
|
211640
211652
|
}
|
|
211641
|
-
/**
|
|
211653
|
+
/**
|
|
211654
|
+
* Create a plane defined by a point and two vectors in the plane
|
|
211642
211655
|
* @param pointA any point in the plane
|
|
211643
211656
|
* @param vectorB any vector in the plane
|
|
211644
211657
|
* @param vectorC any vector in the plane but not parallel to vectorB
|
|
@@ -211649,7 +211662,7 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211649
211662
|
return new Plane3dByOriginAndUnitNormal(pointA, cross);
|
|
211650
211663
|
return undefined;
|
|
211651
211664
|
}
|
|
211652
|
-
/**
|
|
211665
|
+
/** Test for (toleranced) equality with `other` */
|
|
211653
211666
|
isAlmostEqual(other) {
|
|
211654
211667
|
return this._origin.isAlmostEqual(other._origin) && this._normal.isAlmostEqual(other._normal);
|
|
211655
211668
|
}
|
|
@@ -211668,8 +211681,11 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211668
211681
|
* Convert to a JSON object.
|
|
211669
211682
|
* @return {*} [origin,normal]
|
|
211670
211683
|
*/
|
|
211671
|
-
toJSON() {
|
|
211672
|
-
|
|
211684
|
+
toJSON() {
|
|
211685
|
+
return { origin: this._origin.toJSON(), normal: this._normal.toJSON() };
|
|
211686
|
+
}
|
|
211687
|
+
/**
|
|
211688
|
+
* Create a new Plane3dByOriginAndUnitNormal from json fragment.
|
|
211673
211689
|
* * See `Plane3dByOriginAndUnitNormal.setFromJSON`
|
|
211674
211690
|
*/
|
|
211675
211691
|
static fromJSON(json) {
|
|
@@ -211678,10 +211694,15 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211678
211694
|
return result;
|
|
211679
211695
|
}
|
|
211680
211696
|
/** Return a reference to the origin. */
|
|
211681
|
-
getOriginRef() {
|
|
211697
|
+
getOriginRef() {
|
|
211698
|
+
return this._origin;
|
|
211699
|
+
}
|
|
211682
211700
|
/** Return a reference to the unit normal. */
|
|
211683
|
-
getNormalRef() {
|
|
211684
|
-
|
|
211701
|
+
getNormalRef() {
|
|
211702
|
+
return this._normal;
|
|
211703
|
+
}
|
|
211704
|
+
/**
|
|
211705
|
+
* Return coordinate axes (as a transform) with
|
|
211685
211706
|
* * origin at plane origin
|
|
211686
211707
|
* * z axis in direction of plane normal.
|
|
211687
211708
|
* * x,y axes in plane.
|
|
@@ -211690,8 +211711,7 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211690
211711
|
const axes = _Matrix3d__WEBPACK_IMPORTED_MODULE_3__.Matrix3d.createRigidHeadsUp(this._normal, _Geometry__WEBPACK_IMPORTED_MODULE_2__.AxisOrder.ZXY);
|
|
211691
211712
|
return _Transform__WEBPACK_IMPORTED_MODULE_4__.Transform.createRefs(this._origin.clone(), axes);
|
|
211692
211713
|
}
|
|
211693
|
-
/** Return a (singular) transform which projects points to this plane.
|
|
211694
|
-
*/
|
|
211714
|
+
/** Return a (singular) transform which projects points to this plane. */
|
|
211695
211715
|
getProjectionToPlane() {
|
|
211696
211716
|
const axes = _Matrix3d__WEBPACK_IMPORTED_MODULE_3__.Matrix3d.createIdentity();
|
|
211697
211717
|
axes.addScaledOuterProductInPlace(this._normal, this._normal, -1.0);
|
|
@@ -211703,7 +211723,7 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211703
211723
|
this._origin.setFrom(origin);
|
|
211704
211724
|
this._normal.setFrom(normal);
|
|
211705
211725
|
}
|
|
211706
|
-
/**
|
|
211726
|
+
/** Return a deep clone (point and normal cloned) */
|
|
211707
211727
|
clone(result) {
|
|
211708
211728
|
if (result) {
|
|
211709
211729
|
result.set(this._origin, this._normal);
|
|
@@ -211733,51 +211753,56 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211733
211753
|
this.set(source._origin, source._normal);
|
|
211734
211754
|
}
|
|
211735
211755
|
/** Return the altitude of spacePoint above or below the plane. (Below is negative) */
|
|
211736
|
-
altitude(spacePoint) {
|
|
211756
|
+
altitude(spacePoint) {
|
|
211757
|
+
return this._normal.dotProductStartEnd(this._origin, spacePoint);
|
|
211758
|
+
}
|
|
211737
211759
|
/** Return the altitude of point (x,y) given xy parts using only the xy parts of origin and unit normal */
|
|
211738
211760
|
altitudeXY(x, y) {
|
|
211739
211761
|
return (x - this._origin.x) * this._normal.x + (y - this._origin.y) * this._normal.y;
|
|
211740
211762
|
}
|
|
211741
|
-
/**
|
|
211742
|
-
|
|
211743
|
-
|
|
211744
|
-
|
|
211745
|
-
/**
|
|
211746
|
-
|
|
211747
|
-
|
|
211748
|
-
|
|
211749
|
-
/**
|
|
211750
|
-
|
|
211751
|
-
|
|
211752
|
-
|
|
211753
|
-
/**
|
|
211754
|
-
* Return (a clone of) the unit normal.
|
|
211755
|
-
*/
|
|
211763
|
+
/** Return the x component of the normal used to evaluate altitude. */
|
|
211764
|
+
normalX() {
|
|
211765
|
+
return this._normal.x;
|
|
211766
|
+
}
|
|
211767
|
+
/** Return the x component of the normal used to evaluate altitude. */
|
|
211768
|
+
normalY() {
|
|
211769
|
+
return this._normal.y;
|
|
211770
|
+
}
|
|
211771
|
+
/** Return the z component of the normal used to evaluate altitude. */
|
|
211772
|
+
normalZ() {
|
|
211773
|
+
return this._normal.z;
|
|
211774
|
+
}
|
|
211775
|
+
/** Return (a clone of) the unit normal. */
|
|
211756
211776
|
getUnitNormal(result) {
|
|
211757
211777
|
return this._normal.clone(result);
|
|
211758
211778
|
}
|
|
211759
|
-
/**
|
|
211760
|
-
* Return (a clone of) the origin.
|
|
211761
|
-
*/
|
|
211779
|
+
/** Return (a clone of) the origin. */
|
|
211762
211780
|
getAnyPointOnPlane(result) {
|
|
211781
|
+
// This function returns the plane origin. In general, a point x is on the plane if and only if (x-o).n = 0.
|
|
211763
211782
|
return this._origin.clone(result);
|
|
211764
211783
|
}
|
|
211765
211784
|
/** Return the signed altitude of weighted spacePoint above or below the plane. (Below is negative) */
|
|
211766
211785
|
weightedAltitude(spacePoint) {
|
|
211767
211786
|
return this._normal.dotProductStart3dEnd4d(this._origin, spacePoint);
|
|
211768
211787
|
}
|
|
211769
|
-
/**
|
|
211788
|
+
/** Return any point at specified (signed) altitude. */
|
|
211770
211789
|
altitudeToPoint(altitude, result) {
|
|
211771
211790
|
return this._origin.plusScaled(this._normal, altitude, result);
|
|
211772
211791
|
}
|
|
211773
|
-
/**
|
|
211792
|
+
/**
|
|
211793
|
+
* Return the dot product of spaceVector with the plane's unit normal. This tells the rate of change of altitude
|
|
211774
211794
|
* for a point moving at speed one along the spaceVector.
|
|
211775
211795
|
*/
|
|
211776
|
-
velocityXYZ(x, y, z) {
|
|
211777
|
-
|
|
211796
|
+
velocityXYZ(x, y, z) {
|
|
211797
|
+
return this._normal.dotProductXYZ(x, y, z);
|
|
211798
|
+
}
|
|
211799
|
+
/**
|
|
211800
|
+
* Return the dot product of spaceVector with the plane's unit normal. This tells the rate of change of altitude
|
|
211778
211801
|
* for a point moving at speed one along the spaceVector.
|
|
211779
211802
|
*/
|
|
211780
|
-
velocity(spaceVector) {
|
|
211803
|
+
velocity(spaceVector) {
|
|
211804
|
+
return this._normal.dotProduct(spaceVector);
|
|
211805
|
+
}
|
|
211781
211806
|
/** Return the altitude of a point given as separate x,y,z components. */
|
|
211782
211807
|
altitudeXYZ(x, y, z) {
|
|
211783
211808
|
return this._normal.dotProductStartEndXYZ(this._origin, x, y, z);
|
|
@@ -211790,9 +211815,10 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211790
211815
|
projectPointToPlane(spacePoint, result) {
|
|
211791
211816
|
return spacePoint.plusScaled(this._normal, -this._normal.dotProductStartEnd(this._origin, spacePoint), result);
|
|
211792
211817
|
}
|
|
211793
|
-
/**
|
|
211818
|
+
/**
|
|
211819
|
+
* Returns true if spacePoint is within distance tolerance of the plane.
|
|
211794
211820
|
* * This logic is identical to the [[Plane3d]] method but avoids a level of function call.
|
|
211795
|
-
|
|
211821
|
+
*/
|
|
211796
211822
|
isPointInPlane(spacePoint, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance) {
|
|
211797
211823
|
const altitude = this._normal.dotProductStartEnd(this._origin, spacePoint);
|
|
211798
211824
|
return Math.abs(altitude) <= tolerance;
|
|
@@ -212070,6 +212096,8 @@ class Plane3dByOriginAndVectors extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__.Pl
|
|
|
212070
212096
|
* Return some point on the plane.
|
|
212071
212097
|
*/
|
|
212072
212098
|
getAnyPointOnPlane(result) {
|
|
212099
|
+
// This function returns the plane origin. In general, a point x is on the plane if
|
|
212100
|
+
// and only if x = o + a*u + b*v, where a and b are scalars.
|
|
212073
212101
|
return this.origin.clone(result);
|
|
212074
212102
|
}
|
|
212075
212103
|
/** Return (if possible) a ray with origin at plane origin, direction as unit normal to the plane */
|
|
@@ -220991,7 +221019,7 @@ class Transform {
|
|
|
220991
221019
|
/**
|
|
220992
221020
|
* Create a Transform with translation provided by x,y,z parts.
|
|
220993
221021
|
* * Translation Transform maps any vector `v` to `v + p` where `p = (x,y,z)`
|
|
220994
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
221022
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeTransform
|
|
220995
221023
|
* @param x x part of translation
|
|
220996
221024
|
* @param y y part of translation
|
|
220997
221025
|
* @param z z part of translation
|
|
@@ -221004,7 +221032,7 @@ class Transform {
|
|
|
221004
221032
|
/**
|
|
221005
221033
|
* Create a Transform with specified `translation` part.
|
|
221006
221034
|
* * Translation Transform maps any vector `v` to `v + translation`
|
|
221007
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
221035
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeTransform
|
|
221008
221036
|
* @param translation x,y,z parts of the translation
|
|
221009
221037
|
* @param result optional pre-allocated Transform
|
|
221010
221038
|
* @returns new or updated transform
|
|
@@ -221127,7 +221155,7 @@ class Transform {
|
|
|
221127
221155
|
* Create a Transform which leaves the fixedPoint unchanged and scales everything else around it by
|
|
221128
221156
|
* a single scale factor. The returned Transform maps a point `p` to `M*p + (f - M*f)`
|
|
221129
221157
|
* where `f` is the fixedPoint and M is the scale matrix (i.e., `Tp = M*(p-f) + f`).
|
|
221130
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
221158
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeTransform
|
|
221131
221159
|
*/
|
|
221132
221160
|
static createScaleAboutPoint(fixedPoint, scale, result) {
|
|
221133
221161
|
const matrix = _Matrix3d__WEBPACK_IMPORTED_MODULE_2__.Matrix3d.createScale(scale, scale, scale);
|
|
@@ -278791,7 +278819,7 @@ class TestContext {
|
|
|
278791
278819
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
278792
278820
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
278793
278821
|
await core_frontend_1.NoRenderApp.startup({
|
|
278794
|
-
applicationVersion: "4.1.0-dev.
|
|
278822
|
+
applicationVersion: "4.1.0-dev.68",
|
|
278795
278823
|
applicationId: this.settings.gprid,
|
|
278796
278824
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
278797
278825
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -298165,7 +298193,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
298165
298193
|
/***/ ((module) => {
|
|
298166
298194
|
|
|
298167
298195
|
"use strict";
|
|
298168
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.1.0-dev.
|
|
298196
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.1.0-dev.68","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"./node_modules/@itwin/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.1.0-dev.68","@itwin/core-bentley":"workspace:^4.1.0-dev.68","@itwin/core-common":"workspace:^4.1.0-dev.68","@itwin/core-geometry":"workspace:^4.1.0-dev.68","@itwin/core-orbitgt":"workspace:^4.1.0-dev.68","@itwin/core-quantity":"workspace:^4.1.0-dev.68"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"4.0.0-dev.36","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"18.16.1","@types/sinon":"^10.0.15","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.36.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^15.0.4","source-map-loader":"^4.0.0","typescript":"~5.0.2","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.0.0","@itwin/object-storage-core":"^2.0.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"},"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"}}]}}');
|
|
298169
298197
|
|
|
298170
298198
|
/***/ }),
|
|
298171
298199
|
|