@itwin/rpcinterface-full-stack-tests 3.4.0-dev.35 → 3.4.0-dev.36
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/_fc1f.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +100 -110
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_9_node_modules_loaders_gl_draco_di-01256f.bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_fc1f.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_fc1f.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\1147\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.2.9\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -96099,37 +96099,23 @@ class AccuSnap {
|
|
|
96099
96099
|
const parsed = undefined !== json ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.IModelJson.Reader.parse(json) : undefined;
|
|
96100
96100
|
return parsed instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.GeometryQuery && "curvePrimitive" === parsed.geometryCategory ? parsed : undefined;
|
|
96101
96101
|
};
|
|
96102
|
-
|
|
96103
|
-
|
|
96104
|
-
|
|
96105
|
-
const elevation = undefined !== thisHit.modelId ? thisHit.viewport.view.getModelElevation(thisHit.modelId) : 0;
|
|
96106
|
-
if (0 !== elevation || undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
|
|
96107
|
-
const adjustedSnapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.fromJSON(snapPoint);
|
|
96108
|
-
thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, adjustedSnapPoint, false);
|
|
96109
|
-
adjustedSnapPoint.z += elevation;
|
|
96110
|
-
snapPoint = adjustedSnapPoint;
|
|
96111
|
-
}
|
|
96102
|
+
const snapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.fromJSON(result.snapPoint);
|
|
96103
|
+
const displayTransform = undefined !== thisHit.modelId ? thisHit.viewport.view.computeDisplayTransform({ modelId: thisHit.modelId, elementId: thisHit.sourceId }) : undefined;
|
|
96104
|
+
displayTransform === null || displayTransform === void 0 ? void 0 : displayTransform.multiplyPoint3d(snapPoint, snapPoint);
|
|
96112
96105
|
const snap = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__.SnapDetail(thisHit, result.snapMode, result.heat, snapPoint);
|
|
96113
|
-
|
|
96114
|
-
let transform;
|
|
96115
|
-
if (undefined !== thisHit.modelId && undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
|
|
96116
|
-
transform = thisHit.viewport.view.getModelDisplayTransform(thisHit.modelId, _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createIdentity());
|
|
96117
|
-
if (0 !== elevation)
|
|
96118
|
-
transform.origin.set(0, 0, elevation);
|
|
96119
|
-
}
|
|
96120
|
-
else if (0 !== elevation) {
|
|
96121
|
-
transform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createTranslationXYZ(0, 0, elevation);
|
|
96122
|
-
}
|
|
96123
|
-
snap.setCurvePrimitive(parseCurve(result.curve), transform, result.geomType);
|
|
96106
|
+
snap.setCurvePrimitive(parseCurve(result.curve), displayTransform, result.geomType);
|
|
96124
96107
|
if (undefined !== result.parentGeomType)
|
|
96125
96108
|
snap.parentGeomType = result.parentGeomType;
|
|
96109
|
+
// Update hitPoint from readPixels with exact point location corrected to surface/edge geometry.
|
|
96126
96110
|
if (undefined !== result.hitPoint) {
|
|
96127
|
-
snap.hitPoint.setFromJSON(result.hitPoint);
|
|
96128
|
-
|
|
96111
|
+
snap.hitPoint.setFromJSON(result.hitPoint);
|
|
96112
|
+
displayTransform === null || displayTransform === void 0 ? void 0 : displayTransform.multiplyPoint3d(snap.hitPoint, snap.hitPoint);
|
|
96129
96113
|
}
|
|
96114
|
+
// Apply display transform to normal.
|
|
96130
96115
|
if (undefined !== result.normal) {
|
|
96131
96116
|
snap.normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.fromJSON(result.normal);
|
|
96132
|
-
|
|
96117
|
+
displayTransform === null || displayTransform === void 0 ? void 0 : displayTransform.matrix.multiplyVector(snap.normal, snap.normal);
|
|
96118
|
+
snap.normal.normalizeInPlace();
|
|
96133
96119
|
}
|
|
96134
96120
|
if (_HitDetail__WEBPACK_IMPORTED_MODULE_3__.SnapMode.Intersection !== snap.snapMode)
|
|
96135
96121
|
return snap;
|
|
@@ -112863,8 +112849,9 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
112863
112849
|
* @internal
|
|
112864
112850
|
*/
|
|
112865
112851
|
getModelElevation(_modelId) { return 0; }
|
|
112866
|
-
/**
|
|
112867
|
-
* @note The transform
|
|
112852
|
+
/** An object that can provide per-model transforms to be applied at display time.
|
|
112853
|
+
* @note The transform is used for display purposes only. Operations upon geometry within the model may not take the display transform into account.
|
|
112854
|
+
* @see [[computeDisplayTransform]] to compute a full display transform for a model or an element within it, which may include a transform supplied by this provider.
|
|
112868
112855
|
* @beta
|
|
112869
112856
|
*/
|
|
112870
112857
|
get modelDisplayTransformProvider() {
|
|
@@ -112877,31 +112864,37 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
112877
112864
|
this.onModelDisplayTransformProviderChanged.raiseEvent(provider);
|
|
112878
112865
|
this._modelDisplayTransformProvider = provider;
|
|
112879
112866
|
}
|
|
112880
|
-
/**
|
|
112867
|
+
/** Compute the transform applied to a model or element at display time, if any.
|
|
112868
|
+
* The display transform may be constructed from any combination of the following:
|
|
112869
|
+
* - [PlanProjectionSettings.elevation]($common) applied to plan projection models by [DisplayStyle3dSettings.planProjectionSettings]($common);
|
|
112870
|
+
* - A per-model transform supplied by this view's [[modelDisplayTransformProvider]]; and/or
|
|
112871
|
+
* - A transform applied to an element by an [RenderSchedule.ElementTimeline]($common) defined by this view's [[scheduleScript]].
|
|
112872
|
+
* @param args A description of how to compute the transform.
|
|
112873
|
+
* @returns The computed transform, or `undefined` if no display transform is to be applied.
|
|
112881
112874
|
* @beta
|
|
112882
112875
|
*/
|
|
112883
|
-
|
|
112884
|
-
|
|
112885
|
-
|
|
112886
|
-
|
|
112887
|
-
|
|
112888
|
-
|
|
112889
|
-
|
|
112890
|
-
|
|
112891
|
-
|
|
112892
|
-
|
|
112893
|
-
|
|
112894
|
-
|
|
112895
|
-
|
|
112896
|
-
|
|
112897
|
-
|
|
112898
|
-
|
|
112899
|
-
|
|
112900
|
-
|
|
112901
|
-
|
|
112902
|
-
|
|
112903
|
-
|
|
112904
|
-
|
|
112876
|
+
computeDisplayTransform(args) {
|
|
112877
|
+
var _a, _b, _c;
|
|
112878
|
+
const elevation = this.getModelElevation(args.modelId);
|
|
112879
|
+
const modelTransform = (_a = this.modelDisplayTransformProvider) === null || _a === void 0 ? void 0 : _a.getModelDisplayTransform(args.modelId);
|
|
112880
|
+
// NB: A ModelTimeline can apply a transform to all elements in the model, but no code exists which actually applies that at display time.
|
|
112881
|
+
// So for now we continue to only consider the ElementTimeline transform.
|
|
112882
|
+
let scriptTransform;
|
|
112883
|
+
if (this.scheduleScript && args.elementId) {
|
|
112884
|
+
const idPair = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.getUint32Pair(args.elementId);
|
|
112885
|
+
const modelTimeline = this.scheduleScript.find(args.modelId);
|
|
112886
|
+
const elementTimeline = modelTimeline === null || modelTimeline === void 0 ? void 0 : modelTimeline.getTimelineForElement(idPair.lower, idPair.upper);
|
|
112887
|
+
scriptTransform = elementTimeline === null || elementTimeline === void 0 ? void 0 : elementTimeline.getAnimationTransform((_c = (_b = args.timePoint) !== null && _b !== void 0 ? _b : this.displayStyle.settings.timePoint) !== null && _c !== void 0 ? _c : 0);
|
|
112888
|
+
}
|
|
112889
|
+
if (0 === elevation && !modelTransform && !scriptTransform)
|
|
112890
|
+
return undefined;
|
|
112891
|
+
const transform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createIdentity(args.output);
|
|
112892
|
+
transform.origin.z = elevation;
|
|
112893
|
+
if (modelTransform)
|
|
112894
|
+
transform.multiplyTransformTransform(modelTransform, transform);
|
|
112895
|
+
if (scriptTransform)
|
|
112896
|
+
transform.multiplyTransformTransform(scriptTransform, transform);
|
|
112897
|
+
return transform;
|
|
112905
112898
|
}
|
|
112906
112899
|
/** Invoked when this view becomes the view displayed by the specified [[Viewport]].
|
|
112907
112900
|
* A ViewState can be attached to at most **one** Viewport.
|
|
@@ -116348,7 +116341,7 @@ class Viewport {
|
|
|
116348
116341
|
* @see [[getPixelDataNpcPoint]] to obtain the point in [[CoordSystem.Npc]].
|
|
116349
116342
|
*/
|
|
116350
116343
|
getPixelDataWorldPoint(args) {
|
|
116351
|
-
var _a;
|
|
116344
|
+
var _a, _b;
|
|
116352
116345
|
const { pixels, x, y, out, preserveModelDisplayTransforms } = args;
|
|
116353
116346
|
const npc = this.getPixelDataNpcPoint(pixels, x, y, out);
|
|
116354
116347
|
if (undefined !== npc) {
|
|
@@ -116356,10 +116349,11 @@ class Viewport {
|
|
|
116356
116349
|
// If this is a plan projection model, invert the elevation applied to its display transform.
|
|
116357
116350
|
// Likewise, if it is a hit on a model with a display transform, reverse the display transform.
|
|
116358
116351
|
if (!preserveModelDisplayTransforms) {
|
|
116359
|
-
const
|
|
116352
|
+
const pixel = pixels.getPixel(x, y);
|
|
116353
|
+
const modelId = (_a = pixel.featureTable) === null || _a === void 0 ? void 0 : _a.modelId;
|
|
116360
116354
|
if (undefined !== modelId) {
|
|
116361
|
-
|
|
116362
|
-
|
|
116355
|
+
const transform = this.view.computeDisplayTransform({ modelId, elementId: (_b = pixel.feature) === null || _b === void 0 ? void 0 : _b.elementId });
|
|
116356
|
+
transform === null || transform === void 0 ? void 0 : transform.multiplyInversePoint3d(npc, npc);
|
|
116363
116357
|
}
|
|
116364
116358
|
}
|
|
116365
116359
|
}
|
|
@@ -161216,16 +161210,17 @@ class PrimaryTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_5__.TileTr
|
|
|
161216
161210
|
this._owner = primaryTreeSupplier.getOwner(this._id, model.iModel);
|
|
161217
161211
|
}
|
|
161218
161212
|
checkForceNoInstancing(provider) {
|
|
161219
|
-
|
|
161213
|
+
var _a;
|
|
161220
161214
|
// If this model has a display transform with a non-uniform scale then instancing needs to be forced off when using WebGL1.
|
|
161221
|
-
|
|
161222
|
-
|
|
161223
|
-
|
|
161224
|
-
|
|
161225
|
-
|
|
161226
|
-
|
|
161227
|
-
|
|
161228
|
-
|
|
161215
|
+
this._forceNoInstancing = false;
|
|
161216
|
+
const mat = (_a = provider === null || provider === void 0 ? void 0 : provider.getModelDisplayTransform(this.model.id)) === null || _a === void 0 ? void 0 : _a.matrix;
|
|
161217
|
+
if (!mat)
|
|
161218
|
+
return;
|
|
161219
|
+
const epsilon = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance;
|
|
161220
|
+
const sx = mat.getColumn(0).magnitudeSquared();
|
|
161221
|
+
const sy = mat.getColumn(1).magnitudeSquared();
|
|
161222
|
+
if (Math.abs(sx - sy) > epsilon || Math.abs(sx - mat.getColumn(2).magnitudeSquared()) > epsilon)
|
|
161223
|
+
this._forceNoInstancing = true;
|
|
161229
161224
|
}
|
|
161230
161225
|
getAnimationTransformNodeId() {
|
|
161231
161226
|
var _a;
|
|
@@ -161301,8 +161296,10 @@ class PrimaryTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_5__.TileTr
|
|
|
161301
161296
|
return super.computeTransform(tree);
|
|
161302
161297
|
}
|
|
161303
161298
|
computeTransform(tree) {
|
|
161304
|
-
|
|
161305
|
-
|
|
161299
|
+
var _a;
|
|
161300
|
+
const baseTf = this.computeBaseTransform(tree);
|
|
161301
|
+
const displayTf = (_a = this.view.modelDisplayTransformProvider) === null || _a === void 0 ? void 0 : _a.getModelDisplayTransform(this.model.id);
|
|
161302
|
+
return displayTf ? baseTf.multiplyTransformTransform(displayTf, displayTf) : baseTf;
|
|
161306
161303
|
}
|
|
161307
161304
|
}
|
|
161308
161305
|
/** @internal */
|
|
@@ -165033,33 +165030,27 @@ class TileDrawArgs {
|
|
|
165033
165030
|
return this.viewingSpace.worldToViewMap;
|
|
165034
165031
|
}
|
|
165035
165032
|
computePixelSizeScaleFactor() {
|
|
165033
|
+
var _a, _b;
|
|
165036
165034
|
// Check to see if a model display transform with non-uniform scaling is being used.
|
|
165037
|
-
const
|
|
165038
|
-
|
|
165039
|
-
|
|
165040
|
-
scale[1]
|
|
165041
|
-
scale[2] = tf.matrix.getColumn(2).magnitude();
|
|
165035
|
+
const mat = (_b = (_a = this.context.viewport.view.modelDisplayTransformProvider) === null || _a === void 0 ? void 0 : _a.getModelDisplayTransform(this.tree.modelId)) === null || _b === void 0 ? void 0 : _b.matrix;
|
|
165036
|
+
if (!mat)
|
|
165037
|
+
return 1;
|
|
165038
|
+
const scale = [0, 1, 2].map((x) => mat.getColumn(x).magnitude());
|
|
165042
165039
|
if (Math.abs(scale[0] - scale[1]) <= _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance && Math.abs(scale[0] - scale[2]) <= _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance)
|
|
165043
165040
|
return 1;
|
|
165044
165041
|
// If the component with the largest scale is not the same as the component with the largest tile range use it to adjust the pixel size.
|
|
165045
165042
|
const rangeDiag = this.tree.range.diagonal();
|
|
165046
165043
|
let maxS = 0;
|
|
165047
165044
|
let maxR = 0;
|
|
165048
|
-
if (scale[0] > scale[1])
|
|
165045
|
+
if (scale[0] > scale[1])
|
|
165049
165046
|
maxS = (scale[0] > scale[2] ? 0 : 2);
|
|
165050
|
-
|
|
165051
|
-
else {
|
|
165047
|
+
else
|
|
165052
165048
|
maxS = (scale[1] > scale[2] ? 1 : 2);
|
|
165053
|
-
|
|
165054
|
-
if (rangeDiag.x > rangeDiag.y) {
|
|
165049
|
+
if (rangeDiag.x > rangeDiag.y)
|
|
165055
165050
|
maxR = (rangeDiag.x > rangeDiag.z ? 0 : 2);
|
|
165056
|
-
|
|
165057
|
-
else {
|
|
165051
|
+
else
|
|
165058
165052
|
maxR = (rangeDiag.y > rangeDiag.z ? 1 : 2);
|
|
165059
|
-
|
|
165060
|
-
if (maxS !== maxR)
|
|
165061
|
-
return scale[maxS];
|
|
165062
|
-
return 1;
|
|
165053
|
+
return maxS !== maxR ? scale[maxS] : 1;
|
|
165063
165054
|
}
|
|
165064
165055
|
/** A multiplier applied to a [[Tile]]'s `maximumSize` property to adjust level of detail.
|
|
165065
165056
|
* @see [[Viewport.tileSizeModifier]].
|
|
@@ -175329,21 +175320,25 @@ class ViewClipByElementTool extends ViewClipTool {
|
|
|
175329
175320
|
await this.exitTool();
|
|
175330
175321
|
return false;
|
|
175331
175322
|
}
|
|
175332
|
-
async doClipToElements(viewport, ids, alwaysUseRange = false) {
|
|
175323
|
+
async doClipToElements(viewport, ids, alwaysUseRange = false, modelId) {
|
|
175333
175324
|
try {
|
|
175334
175325
|
const placements = await viewport.iModel.elements.getPlacements(ids, { type: viewport.view.is3d() ? "3d" : "2d" });
|
|
175335
175326
|
if (0 === placements.length)
|
|
175336
175327
|
return false;
|
|
175328
|
+
const displayTransform = modelId && 1 === placements.length ? viewport.view.computeDisplayTransform({ modelId, elementId: placements[0].elementId }) : undefined;
|
|
175337
175329
|
const range = new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d();
|
|
175338
175330
|
const transform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createIdentity();
|
|
175339
175331
|
if (!alwaysUseRange && 1 === placements.length) {
|
|
175340
175332
|
const placement = placements[0];
|
|
175341
175333
|
range.setFrom(placement instanceof _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Placement2d ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createRange2d(placement.bbox, 0) : placement.bbox);
|
|
175342
175334
|
transform.setFrom(placement.transform); // Use ElementAlignedBox for single selection...
|
|
175335
|
+
displayTransform === null || displayTransform === void 0 ? void 0 : displayTransform.multiplyTransformTransform(transform, transform);
|
|
175343
175336
|
}
|
|
175344
175337
|
else {
|
|
175345
175338
|
for (const placement of placements)
|
|
175346
175339
|
range.extendRange(placement.calculateRange());
|
|
175340
|
+
if (displayTransform)
|
|
175341
|
+
transform.setFrom(displayTransform);
|
|
175347
175342
|
}
|
|
175348
175343
|
if (range.isNull)
|
|
175349
175344
|
return false;
|
|
@@ -175393,7 +175388,7 @@ class ViewClipByElementTool extends ViewClipTool {
|
|
|
175393
175388
|
const hit = await _IModelApp__WEBPACK_IMPORTED_MODULE_6__.IModelApp.locateManager.doLocate(new _ElementLocateManager__WEBPACK_IMPORTED_MODULE_5__.LocateResponse(), true, ev.point, ev.viewport, ev.inputSource);
|
|
175394
175389
|
if (undefined === hit || !hit.isElementHit)
|
|
175395
175390
|
return _Tool__WEBPACK_IMPORTED_MODULE_10__.EventHandled.No;
|
|
175396
|
-
return await this.doClipToElements(this.targetView, hit.sourceId, this._alwaysUseRange) ? _Tool__WEBPACK_IMPORTED_MODULE_10__.EventHandled.Yes : _Tool__WEBPACK_IMPORTED_MODULE_10__.EventHandled.No;
|
|
175391
|
+
return await this.doClipToElements(this.targetView, hit.sourceId, this._alwaysUseRange, hit.modelId) ? _Tool__WEBPACK_IMPORTED_MODULE_10__.EventHandled.Yes : _Tool__WEBPACK_IMPORTED_MODULE_10__.EventHandled.No;
|
|
175397
175392
|
}
|
|
175398
175393
|
}
|
|
175399
175394
|
ViewClipByElementTool.toolId = "ViewClip.ByElement";
|
|
@@ -177760,33 +177755,28 @@ class MeasureMarker extends _Marker__WEBPACK_IMPORTED_MODULE_7__.Marker {
|
|
|
177760
177755
|
}
|
|
177761
177756
|
/** @internal */
|
|
177762
177757
|
function adjustPoint(ev, segments, locations) {
|
|
177763
|
-
|
|
177764
|
-
|
|
177758
|
+
var _a;
|
|
177759
|
+
// If the point was from a hit we must transform it by the display transform of what got hit.
|
|
177760
|
+
const hit = _IModelApp__WEBPACK_IMPORTED_MODULE_6__.IModelApp.accuSnap.currHit;
|
|
177761
|
+
if (!hit || !ev.viewport || !hit.modelId)
|
|
177765
177762
|
return ev.point;
|
|
177766
|
-
if (
|
|
177767
|
-
|
|
177768
|
-
|
|
177769
|
-
|
|
177770
|
-
|
|
177771
|
-
|
|
177772
|
-
|
|
177773
|
-
|
|
177774
|
-
|
|
177775
|
-
|
|
177776
|
-
|
|
177777
|
-
|
|
177778
|
-
|
|
177779
|
-
|
|
177780
|
-
|
|
177781
|
-
|
|
177782
|
-
|
|
177783
|
-
for (const loc of locations) {
|
|
177784
|
-
if (loc.point.isExactEqual(ev.point))
|
|
177785
|
-
return loc.adjustedPoint.clone();
|
|
177786
|
-
}
|
|
177787
|
-
}
|
|
177788
|
-
}
|
|
177789
|
-
}
|
|
177763
|
+
if ("0" !== hit.modelId) {
|
|
177764
|
+
const transform = ev.viewport.view.computeDisplayTransform({ modelId: hit.modelId, elementId: hit.sourceId });
|
|
177765
|
+
return (_a = transform === null || transform === void 0 ? void 0 : transform.multiplyInversePoint3d(ev.point)) !== null && _a !== void 0 ? _a : ev.point;
|
|
177766
|
+
}
|
|
177767
|
+
// Must have snapped to a decoration, so look through previous any segments & locations for a match to get an adjusted point.
|
|
177768
|
+
if (segments) {
|
|
177769
|
+
for (const seg of segments) {
|
|
177770
|
+
if (seg.start.isExactEqual(ev.point))
|
|
177771
|
+
return seg.adjustedStart.clone();
|
|
177772
|
+
if (seg.end.isExactEqual(ev.point))
|
|
177773
|
+
return seg.adjustedEnd.clone();
|
|
177774
|
+
}
|
|
177775
|
+
}
|
|
177776
|
+
if (locations)
|
|
177777
|
+
for (const loc of locations)
|
|
177778
|
+
if (loc.point.isExactEqual(ev.point))
|
|
177779
|
+
return loc.adjustedPoint.clone();
|
|
177790
177780
|
return ev.point;
|
|
177791
177781
|
}
|
|
177792
177782
|
/** Report distance between 2 points using current quantity formatter for length.
|
|
@@ -287698,7 +287688,7 @@ class TestContext {
|
|
|
287698
287688
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
287699
287689
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
287700
287690
|
await core_frontend_1.NoRenderApp.startup({
|
|
287701
|
-
applicationVersion: "3.4.0-dev.
|
|
287691
|
+
applicationVersion: "3.4.0-dev.36",
|
|
287702
287692
|
applicationId: this.settings.gprid,
|
|
287703
287693
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
287704
287694
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -306216,7 +306206,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
306216
306206
|
/***/ ((module) => {
|
|
306217
306207
|
|
|
306218
306208
|
"use strict";
|
|
306219
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.
|
|
306209
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.36","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.36","@itwin/core-bentley":"workspace:^3.4.0-dev.36","@itwin/core-common":"workspace:^3.4.0-dev.36","@itwin/core-geometry":"workspace:^3.4.0-dev.36","@itwin/core-orbitgt":"workspace:^3.4.0-dev.36","@itwin/core-quantity":"workspace:^3.4.0-dev.36","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.36"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
|
|
306220
306210
|
|
|
306221
306211
|
/***/ }),
|
|
306222
306212
|
|