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