@itwin/rpcinterface-full-stack-tests 4.1.0-dev.66 → 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 +93 -64
- 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)
|
|
@@ -166709,7 +166709,8 @@ class ToolAdmin {
|
|
|
166709
166709
|
if (undefined !== overlayHit) {
|
|
166710
166710
|
if (overlayHit.onMouseMove)
|
|
166711
166711
|
overlayHit.onMouseMove(ev);
|
|
166712
|
-
|
|
166712
|
+
if (undefined === overlayHit.propagateMouseMove || !overlayHit.propagateMouseMove(ev))
|
|
166713
|
+
return; // we're inside a pickable decoration that doesn't want event sent to tool
|
|
166713
166714
|
}
|
|
166714
166715
|
this._mouseMoveOverTimeout = setTimeout(async () => {
|
|
166715
166716
|
await this.onMotionEnd(vp, pt2d, inputSource);
|
|
@@ -195484,6 +195485,7 @@ class RegionOps {
|
|
|
195484
195485
|
* not detect self intersection among widely separated edges.
|
|
195485
195486
|
* * If offsetDistance is given as a number, default OffsetOptions are applied.
|
|
195486
195487
|
* * See [[JointOptions]] class doc for offset construction rules.
|
|
195488
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/Offset
|
|
195487
195489
|
* @param curves base curves.
|
|
195488
195490
|
* @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.
|
|
195489
195491
|
*/
|
|
@@ -198437,8 +198439,8 @@ class JointOptions {
|
|
|
198437
198439
|
* ranges blow up. Internally, this is implemented by applying an upper bound of 120 degrees to `maxChamferTurnDegrees`.
|
|
198438
198440
|
* * When `allowSharpestCorners` is true, this internal upper bound is removed, allowing sharp corners for turn angles
|
|
198439
198441
|
* up to `maxChamferTurnDegrees`.
|
|
198440
|
-
* * Thus, if you know your input turn angles are no greater than `maxChamferTurnDegrees`, you can create an offset
|
|
198441
|
-
*
|
|
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.
|
|
198442
198444
|
*/
|
|
198443
198445
|
this.allowSharpestCorners = false;
|
|
198444
198446
|
/** Offset distance, positive to left of base curve. */
|
|
@@ -198474,8 +198476,7 @@ class JointOptions {
|
|
|
198474
198476
|
return leftOffsetDistanceOrOptions;
|
|
198475
198477
|
return new JointOptions(leftOffsetDistanceOrOptions);
|
|
198476
198478
|
}
|
|
198477
|
-
/**
|
|
198478
|
-
/** 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. */
|
|
198479
198480
|
needArc(theta) {
|
|
198480
198481
|
return Math.abs(theta.degrees) >= this.minArcDegrees;
|
|
198481
198482
|
}
|
|
@@ -199068,6 +199069,7 @@ class CurveChainWireOffsetContext {
|
|
|
199068
199069
|
* not detect self intersection among widely separated edges.
|
|
199069
199070
|
* * If offsetDistance is given as a number, default OffsetOptions are applied.
|
|
199070
199071
|
* * See [[JointOptions]] class doc for offset construction rules.
|
|
199072
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/Offset
|
|
199071
199073
|
* @param curves base curves.
|
|
199072
199074
|
* @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.
|
|
199073
199075
|
*/
|
|
@@ -211435,24 +211437,27 @@ class Plane3d {
|
|
|
211435
211437
|
isPointInPlane(spacePoint, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
|
|
211436
211438
|
return Math.abs(this.altitude(spacePoint)) <= tolerance;
|
|
211437
211439
|
}
|
|
211438
|
-
/**
|
|
211439
|
-
*
|
|
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.
|
|
211440
211443
|
*
|
|
211441
|
-
|
|
211444
|
+
*/
|
|
211442
211445
|
classifyAltitude(point, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
|
|
211443
211446
|
return _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.split3Way01(this.altitude(point), tolerance);
|
|
211444
211447
|
}
|
|
211445
|
-
/**
|
|
211446
|
-
*
|
|
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.
|
|
211447
211451
|
*
|
|
211448
|
-
|
|
211452
|
+
*/
|
|
211449
211453
|
classifyAltitudeXYZ(x, y, z, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
|
|
211450
211454
|
return _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.split3Way01(this.altitudeXYZ(x, y, z), tolerance);
|
|
211451
211455
|
}
|
|
211452
211456
|
/**
|
|
211453
211457
|
* Return the unit normal for the plane.
|
|
211454
211458
|
* * The abstract base class implementation assembles the normal from normalX, normalY, normalZ calls.
|
|
211455
|
-
* * 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.
|
|
211456
211461
|
* @param result
|
|
211457
211462
|
*/
|
|
211458
211463
|
getUnitNormal(result) {
|
|
@@ -211463,7 +211468,7 @@ class Plane3d {
|
|
|
211463
211468
|
* * Default implementation projects the origin (0,0,0) to the plane.
|
|
211464
211469
|
* * Classes that have a preferred origin for their plane should override.
|
|
211465
211470
|
* * Classes with a purely implicit equation of their plane can accept the default implementation
|
|
211466
|
-
|
|
211471
|
+
*/
|
|
211467
211472
|
getAnyPointOnPlane(result) {
|
|
211468
211473
|
return this.projectPointToPlane(_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(0, 0, 0), result);
|
|
211469
211474
|
}
|
|
@@ -211544,7 +211549,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211544
211549
|
return Plane3dByOriginAndUnitNormal._create(origin.x, origin.y, origin.z, 0, 1, 0);
|
|
211545
211550
|
return Plane3dByOriginAndUnitNormal._create(0, 0, 0, 0, 1, 0);
|
|
211546
211551
|
}
|
|
211547
|
-
/**
|
|
211552
|
+
/**
|
|
211553
|
+
* Create a new Plane3dByOriginAndUnitNormal with given origin and normal.
|
|
211548
211554
|
* * The inputs are NOT captured.
|
|
211549
211555
|
* * Returns undefined if `normal.normalize()` returns undefined.
|
|
211550
211556
|
*/
|
|
@@ -211560,7 +211566,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211560
211566
|
return undefined;
|
|
211561
211567
|
return new Plane3dByOriginAndUnitNormal(origin.clone(), normalized);
|
|
211562
211568
|
}
|
|
211563
|
-
/**
|
|
211569
|
+
/**
|
|
211570
|
+
* Create a new Plane3dByOriginAndUnitNormal from a variety of plane types.
|
|
211564
211571
|
* * The inputs are NOT captured.
|
|
211565
211572
|
* * Returns undefined if `source.getUnitNormal()` returns undefined.
|
|
211566
211573
|
*/
|
|
@@ -211579,7 +211586,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211579
211586
|
const origin = source.getAnyPointOnPlane();
|
|
211580
211587
|
return new Plane3dByOriginAndUnitNormal(origin, normal);
|
|
211581
211588
|
}
|
|
211582
|
-
/**
|
|
211589
|
+
/**
|
|
211590
|
+
* Create a new Plane3dByOriginAndUnitNormal with direct coordinates of origin and normal.
|
|
211583
211591
|
* * Returns undefined if the normal vector is all zeros.
|
|
211584
211592
|
* * If unable to normalize return undefined. (And if result is given it is left unchanged)
|
|
211585
211593
|
*/
|
|
@@ -211594,7 +211602,9 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211594
211602
|
}
|
|
211595
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));
|
|
211596
211604
|
}
|
|
211597
|
-
/**
|
|
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.
|
|
211598
211608
|
* * origin and normal both have z = 0.
|
|
211599
211609
|
* * The inputs are NOT captured.
|
|
211600
211610
|
* * Returns undefined if the normal vector is all zeros.
|
|
@@ -211604,7 +211614,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211604
211614
|
const uy = target.y - origin.y;
|
|
211605
211615
|
return this.createXYZUVW(origin.x, origin.y, 0.0, uy, -ux, 0.0, result);
|
|
211606
211616
|
}
|
|
211607
|
-
/**
|
|
211617
|
+
/**
|
|
211618
|
+
* Create a new Plane3dByOriginAndUnitNormal with xy origin (at z=0) and normal angle in xy plane.
|
|
211608
211619
|
* * Returns undefined if the normal vector is all zeros.
|
|
211609
211620
|
*/
|
|
211610
211621
|
static createXYAngle(x, y, normalAngleFromX, result) {
|
|
@@ -211615,7 +211626,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211615
211626
|
}
|
|
211616
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()));
|
|
211617
211628
|
}
|
|
211618
|
-
/**
|
|
211629
|
+
/**
|
|
211630
|
+
* Create a plane defined by two points and an in-plane vector.
|
|
211619
211631
|
* @param pointA any point in the plane
|
|
211620
211632
|
* @param pointB any other point in the plane
|
|
211621
211633
|
* @param vector any vector in the plane but not parallel to the vector from pointA to pointB
|
|
@@ -211626,7 +211638,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211626
211638
|
return new Plane3dByOriginAndUnitNormal(pointA, cross);
|
|
211627
211639
|
return undefined;
|
|
211628
211640
|
}
|
|
211629
|
-
/**
|
|
211641
|
+
/**
|
|
211642
|
+
* Create a plane defined by three points.
|
|
211630
211643
|
* @param pointA any point in the plane. This will be the origin.
|
|
211631
211644
|
* @param pointB any other point in the plane
|
|
211632
211645
|
* @param pointC any third point in the plane but not on the line of pointA and pointB
|
|
@@ -211637,7 +211650,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211637
211650
|
return new Plane3dByOriginAndUnitNormal(pointA, cross);
|
|
211638
211651
|
return undefined;
|
|
211639
211652
|
}
|
|
211640
|
-
/**
|
|
211653
|
+
/**
|
|
211654
|
+
* Create a plane defined by a point and two vectors in the plane
|
|
211641
211655
|
* @param pointA any point in the plane
|
|
211642
211656
|
* @param vectorB any vector in the plane
|
|
211643
211657
|
* @param vectorC any vector in the plane but not parallel to vectorB
|
|
@@ -211648,7 +211662,7 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211648
211662
|
return new Plane3dByOriginAndUnitNormal(pointA, cross);
|
|
211649
211663
|
return undefined;
|
|
211650
211664
|
}
|
|
211651
|
-
/**
|
|
211665
|
+
/** Test for (toleranced) equality with `other` */
|
|
211652
211666
|
isAlmostEqual(other) {
|
|
211653
211667
|
return this._origin.isAlmostEqual(other._origin) && this._normal.isAlmostEqual(other._normal);
|
|
211654
211668
|
}
|
|
@@ -211667,8 +211681,11 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211667
211681
|
* Convert to a JSON object.
|
|
211668
211682
|
* @return {*} [origin,normal]
|
|
211669
211683
|
*/
|
|
211670
|
-
toJSON() {
|
|
211671
|
-
|
|
211684
|
+
toJSON() {
|
|
211685
|
+
return { origin: this._origin.toJSON(), normal: this._normal.toJSON() };
|
|
211686
|
+
}
|
|
211687
|
+
/**
|
|
211688
|
+
* Create a new Plane3dByOriginAndUnitNormal from json fragment.
|
|
211672
211689
|
* * See `Plane3dByOriginAndUnitNormal.setFromJSON`
|
|
211673
211690
|
*/
|
|
211674
211691
|
static fromJSON(json) {
|
|
@@ -211677,10 +211694,15 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211677
211694
|
return result;
|
|
211678
211695
|
}
|
|
211679
211696
|
/** Return a reference to the origin. */
|
|
211680
|
-
getOriginRef() {
|
|
211697
|
+
getOriginRef() {
|
|
211698
|
+
return this._origin;
|
|
211699
|
+
}
|
|
211681
211700
|
/** Return a reference to the unit normal. */
|
|
211682
|
-
getNormalRef() {
|
|
211683
|
-
|
|
211701
|
+
getNormalRef() {
|
|
211702
|
+
return this._normal;
|
|
211703
|
+
}
|
|
211704
|
+
/**
|
|
211705
|
+
* Return coordinate axes (as a transform) with
|
|
211684
211706
|
* * origin at plane origin
|
|
211685
211707
|
* * z axis in direction of plane normal.
|
|
211686
211708
|
* * x,y axes in plane.
|
|
@@ -211689,8 +211711,7 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211689
211711
|
const axes = _Matrix3d__WEBPACK_IMPORTED_MODULE_3__.Matrix3d.createRigidHeadsUp(this._normal, _Geometry__WEBPACK_IMPORTED_MODULE_2__.AxisOrder.ZXY);
|
|
211690
211712
|
return _Transform__WEBPACK_IMPORTED_MODULE_4__.Transform.createRefs(this._origin.clone(), axes);
|
|
211691
211713
|
}
|
|
211692
|
-
/** Return a (singular) transform which projects points to this plane.
|
|
211693
|
-
*/
|
|
211714
|
+
/** Return a (singular) transform which projects points to this plane. */
|
|
211694
211715
|
getProjectionToPlane() {
|
|
211695
211716
|
const axes = _Matrix3d__WEBPACK_IMPORTED_MODULE_3__.Matrix3d.createIdentity();
|
|
211696
211717
|
axes.addScaledOuterProductInPlace(this._normal, this._normal, -1.0);
|
|
@@ -211702,7 +211723,7 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211702
211723
|
this._origin.setFrom(origin);
|
|
211703
211724
|
this._normal.setFrom(normal);
|
|
211704
211725
|
}
|
|
211705
|
-
/**
|
|
211726
|
+
/** Return a deep clone (point and normal cloned) */
|
|
211706
211727
|
clone(result) {
|
|
211707
211728
|
if (result) {
|
|
211708
211729
|
result.set(this._origin, this._normal);
|
|
@@ -211732,51 +211753,56 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211732
211753
|
this.set(source._origin, source._normal);
|
|
211733
211754
|
}
|
|
211734
211755
|
/** Return the altitude of spacePoint above or below the plane. (Below is negative) */
|
|
211735
|
-
altitude(spacePoint) {
|
|
211756
|
+
altitude(spacePoint) {
|
|
211757
|
+
return this._normal.dotProductStartEnd(this._origin, spacePoint);
|
|
211758
|
+
}
|
|
211736
211759
|
/** Return the altitude of point (x,y) given xy parts using only the xy parts of origin and unit normal */
|
|
211737
211760
|
altitudeXY(x, y) {
|
|
211738
211761
|
return (x - this._origin.x) * this._normal.x + (y - this._origin.y) * this._normal.y;
|
|
211739
211762
|
}
|
|
211740
|
-
/**
|
|
211741
|
-
|
|
211742
|
-
|
|
211743
|
-
|
|
211744
|
-
/**
|
|
211745
|
-
|
|
211746
|
-
|
|
211747
|
-
|
|
211748
|
-
/**
|
|
211749
|
-
|
|
211750
|
-
|
|
211751
|
-
|
|
211752
|
-
/**
|
|
211753
|
-
* Return (a clone of) the unit normal.
|
|
211754
|
-
*/
|
|
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. */
|
|
211755
211776
|
getUnitNormal(result) {
|
|
211756
211777
|
return this._normal.clone(result);
|
|
211757
211778
|
}
|
|
211758
|
-
/**
|
|
211759
|
-
* Return (a clone of) the origin.
|
|
211760
|
-
*/
|
|
211779
|
+
/** Return (a clone of) the origin. */
|
|
211761
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.
|
|
211762
211782
|
return this._origin.clone(result);
|
|
211763
211783
|
}
|
|
211764
211784
|
/** Return the signed altitude of weighted spacePoint above or below the plane. (Below is negative) */
|
|
211765
211785
|
weightedAltitude(spacePoint) {
|
|
211766
211786
|
return this._normal.dotProductStart3dEnd4d(this._origin, spacePoint);
|
|
211767
211787
|
}
|
|
211768
|
-
/**
|
|
211788
|
+
/** Return any point at specified (signed) altitude. */
|
|
211769
211789
|
altitudeToPoint(altitude, result) {
|
|
211770
211790
|
return this._origin.plusScaled(this._normal, altitude, result);
|
|
211771
211791
|
}
|
|
211772
|
-
/**
|
|
211792
|
+
/**
|
|
211793
|
+
* Return the dot product of spaceVector with the plane's unit normal. This tells the rate of change of altitude
|
|
211773
211794
|
* for a point moving at speed one along the spaceVector.
|
|
211774
211795
|
*/
|
|
211775
|
-
velocityXYZ(x, y, z) {
|
|
211776
|
-
|
|
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
|
|
211777
211801
|
* for a point moving at speed one along the spaceVector.
|
|
211778
211802
|
*/
|
|
211779
|
-
velocity(spaceVector) {
|
|
211803
|
+
velocity(spaceVector) {
|
|
211804
|
+
return this._normal.dotProduct(spaceVector);
|
|
211805
|
+
}
|
|
211780
211806
|
/** Return the altitude of a point given as separate x,y,z components. */
|
|
211781
211807
|
altitudeXYZ(x, y, z) {
|
|
211782
211808
|
return this._normal.dotProductStartEndXYZ(this._origin, x, y, z);
|
|
@@ -211789,9 +211815,10 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
211789
211815
|
projectPointToPlane(spacePoint, result) {
|
|
211790
211816
|
return spacePoint.plusScaled(this._normal, -this._normal.dotProductStartEnd(this._origin, spacePoint), result);
|
|
211791
211817
|
}
|
|
211792
|
-
/**
|
|
211818
|
+
/**
|
|
211819
|
+
* Returns true if spacePoint is within distance tolerance of the plane.
|
|
211793
211820
|
* * This logic is identical to the [[Plane3d]] method but avoids a level of function call.
|
|
211794
|
-
|
|
211821
|
+
*/
|
|
211795
211822
|
isPointInPlane(spacePoint, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance) {
|
|
211796
211823
|
const altitude = this._normal.dotProductStartEnd(this._origin, spacePoint);
|
|
211797
211824
|
return Math.abs(altitude) <= tolerance;
|
|
@@ -212069,6 +212096,8 @@ class Plane3dByOriginAndVectors extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__.Pl
|
|
|
212069
212096
|
* Return some point on the plane.
|
|
212070
212097
|
*/
|
|
212071
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.
|
|
212072
212101
|
return this.origin.clone(result);
|
|
212073
212102
|
}
|
|
212074
212103
|
/** Return (if possible) a ray with origin at plane origin, direction as unit normal to the plane */
|
|
@@ -220990,7 +221019,7 @@ class Transform {
|
|
|
220990
221019
|
/**
|
|
220991
221020
|
* Create a Transform with translation provided by x,y,z parts.
|
|
220992
221021
|
* * Translation Transform maps any vector `v` to `v + p` where `p = (x,y,z)`
|
|
220993
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
221022
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeTransform
|
|
220994
221023
|
* @param x x part of translation
|
|
220995
221024
|
* @param y y part of translation
|
|
220996
221025
|
* @param z z part of translation
|
|
@@ -221003,7 +221032,7 @@ class Transform {
|
|
|
221003
221032
|
/**
|
|
221004
221033
|
* Create a Transform with specified `translation` part.
|
|
221005
221034
|
* * Translation Transform maps any vector `v` to `v + translation`
|
|
221006
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
221035
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeTransform
|
|
221007
221036
|
* @param translation x,y,z parts of the translation
|
|
221008
221037
|
* @param result optional pre-allocated Transform
|
|
221009
221038
|
* @returns new or updated transform
|
|
@@ -221126,7 +221155,7 @@ class Transform {
|
|
|
221126
221155
|
* Create a Transform which leaves the fixedPoint unchanged and scales everything else around it by
|
|
221127
221156
|
* a single scale factor. The returned Transform maps a point `p` to `M*p + (f - M*f)`
|
|
221128
221157
|
* where `f` is the fixedPoint and M is the scale matrix (i.e., `Tp = M*(p-f) + f`).
|
|
221129
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
221158
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeTransform
|
|
221130
221159
|
*/
|
|
221131
221160
|
static createScaleAboutPoint(fixedPoint, scale, result) {
|
|
221132
221161
|
const matrix = _Matrix3d__WEBPACK_IMPORTED_MODULE_2__.Matrix3d.createScale(scale, scale, scale);
|
|
@@ -278790,7 +278819,7 @@ class TestContext {
|
|
|
278790
278819
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
278791
278820
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
278792
278821
|
await core_frontend_1.NoRenderApp.startup({
|
|
278793
|
-
applicationVersion: "4.1.0-dev.
|
|
278822
|
+
applicationVersion: "4.1.0-dev.68",
|
|
278794
278823
|
applicationId: this.settings.gprid,
|
|
278795
278824
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
278796
278825
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -298164,7 +298193,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
298164
298193
|
/***/ ((module) => {
|
|
298165
298194
|
|
|
298166
298195
|
"use strict";
|
|
298167
|
-
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"}}]}}');
|
|
298168
298197
|
|
|
298169
298198
|
/***/ }),
|
|
298170
298199
|
|