@itwin/ecschema-rpcinterface-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 +90 -62
- 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 +16 -16
|
@@ -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":""}
|
|
@@ -40654,7 +40654,7 @@ class RpcInterface {
|
|
|
40654
40654
|
// patch difference is fine. If minor versions differ, compatible as long as backend minor version is greater
|
|
40655
40655
|
return difference === "patch" || (difference === "minor" && frontendSemver.minor < backendSemver.minor);
|
|
40656
40656
|
}
|
|
40657
|
-
/** @
|
|
40657
|
+
/** @beta */
|
|
40658
40658
|
constructor(routing = _rpc_core_RpcRoutingToken__WEBPACK_IMPORTED_MODULE_3__.RpcRoutingToken.default) {
|
|
40659
40659
|
this.routing = routing;
|
|
40660
40660
|
this.configuration = _rpc_core_RpcConfiguration__WEBPACK_IMPORTED_MODULE_0__.RpcConfiguration.supply(this);
|
|
@@ -45099,7 +45099,7 @@ var AreaPattern;
|
|
|
45099
45099
|
applyTransform(transform) {
|
|
45100
45100
|
if (transform.isIdentity)
|
|
45101
45101
|
return true;
|
|
45102
|
-
|
|
45102
|
+
let origin = this.origin ? this.origin : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.createZero();
|
|
45103
45103
|
const rMatrix = this.rotation ? this.rotation.toMatrix3d() : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createIdentity();
|
|
45104
45104
|
if (this.symbolId !== undefined) {
|
|
45105
45105
|
this.space1 = Params.transformPatternSpace(transform, this.space1 ? this.space1 : 0.0, rMatrix, this.angle1);
|
|
@@ -45132,7 +45132,7 @@ var AreaPattern;
|
|
|
45132
45132
|
if (this.space2 && 0 !== this.space2)
|
|
45133
45133
|
this.space2 = Params.transformPatternSpace(transform, this.space2, rMatrix, this.angle2);
|
|
45134
45134
|
}
|
|
45135
|
-
transform.multiplyPoint3d(origin);
|
|
45135
|
+
origin = transform.multiplyPoint3d(origin);
|
|
45136
45136
|
rMatrix.multiplyMatrixMatrix(transform.matrix, rMatrix);
|
|
45137
45137
|
const normalized = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createRigidFromMatrix3d(rMatrix);
|
|
45138
45138
|
if (!normalized)
|
|
@@ -192909,6 +192909,7 @@ class RegionOps {
|
|
|
192909
192909
|
* not detect self intersection among widely separated edges.
|
|
192910
192910
|
* * If offsetDistance is given as a number, default OffsetOptions are applied.
|
|
192911
192911
|
* * See [[JointOptions]] class doc for offset construction rules.
|
|
192912
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/Offset
|
|
192912
192913
|
* @param curves base curves.
|
|
192913
192914
|
* @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.
|
|
192914
192915
|
*/
|
|
@@ -195862,8 +195863,8 @@ class JointOptions {
|
|
|
195862
195863
|
* ranges blow up. Internally, this is implemented by applying an upper bound of 120 degrees to `maxChamferTurnDegrees`.
|
|
195863
195864
|
* * When `allowSharpestCorners` is true, this internal upper bound is removed, allowing sharp corners for turn angles
|
|
195864
195865
|
* up to `maxChamferTurnDegrees`.
|
|
195865
|
-
* * Thus, if you know your input turn angles are no greater than `maxChamferTurnDegrees`, you can create an offset
|
|
195866
|
-
*
|
|
195866
|
+
* * Thus, if you know your input turn angles are no greater than `maxChamferTurnDegrees`, you can create an offset with
|
|
195867
|
+
* sharp corners at each joint by setting `maxChamferTurnDegrees < minArcDegrees` and `allowSharpestCorners` to true.
|
|
195867
195868
|
*/
|
|
195868
195869
|
this.allowSharpestCorners = false;
|
|
195869
195870
|
/** Offset distance, positive to left of base curve. */
|
|
@@ -195899,8 +195900,7 @@ class JointOptions {
|
|
|
195899
195900
|
return leftOffsetDistanceOrOptions;
|
|
195900
195901
|
return new JointOptions(leftOffsetDistanceOrOptions);
|
|
195901
195902
|
}
|
|
195902
|
-
/**
|
|
195903
|
-
/** Return true if the options indicate this amount of turn should be handled with an arc. */
|
|
195903
|
+
/** Return true if the options indicate this amount of turn should be handled with an arc. */
|
|
195904
195904
|
needArc(theta) {
|
|
195905
195905
|
return Math.abs(theta.degrees) >= this.minArcDegrees;
|
|
195906
195906
|
}
|
|
@@ -196493,6 +196493,7 @@ class CurveChainWireOffsetContext {
|
|
|
196493
196493
|
* not detect self intersection among widely separated edges.
|
|
196494
196494
|
* * If offsetDistance is given as a number, default OffsetOptions are applied.
|
|
196495
196495
|
* * See [[JointOptions]] class doc for offset construction rules.
|
|
196496
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/Offset
|
|
196496
196497
|
* @param curves base curves.
|
|
196497
196498
|
* @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.
|
|
196498
196499
|
*/
|
|
@@ -208860,24 +208861,27 @@ class Plane3d {
|
|
|
208860
208861
|
isPointInPlane(spacePoint, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
|
|
208861
208862
|
return Math.abs(this.altitude(spacePoint)) <= tolerance;
|
|
208862
208863
|
}
|
|
208863
|
-
/**
|
|
208864
|
-
*
|
|
208864
|
+
/**
|
|
208865
|
+
* Return a value -1, 0, 1 giving a signed indicator of whether the toleranced altitude of the point is
|
|
208866
|
+
* negative, near zero, or positive.
|
|
208865
208867
|
*
|
|
208866
|
-
|
|
208868
|
+
*/
|
|
208867
208869
|
classifyAltitude(point, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
|
|
208868
208870
|
return _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.split3Way01(this.altitude(point), tolerance);
|
|
208869
208871
|
}
|
|
208870
|
-
/**
|
|
208871
|
-
*
|
|
208872
|
+
/**
|
|
208873
|
+
* Return a value -1, 0, 1 giving a signed indicator of whether the toleranced altitude of x,y,z is
|
|
208874
|
+
* negative, near zero, or positive.
|
|
208872
208875
|
*
|
|
208873
|
-
|
|
208876
|
+
*/
|
|
208874
208877
|
classifyAltitudeXYZ(x, y, z, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
|
|
208875
208878
|
return _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.split3Way01(this.altitudeXYZ(x, y, z), tolerance);
|
|
208876
208879
|
}
|
|
208877
208880
|
/**
|
|
208878
208881
|
* Return the unit normal for the plane.
|
|
208879
208882
|
* * The abstract base class implementation assembles the normal from normalX, normalY, normalZ calls.
|
|
208880
|
-
* * Derived classes should (but are not required to) override for maximum efficiency if the separate normal calls
|
|
208883
|
+
* * Derived classes should (but are not required to) override for maximum efficiency if the separate normal calls
|
|
208884
|
+
* cause repeated normalization.
|
|
208881
208885
|
* @param result
|
|
208882
208886
|
*/
|
|
208883
208887
|
getUnitNormal(result) {
|
|
@@ -208888,7 +208892,7 @@ class Plane3d {
|
|
|
208888
208892
|
* * Default implementation projects the origin (0,0,0) to the plane.
|
|
208889
208893
|
* * Classes that have a preferred origin for their plane should override.
|
|
208890
208894
|
* * Classes with a purely implicit equation of their plane can accept the default implementation
|
|
208891
|
-
|
|
208895
|
+
*/
|
|
208892
208896
|
getAnyPointOnPlane(result) {
|
|
208893
208897
|
return this.projectPointToPlane(_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(0, 0, 0), result);
|
|
208894
208898
|
}
|
|
@@ -208969,7 +208973,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
208969
208973
|
return Plane3dByOriginAndUnitNormal._create(origin.x, origin.y, origin.z, 0, 1, 0);
|
|
208970
208974
|
return Plane3dByOriginAndUnitNormal._create(0, 0, 0, 0, 1, 0);
|
|
208971
208975
|
}
|
|
208972
|
-
/**
|
|
208976
|
+
/**
|
|
208977
|
+
* Create a new Plane3dByOriginAndUnitNormal with given origin and normal.
|
|
208973
208978
|
* * The inputs are NOT captured.
|
|
208974
208979
|
* * Returns undefined if `normal.normalize()` returns undefined.
|
|
208975
208980
|
*/
|
|
@@ -208985,7 +208990,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
208985
208990
|
return undefined;
|
|
208986
208991
|
return new Plane3dByOriginAndUnitNormal(origin.clone(), normalized);
|
|
208987
208992
|
}
|
|
208988
|
-
/**
|
|
208993
|
+
/**
|
|
208994
|
+
* Create a new Plane3dByOriginAndUnitNormal from a variety of plane types.
|
|
208989
208995
|
* * The inputs are NOT captured.
|
|
208990
208996
|
* * Returns undefined if `source.getUnitNormal()` returns undefined.
|
|
208991
208997
|
*/
|
|
@@ -209004,7 +209010,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209004
209010
|
const origin = source.getAnyPointOnPlane();
|
|
209005
209011
|
return new Plane3dByOriginAndUnitNormal(origin, normal);
|
|
209006
209012
|
}
|
|
209007
|
-
/**
|
|
209013
|
+
/**
|
|
209014
|
+
* Create a new Plane3dByOriginAndUnitNormal with direct coordinates of origin and normal.
|
|
209008
209015
|
* * Returns undefined if the normal vector is all zeros.
|
|
209009
209016
|
* * If unable to normalize return undefined. (And if result is given it is left unchanged)
|
|
209010
209017
|
*/
|
|
@@ -209019,7 +209026,9 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209019
209026
|
}
|
|
209020
209027
|
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));
|
|
209021
209028
|
}
|
|
209022
|
-
/**
|
|
209029
|
+
/**
|
|
209030
|
+
* Create a new Plane3dByOriginAndUnitNormal with unit normal (a) in the xy plane (b) perpendicular to the line
|
|
209031
|
+
* defined by xy parts of origin to target.
|
|
209023
209032
|
* * origin and normal both have z = 0.
|
|
209024
209033
|
* * The inputs are NOT captured.
|
|
209025
209034
|
* * Returns undefined if the normal vector is all zeros.
|
|
@@ -209029,7 +209038,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209029
209038
|
const uy = target.y - origin.y;
|
|
209030
209039
|
return this.createXYZUVW(origin.x, origin.y, 0.0, uy, -ux, 0.0, result);
|
|
209031
209040
|
}
|
|
209032
|
-
/**
|
|
209041
|
+
/**
|
|
209042
|
+
* Create a new Plane3dByOriginAndUnitNormal with xy origin (at z=0) and normal angle in xy plane.
|
|
209033
209043
|
* * Returns undefined if the normal vector is all zeros.
|
|
209034
209044
|
*/
|
|
209035
209045
|
static createXYAngle(x, y, normalAngleFromX, result) {
|
|
@@ -209040,7 +209050,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209040
209050
|
}
|
|
209041
209051
|
return new Plane3dByOriginAndUnitNormal(_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(x, y, 0), _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create(normalAngleFromX.cos(), normalAngleFromX.sin()));
|
|
209042
209052
|
}
|
|
209043
|
-
/**
|
|
209053
|
+
/**
|
|
209054
|
+
* Create a plane defined by two points and an in-plane vector.
|
|
209044
209055
|
* @param pointA any point in the plane
|
|
209045
209056
|
* @param pointB any other point in the plane
|
|
209046
209057
|
* @param vector any vector in the plane but not parallel to the vector from pointA to pointB
|
|
@@ -209051,7 +209062,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209051
209062
|
return new Plane3dByOriginAndUnitNormal(pointA, cross);
|
|
209052
209063
|
return undefined;
|
|
209053
209064
|
}
|
|
209054
|
-
/**
|
|
209065
|
+
/**
|
|
209066
|
+
* Create a plane defined by three points.
|
|
209055
209067
|
* @param pointA any point in the plane. This will be the origin.
|
|
209056
209068
|
* @param pointB any other point in the plane
|
|
209057
209069
|
* @param pointC any third point in the plane but not on the line of pointA and pointB
|
|
@@ -209062,7 +209074,8 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209062
209074
|
return new Plane3dByOriginAndUnitNormal(pointA, cross);
|
|
209063
209075
|
return undefined;
|
|
209064
209076
|
}
|
|
209065
|
-
/**
|
|
209077
|
+
/**
|
|
209078
|
+
* Create a plane defined by a point and two vectors in the plane
|
|
209066
209079
|
* @param pointA any point in the plane
|
|
209067
209080
|
* @param vectorB any vector in the plane
|
|
209068
209081
|
* @param vectorC any vector in the plane but not parallel to vectorB
|
|
@@ -209073,7 +209086,7 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209073
209086
|
return new Plane3dByOriginAndUnitNormal(pointA, cross);
|
|
209074
209087
|
return undefined;
|
|
209075
209088
|
}
|
|
209076
|
-
/**
|
|
209089
|
+
/** Test for (toleranced) equality with `other` */
|
|
209077
209090
|
isAlmostEqual(other) {
|
|
209078
209091
|
return this._origin.isAlmostEqual(other._origin) && this._normal.isAlmostEqual(other._normal);
|
|
209079
209092
|
}
|
|
@@ -209092,8 +209105,11 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209092
209105
|
* Convert to a JSON object.
|
|
209093
209106
|
* @return {*} [origin,normal]
|
|
209094
209107
|
*/
|
|
209095
|
-
toJSON() {
|
|
209096
|
-
|
|
209108
|
+
toJSON() {
|
|
209109
|
+
return { origin: this._origin.toJSON(), normal: this._normal.toJSON() };
|
|
209110
|
+
}
|
|
209111
|
+
/**
|
|
209112
|
+
* Create a new Plane3dByOriginAndUnitNormal from json fragment.
|
|
209097
209113
|
* * See `Plane3dByOriginAndUnitNormal.setFromJSON`
|
|
209098
209114
|
*/
|
|
209099
209115
|
static fromJSON(json) {
|
|
@@ -209102,10 +209118,15 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209102
209118
|
return result;
|
|
209103
209119
|
}
|
|
209104
209120
|
/** Return a reference to the origin. */
|
|
209105
|
-
getOriginRef() {
|
|
209121
|
+
getOriginRef() {
|
|
209122
|
+
return this._origin;
|
|
209123
|
+
}
|
|
209106
209124
|
/** Return a reference to the unit normal. */
|
|
209107
|
-
getNormalRef() {
|
|
209108
|
-
|
|
209125
|
+
getNormalRef() {
|
|
209126
|
+
return this._normal;
|
|
209127
|
+
}
|
|
209128
|
+
/**
|
|
209129
|
+
* Return coordinate axes (as a transform) with
|
|
209109
209130
|
* * origin at plane origin
|
|
209110
209131
|
* * z axis in direction of plane normal.
|
|
209111
209132
|
* * x,y axes in plane.
|
|
@@ -209114,8 +209135,7 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209114
209135
|
const axes = _Matrix3d__WEBPACK_IMPORTED_MODULE_3__.Matrix3d.createRigidHeadsUp(this._normal, _Geometry__WEBPACK_IMPORTED_MODULE_2__.AxisOrder.ZXY);
|
|
209115
209136
|
return _Transform__WEBPACK_IMPORTED_MODULE_4__.Transform.createRefs(this._origin.clone(), axes);
|
|
209116
209137
|
}
|
|
209117
|
-
/** Return a (singular) transform which projects points to this plane.
|
|
209118
|
-
*/
|
|
209138
|
+
/** Return a (singular) transform which projects points to this plane. */
|
|
209119
209139
|
getProjectionToPlane() {
|
|
209120
209140
|
const axes = _Matrix3d__WEBPACK_IMPORTED_MODULE_3__.Matrix3d.createIdentity();
|
|
209121
209141
|
axes.addScaledOuterProductInPlace(this._normal, this._normal, -1.0);
|
|
@@ -209127,7 +209147,7 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209127
209147
|
this._origin.setFrom(origin);
|
|
209128
209148
|
this._normal.setFrom(normal);
|
|
209129
209149
|
}
|
|
209130
|
-
/**
|
|
209150
|
+
/** Return a deep clone (point and normal cloned) */
|
|
209131
209151
|
clone(result) {
|
|
209132
209152
|
if (result) {
|
|
209133
209153
|
result.set(this._origin, this._normal);
|
|
@@ -209157,51 +209177,56 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209157
209177
|
this.set(source._origin, source._normal);
|
|
209158
209178
|
}
|
|
209159
209179
|
/** Return the altitude of spacePoint above or below the plane. (Below is negative) */
|
|
209160
|
-
altitude(spacePoint) {
|
|
209180
|
+
altitude(spacePoint) {
|
|
209181
|
+
return this._normal.dotProductStartEnd(this._origin, spacePoint);
|
|
209182
|
+
}
|
|
209161
209183
|
/** Return the altitude of point (x,y) given xy parts using only the xy parts of origin and unit normal */
|
|
209162
209184
|
altitudeXY(x, y) {
|
|
209163
209185
|
return (x - this._origin.x) * this._normal.x + (y - this._origin.y) * this._normal.y;
|
|
209164
209186
|
}
|
|
209165
|
-
/**
|
|
209166
|
-
|
|
209167
|
-
|
|
209168
|
-
|
|
209169
|
-
/**
|
|
209170
|
-
|
|
209171
|
-
|
|
209172
|
-
|
|
209173
|
-
/**
|
|
209174
|
-
|
|
209175
|
-
|
|
209176
|
-
|
|
209177
|
-
/**
|
|
209178
|
-
* Return (a clone of) the unit normal.
|
|
209179
|
-
*/
|
|
209187
|
+
/** Return the x component of the normal used to evaluate altitude. */
|
|
209188
|
+
normalX() {
|
|
209189
|
+
return this._normal.x;
|
|
209190
|
+
}
|
|
209191
|
+
/** Return the x component of the normal used to evaluate altitude. */
|
|
209192
|
+
normalY() {
|
|
209193
|
+
return this._normal.y;
|
|
209194
|
+
}
|
|
209195
|
+
/** Return the z component of the normal used to evaluate altitude. */
|
|
209196
|
+
normalZ() {
|
|
209197
|
+
return this._normal.z;
|
|
209198
|
+
}
|
|
209199
|
+
/** Return (a clone of) the unit normal. */
|
|
209180
209200
|
getUnitNormal(result) {
|
|
209181
209201
|
return this._normal.clone(result);
|
|
209182
209202
|
}
|
|
209183
|
-
/**
|
|
209184
|
-
* Return (a clone of) the origin.
|
|
209185
|
-
*/
|
|
209203
|
+
/** Return (a clone of) the origin. */
|
|
209186
209204
|
getAnyPointOnPlane(result) {
|
|
209205
|
+
// This function returns the plane origin. In general, a point x is on the plane if and only if (x-o).n = 0.
|
|
209187
209206
|
return this._origin.clone(result);
|
|
209188
209207
|
}
|
|
209189
209208
|
/** Return the signed altitude of weighted spacePoint above or below the plane. (Below is negative) */
|
|
209190
209209
|
weightedAltitude(spacePoint) {
|
|
209191
209210
|
return this._normal.dotProductStart3dEnd4d(this._origin, spacePoint);
|
|
209192
209211
|
}
|
|
209193
|
-
/**
|
|
209212
|
+
/** Return any point at specified (signed) altitude. */
|
|
209194
209213
|
altitudeToPoint(altitude, result) {
|
|
209195
209214
|
return this._origin.plusScaled(this._normal, altitude, result);
|
|
209196
209215
|
}
|
|
209197
|
-
/**
|
|
209216
|
+
/**
|
|
209217
|
+
* Return the dot product of spaceVector with the plane's unit normal. This tells the rate of change of altitude
|
|
209198
209218
|
* for a point moving at speed one along the spaceVector.
|
|
209199
209219
|
*/
|
|
209200
|
-
velocityXYZ(x, y, z) {
|
|
209201
|
-
|
|
209220
|
+
velocityXYZ(x, y, z) {
|
|
209221
|
+
return this._normal.dotProductXYZ(x, y, z);
|
|
209222
|
+
}
|
|
209223
|
+
/**
|
|
209224
|
+
* Return the dot product of spaceVector with the plane's unit normal. This tells the rate of change of altitude
|
|
209202
209225
|
* for a point moving at speed one along the spaceVector.
|
|
209203
209226
|
*/
|
|
209204
|
-
velocity(spaceVector) {
|
|
209227
|
+
velocity(spaceVector) {
|
|
209228
|
+
return this._normal.dotProduct(spaceVector);
|
|
209229
|
+
}
|
|
209205
209230
|
/** Return the altitude of a point given as separate x,y,z components. */
|
|
209206
209231
|
altitudeXYZ(x, y, z) {
|
|
209207
209232
|
return this._normal.dotProductStartEndXYZ(this._origin, x, y, z);
|
|
@@ -209214,9 +209239,10 @@ class Plane3dByOriginAndUnitNormal extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__
|
|
|
209214
209239
|
projectPointToPlane(spacePoint, result) {
|
|
209215
209240
|
return spacePoint.plusScaled(this._normal, -this._normal.dotProductStartEnd(this._origin, spacePoint), result);
|
|
209216
209241
|
}
|
|
209217
|
-
/**
|
|
209242
|
+
/**
|
|
209243
|
+
* Returns true if spacePoint is within distance tolerance of the plane.
|
|
209218
209244
|
* * This logic is identical to the [[Plane3d]] method but avoids a level of function call.
|
|
209219
|
-
|
|
209245
|
+
*/
|
|
209220
209246
|
isPointInPlane(spacePoint, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance) {
|
|
209221
209247
|
const altitude = this._normal.dotProductStartEnd(this._origin, spacePoint);
|
|
209222
209248
|
return Math.abs(altitude) <= tolerance;
|
|
@@ -209494,6 +209520,8 @@ class Plane3dByOriginAndVectors extends _Plane3d__WEBPACK_IMPORTED_MODULE_0__.Pl
|
|
|
209494
209520
|
* Return some point on the plane.
|
|
209495
209521
|
*/
|
|
209496
209522
|
getAnyPointOnPlane(result) {
|
|
209523
|
+
// This function returns the plane origin. In general, a point x is on the plane if
|
|
209524
|
+
// and only if x = o + a*u + b*v, where a and b are scalars.
|
|
209497
209525
|
return this.origin.clone(result);
|
|
209498
209526
|
}
|
|
209499
209527
|
/** Return (if possible) a ray with origin at plane origin, direction as unit normal to the plane */
|
|
@@ -218415,7 +218443,7 @@ class Transform {
|
|
|
218415
218443
|
/**
|
|
218416
218444
|
* Create a Transform with translation provided by x,y,z parts.
|
|
218417
218445
|
* * Translation Transform maps any vector `v` to `v + p` where `p = (x,y,z)`
|
|
218418
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
218446
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeTransform
|
|
218419
218447
|
* @param x x part of translation
|
|
218420
218448
|
* @param y y part of translation
|
|
218421
218449
|
* @param z z part of translation
|
|
@@ -218428,7 +218456,7 @@ class Transform {
|
|
|
218428
218456
|
/**
|
|
218429
218457
|
* Create a Transform with specified `translation` part.
|
|
218430
218458
|
* * Translation Transform maps any vector `v` to `v + translation`
|
|
218431
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
218459
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeTransform
|
|
218432
218460
|
* @param translation x,y,z parts of the translation
|
|
218433
218461
|
* @param result optional pre-allocated Transform
|
|
218434
218462
|
* @returns new or updated transform
|
|
@@ -218551,7 +218579,7 @@ class Transform {
|
|
|
218551
218579
|
* Create a Transform which leaves the fixedPoint unchanged and scales everything else around it by
|
|
218552
218580
|
* a single scale factor. The returned Transform maps a point `p` to `M*p + (f - M*f)`
|
|
218553
218581
|
* where `f` is the fixedPoint and M is the scale matrix (i.e., `Tp = M*(p-f) + f`).
|
|
218554
|
-
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/
|
|
218582
|
+
* * Visualization can be found at https://www.itwinjs.org/sandbox/SaeedTorabi/CubeTransform
|
|
218555
218583
|
*/
|
|
218556
218584
|
static createScaleAboutPoint(fixedPoint, scale, result) {
|
|
218557
218585
|
const matrix = _Matrix3d__WEBPACK_IMPORTED_MODULE_2__.Matrix3d.createScale(scale, scale, scale);
|
|
@@ -286523,7 +286551,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
286523
286551
|
/***/ ((module) => {
|
|
286524
286552
|
|
|
286525
286553
|
"use strict";
|
|
286526
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.1.0-dev.
|
|
286554
|
+
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"}}]}}');
|
|
286527
286555
|
|
|
286528
286556
|
/***/ })
|
|
286529
286557
|
|