@itwin/rpcinterface-full-stack-tests 4.1.0-dev.33 → 4.1.0-dev.35
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/_a8a9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +179 -52
- 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/object-storage-azure.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_6_0_node_modules_itwin_obj-0f69b1.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_3_node_modules_loaders_gl_draco_di-28f62e.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3.bundled-tests.js.map +1 -1
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_a8a9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_a8a9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\8\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.3.3\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -75310,8 +75310,9 @@ class AccuSnap {
|
|
|
75310
75310
|
return realitySnap;
|
|
75311
75311
|
}
|
|
75312
75312
|
}
|
|
75313
|
+
const hitVp = thisHit.viewAttachment ? thisHit.viewAttachment.viewport : thisHit.viewport;
|
|
75313
75314
|
if (undefined !== thisHit.subCategoryId && !thisHit.isExternalIModelHit) {
|
|
75314
|
-
const appearance =
|
|
75315
|
+
const appearance = hitVp.getSubCategoryAppearance(thisHit.subCategoryId);
|
|
75315
75316
|
if (appearance.dontSnap) {
|
|
75316
75317
|
if (out) {
|
|
75317
75318
|
out.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.NotSnappable;
|
|
@@ -75324,10 +75325,10 @@ class AccuSnap {
|
|
|
75324
75325
|
id: thisHit.sourceId,
|
|
75325
75326
|
testPoint: thisHit.testPoint,
|
|
75326
75327
|
closePoint: thisHit.hitPoint,
|
|
75327
|
-
worldToView:
|
|
75328
|
-
viewFlags:
|
|
75328
|
+
worldToView: hitVp.worldToViewMap.transform0.toJSON(),
|
|
75329
|
+
viewFlags: hitVp.viewFlags,
|
|
75329
75330
|
snapModes,
|
|
75330
|
-
snapAperture:
|
|
75331
|
+
snapAperture: hitVp.pixelsFromInches(hotDistanceInches),
|
|
75331
75332
|
snapDivisor: keypointDivisor,
|
|
75332
75333
|
subCategoryId: thisHit.subCategoryId,
|
|
75333
75334
|
geometryClass: thisHit.geometryClass,
|
|
@@ -75381,7 +75382,11 @@ class AccuSnap {
|
|
|
75381
75382
|
return parsed instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.GeometryQuery && "curvePrimitive" === parsed.geometryCategory ? parsed : undefined;
|
|
75382
75383
|
};
|
|
75383
75384
|
const snapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.fromJSON(result.snapPoint);
|
|
75384
|
-
const displayTransform = undefined !== thisHit.modelId ? thisHit.viewport.view.computeDisplayTransform({
|
|
75385
|
+
const displayTransform = undefined !== thisHit.modelId ? thisHit.viewport.view.computeDisplayTransform({
|
|
75386
|
+
modelId: thisHit.modelId,
|
|
75387
|
+
elementId: thisHit.sourceId,
|
|
75388
|
+
viewAttachmentId: thisHit.viewAttachment?.id,
|
|
75389
|
+
}) : undefined;
|
|
75385
75390
|
displayTransform?.multiplyPoint3d(snapPoint, snapPoint);
|
|
75386
75391
|
const snap = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__.SnapDetail(thisHit, result.snapMode, result.heat, snapPoint);
|
|
75387
75392
|
snap.setCurvePrimitive(parseCurve(result.curve), displayTransform, result.geomType);
|
|
@@ -78093,7 +78098,8 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
78093
78098
|
/** @internal */
|
|
78094
78099
|
async queryRenderTimelineProps(timelineId) {
|
|
78095
78100
|
try {
|
|
78096
|
-
|
|
78101
|
+
const omitScriptElementIds = !_IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.tileAdmin.enableFrontendScheduleScripts;
|
|
78102
|
+
return await this.iModel.elements.loadProps(timelineId, { renderTimeline: { omitScriptElementIds } });
|
|
78097
78103
|
}
|
|
78098
78104
|
catch (_) {
|
|
78099
78105
|
return undefined;
|
|
@@ -79423,8 +79429,30 @@ class ElementPicker {
|
|
|
79423
79429
|
});
|
|
79424
79430
|
if (!hitPointWorld)
|
|
79425
79431
|
continue;
|
|
79432
|
+
let viewAttachment;
|
|
79433
|
+
if (pixel.viewAttachmentId) {
|
|
79434
|
+
const attachmentViewport = vp.view.getAttachmentViewport(pixel.viewAttachmentId);
|
|
79435
|
+
if (attachmentViewport)
|
|
79436
|
+
viewAttachment = { viewport: attachmentViewport, id: pixel.viewAttachmentId };
|
|
79437
|
+
}
|
|
79426
79438
|
const modelId = pixel.modelId;
|
|
79427
|
-
const hit = new _HitDetail__WEBPACK_IMPORTED_MODULE_2__.HitDetail(
|
|
79439
|
+
const hit = new _HitDetail__WEBPACK_IMPORTED_MODULE_2__.HitDetail({
|
|
79440
|
+
testPoint: pickPointWorld,
|
|
79441
|
+
viewport: vp,
|
|
79442
|
+
hitSource: options.hitSource,
|
|
79443
|
+
hitPoint: hitPointWorld,
|
|
79444
|
+
sourceId: pixel.elementId,
|
|
79445
|
+
priority: this.getPixelPriority(pixel),
|
|
79446
|
+
distXY: testPointView.distance(elmPoint),
|
|
79447
|
+
distFraction: pixel.distanceFraction,
|
|
79448
|
+
subCategoryId: pixel.subCategoryId,
|
|
79449
|
+
geometryClass: pixel.geometryClass,
|
|
79450
|
+
modelId,
|
|
79451
|
+
sourceIModel: pixel.iModel,
|
|
79452
|
+
tileId: pixel.tileId,
|
|
79453
|
+
isClassifier: pixel.isClassifier,
|
|
79454
|
+
viewAttachment,
|
|
79455
|
+
});
|
|
79428
79456
|
this.hitList.addHit(hit);
|
|
79429
79457
|
if (this.hitList.hits.length > options.maxHits)
|
|
79430
79458
|
this.hitList.hits.length = options.maxHits; // truncate array...
|
|
@@ -81800,37 +81828,87 @@ var HitDetailType;
|
|
|
81800
81828
|
* @extensions
|
|
81801
81829
|
*/
|
|
81802
81830
|
class HitDetail {
|
|
81803
|
-
/**
|
|
81804
|
-
|
|
81805
|
-
|
|
81806
|
-
|
|
81807
|
-
|
|
81808
|
-
|
|
81809
|
-
|
|
81810
|
-
|
|
81811
|
-
|
|
81812
|
-
|
|
81813
|
-
|
|
81814
|
-
|
|
81815
|
-
|
|
81816
|
-
|
|
81817
|
-
|
|
81818
|
-
|
|
81819
|
-
|
|
81820
|
-
|
|
81821
|
-
|
|
81822
|
-
|
|
81823
|
-
|
|
81824
|
-
|
|
81825
|
-
|
|
81826
|
-
|
|
81827
|
-
|
|
81828
|
-
|
|
81829
|
-
|
|
81830
|
-
|
|
81831
|
-
|
|
81832
|
-
|
|
81833
|
-
|
|
81831
|
+
/** The point in world coordinates that was used as the initial locate point. */
|
|
81832
|
+
get testPoint() { return this._props.testPoint; }
|
|
81833
|
+
/** The viewport in which the locate operation was performed. */
|
|
81834
|
+
get viewport() { return this._props.viewport; }
|
|
81835
|
+
/** The procedure that requested the locate operation. */
|
|
81836
|
+
get hitSource() { return this._props.hitSource; }
|
|
81837
|
+
/** The approximate location in world coordinates on the geometry identified by this HitDetail. */
|
|
81838
|
+
get hitPoint() { return this._props.hitPoint; }
|
|
81839
|
+
/** The source of the geometry. This may be a persistent element Id, or a transient Id used for, e.g., pickable decorations. */
|
|
81840
|
+
get sourceId() { return this._props.sourceId; }
|
|
81841
|
+
/** The hit geometry priority/classification. */
|
|
81842
|
+
get priority() { return this._props.priority; }
|
|
81843
|
+
/** The xy distance to the hit in view coordinates. */
|
|
81844
|
+
get distXY() { return this._props.distXY; }
|
|
81845
|
+
/** The distance in view coordinates between the hit and the near plane. */
|
|
81846
|
+
get distFraction() { return this._props.distFraction; }
|
|
81847
|
+
/** The [SubCategory]($backend) to which the hit geometry belongs. */
|
|
81848
|
+
get subCategoryId() { return this._props.subCategoryId; }
|
|
81849
|
+
/** The class of the hit geometry. */
|
|
81850
|
+
get geometryClass() { return this._props.geometryClass; }
|
|
81851
|
+
/** The Id of the [[ModelState]] from which the hit originated. */
|
|
81852
|
+
get modelId() { return this._props.modelId; }
|
|
81853
|
+
/** The IModelConnection from which the hit originated.
|
|
81854
|
+
* This should almost always be left undefined, unless the hit is known to have originated from an iModel
|
|
81855
|
+
* other than the one associated with the viewport.
|
|
81856
|
+
* @internal
|
|
81857
|
+
*/
|
|
81858
|
+
get sourceIModel() { return this._props.sourceIModel; }
|
|
81859
|
+
/** @internal chiefly for debugging */
|
|
81860
|
+
get tileId() { return this._props.tileId; }
|
|
81861
|
+
/** True if the hit originated from a reality model classifier.
|
|
81862
|
+
* @alpha
|
|
81863
|
+
*/
|
|
81864
|
+
get isClassifier() { return this._props.isClassifier; }
|
|
81865
|
+
/** Information about the [ViewAttachment]($backend) within which the hit geometry resides, if any.
|
|
81866
|
+
* @note Only [[SheetViewState]]s can have view attachments.
|
|
81867
|
+
* @beta
|
|
81868
|
+
*/
|
|
81869
|
+
get viewAttachment() { return this._props.viewAttachment; }
|
|
81870
|
+
/** @internal */
|
|
81871
|
+
constructor(arg0, viewport, hitSource, hitPoint, sourceId, priority, distXY, distFraction, subCategoryId, geometryClass, modelId, sourceIModel, tileId, isClassifier) {
|
|
81872
|
+
if (arg0 instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d) {
|
|
81873
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== viewport && undefined !== hitSource && undefined !== hitPoint && undefined !== sourceId);
|
|
81874
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== priority && undefined !== distXY && undefined !== distFraction);
|
|
81875
|
+
this._props = {
|
|
81876
|
+
testPoint: arg0,
|
|
81877
|
+
viewport,
|
|
81878
|
+
hitSource,
|
|
81879
|
+
hitPoint,
|
|
81880
|
+
sourceId,
|
|
81881
|
+
priority,
|
|
81882
|
+
distXY,
|
|
81883
|
+
distFraction,
|
|
81884
|
+
subCategoryId,
|
|
81885
|
+
geometryClass,
|
|
81886
|
+
modelId,
|
|
81887
|
+
sourceIModel,
|
|
81888
|
+
tileId,
|
|
81889
|
+
isClassifier,
|
|
81890
|
+
};
|
|
81891
|
+
}
|
|
81892
|
+
else {
|
|
81893
|
+
// Tempting to use { ...arg0 } but spread operator omits getters so, e.g., if input is a HitDetail we would lose all the properties.
|
|
81894
|
+
this._props = {
|
|
81895
|
+
testPoint: arg0.testPoint,
|
|
81896
|
+
viewport: arg0.viewport,
|
|
81897
|
+
hitSource: arg0.hitSource,
|
|
81898
|
+
hitPoint: arg0.hitPoint,
|
|
81899
|
+
sourceId: arg0.sourceId,
|
|
81900
|
+
priority: arg0.priority,
|
|
81901
|
+
distXY: arg0.distXY,
|
|
81902
|
+
distFraction: arg0.distFraction,
|
|
81903
|
+
subCategoryId: arg0.subCategoryId,
|
|
81904
|
+
geometryClass: arg0.geometryClass,
|
|
81905
|
+
modelId: arg0.modelId,
|
|
81906
|
+
sourceIModel: arg0.sourceIModel,
|
|
81907
|
+
tileId: arg0.tileId,
|
|
81908
|
+
isClassifier: arg0.isClassifier,
|
|
81909
|
+
viewAttachment: arg0.viewAttachment,
|
|
81910
|
+
};
|
|
81911
|
+
}
|
|
81834
81912
|
}
|
|
81835
81913
|
/** Get the type of HitDetail.
|
|
81836
81914
|
* @returns HitDetailType.Hit if this is a HitDetail, HitDetailType.Snap if it is a SnapDetail
|
|
@@ -81852,8 +81930,7 @@ class HitDetail {
|
|
|
81852
81930
|
get isMapHit() { return undefined !== this.viewport.mapLayerFromHit(this); }
|
|
81853
81931
|
/** Create a deep copy of this HitDetail */
|
|
81854
81932
|
clone() {
|
|
81855
|
-
|
|
81856
|
-
return val;
|
|
81933
|
+
return new HitDetail(this);
|
|
81857
81934
|
}
|
|
81858
81935
|
/** Draw this HitDetail as a Decoration. Causes the picked element to *flash* */
|
|
81859
81936
|
draw(_context) {
|
|
@@ -81870,11 +81947,15 @@ class HitDetail {
|
|
|
81870
81947
|
* for example, if a [[TiledGraphicsProvider]] is used to display graphics from a different iModel in the viewport.
|
|
81871
81948
|
* This HitDetail's element, subcategory, and model Ids are defined in the context of this IModelConnection.
|
|
81872
81949
|
*/
|
|
81873
|
-
get iModel() {
|
|
81950
|
+
get iModel() {
|
|
81951
|
+
return this.sourceIModel ?? this.viewport.iModel;
|
|
81952
|
+
}
|
|
81874
81953
|
/** Returns true if this hit originated from an [[IModelConnection]] other than the one associated with the [[Viewport]].
|
|
81875
81954
|
* @see [[iModel]].
|
|
81876
81955
|
*/
|
|
81877
|
-
get isExternalIModelHit() {
|
|
81956
|
+
get isExternalIModelHit() {
|
|
81957
|
+
return this.iModel !== this.viewport.iModel;
|
|
81958
|
+
}
|
|
81878
81959
|
}
|
|
81879
81960
|
/** A SnapDetail is generated from the result of a snap request. In addition to the HitDetail about the reason the element was *picked*,
|
|
81880
81961
|
* it holds the *exact* point on the element from the snapping logic, plus additional information that varies with the type of element and snap mode.
|
|
@@ -81889,7 +81970,7 @@ class SnapDetail extends HitDetail {
|
|
|
81889
81970
|
* @param snapPoint The snapped point in the element
|
|
81890
81971
|
*/
|
|
81891
81972
|
constructor(from, snapMode = SnapMode.Nearest, heat = SnapHeat.None, snapPoint) {
|
|
81892
|
-
super(from
|
|
81973
|
+
super(from);
|
|
81893
81974
|
this.snapMode = snapMode;
|
|
81894
81975
|
this.heat = heat;
|
|
81895
81976
|
this.snapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.fromJSON(snapPoint ? snapPoint : from.hitPoint);
|
|
@@ -87556,6 +87637,9 @@ class ViewAttachments {
|
|
|
87556
87637
|
for (const attachment of this._attachments)
|
|
87557
87638
|
attachment.addToScene(context);
|
|
87558
87639
|
}
|
|
87640
|
+
findById(attachmentId) {
|
|
87641
|
+
return this._attachments.find((attachment) => attachment.viewAttachmentProps.id === attachmentId);
|
|
87642
|
+
}
|
|
87559
87643
|
}
|
|
87560
87644
|
/** A view of a [SheetModel]($backend).
|
|
87561
87645
|
* @public
|
|
@@ -87736,6 +87820,16 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_13__.ViewState2
|
|
|
87736
87820
|
return super.computeFitRange();
|
|
87737
87821
|
return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d(0, 0, -1, size.x, size.y, 1);
|
|
87738
87822
|
}
|
|
87823
|
+
/** @internal */
|
|
87824
|
+
getAttachmentViewport(id) {
|
|
87825
|
+
return this._attachments?.findById(id)?.viewport;
|
|
87826
|
+
}
|
|
87827
|
+
/** @internal */
|
|
87828
|
+
computeDisplayTransform(args) {
|
|
87829
|
+
// ###TODO check if the attached view has a display transform...
|
|
87830
|
+
const attachment = undefined !== args.viewAttachmentId ? this._attachments?.findById(args.viewAttachmentId) : undefined;
|
|
87831
|
+
return attachment && attachment instanceof OrthographicAttachment ? attachment.toSheet.clone() : undefined;
|
|
87832
|
+
}
|
|
87739
87833
|
}
|
|
87740
87834
|
/** A mostly no-op RenderTarget for an Attachment.
|
|
87741
87835
|
* its Scene and symbology overrides.
|
|
@@ -87921,6 +88015,7 @@ class OrthographicAttachment {
|
|
|
87921
88015
|
return;
|
|
87922
88016
|
// Extract scene graphics and insert into on-screen scene context.
|
|
87923
88017
|
const options = {
|
|
88018
|
+
viewAttachmentId: this._props.id,
|
|
87924
88019
|
clipVolume: this._clipVolume,
|
|
87925
88020
|
hline: this._hiddenLineSettings,
|
|
87926
88021
|
frustum: {
|
|
@@ -87966,6 +88061,9 @@ class OrthographicAttachment {
|
|
|
87966
88061
|
collectStatistics(_stats) {
|
|
87967
88062
|
// Handled by discloseTileTrees()
|
|
87968
88063
|
}
|
|
88064
|
+
get toSheet() {
|
|
88065
|
+
return this._toSheet;
|
|
88066
|
+
}
|
|
87969
88067
|
}
|
|
87970
88068
|
function createRasterAttachmentViewport(_view, _rect, _attachment) {
|
|
87971
88069
|
class RasterAttachmentViewport extends _Viewport__WEBPACK_IMPORTED_MODULE_12__.OffScreenViewport {
|
|
@@ -89143,7 +89241,16 @@ class TentativePoint {
|
|
|
89143
89241
|
const vp = ev.viewport;
|
|
89144
89242
|
if (vp.isSnapAdjustmentRequired) {
|
|
89145
89243
|
_IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.toolAdmin.adjustPointToACS(point, vp, false);
|
|
89146
|
-
const hit = new _HitDetail__WEBPACK_IMPORTED_MODULE_2__.HitDetail(
|
|
89244
|
+
const hit = new _HitDetail__WEBPACK_IMPORTED_MODULE_2__.HitDetail({
|
|
89245
|
+
testPoint: point,
|
|
89246
|
+
viewport: vp,
|
|
89247
|
+
hitSource: _HitDetail__WEBPACK_IMPORTED_MODULE_2__.HitSource.TentativeSnap,
|
|
89248
|
+
hitPoint: point,
|
|
89249
|
+
sourceId: "",
|
|
89250
|
+
priority: _HitDetail__WEBPACK_IMPORTED_MODULE_2__.HitPriority.Unknown,
|
|
89251
|
+
distXY: 0,
|
|
89252
|
+
distFraction: 0,
|
|
89253
|
+
});
|
|
89147
89254
|
const snap = new _HitDetail__WEBPACK_IMPORTED_MODULE_2__.SnapDetail(hit);
|
|
89148
89255
|
this.setCurrSnap(snap);
|
|
89149
89256
|
_IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.toolAdmin.adjustSnapPoint();
|
|
@@ -92132,6 +92239,12 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
92132
92239
|
get secondaryViewports() {
|
|
92133
92240
|
return [];
|
|
92134
92241
|
}
|
|
92242
|
+
/** Find the viewport that renders the contents of the view attachment with the specified element Id into this view.
|
|
92243
|
+
* @internal
|
|
92244
|
+
*/
|
|
92245
|
+
getAttachmentViewport(_id) {
|
|
92246
|
+
return undefined;
|
|
92247
|
+
}
|
|
92135
92248
|
}
|
|
92136
92249
|
/** Defines the state of a view of 3d models.
|
|
92137
92250
|
* @see [ViewState Parameters]($docs/learning/frontend/views#viewstate-parameters)
|
|
@@ -95706,7 +95819,11 @@ class Viewport {
|
|
|
95706
95819
|
const pixel = pixels.getPixel(x, y);
|
|
95707
95820
|
const modelId = pixel.modelId;
|
|
95708
95821
|
if (undefined !== modelId) {
|
|
95709
|
-
const transform = this.view.computeDisplayTransform({
|
|
95822
|
+
const transform = this.view.computeDisplayTransform({
|
|
95823
|
+
modelId,
|
|
95824
|
+
elementId: pixel.feature?.elementId,
|
|
95825
|
+
viewAttachmentId: pixel.viewAttachmentId,
|
|
95826
|
+
});
|
|
95710
95827
|
transform?.multiplyInversePoint3d(npc, npc);
|
|
95711
95828
|
}
|
|
95712
95829
|
}
|
|
@@ -105269,6 +105386,7 @@ var Pixel;
|
|
|
105269
105386
|
this.planarity = args?.planarity ?? Planarity.Unknown;
|
|
105270
105387
|
this.iModel = args?.iModel;
|
|
105271
105388
|
this.tileId = args?.tileId;
|
|
105389
|
+
this.viewAttachmentId = args?.viewAttachmentId;
|
|
105272
105390
|
}
|
|
105273
105391
|
/** The Id of the element that produced the pixel. */
|
|
105274
105392
|
get elementId() {
|
|
@@ -110847,7 +110965,7 @@ class BatchState {
|
|
|
110847
110965
|
}
|
|
110848
110966
|
getBatchId(batch, allowAdd) {
|
|
110849
110967
|
if (allowAdd && 0 === batch.batchId) {
|
|
110850
|
-
batch.setContext(this.nextBatchId, this._stack.top
|
|
110968
|
+
batch.setContext(this.nextBatchId, this._stack.top);
|
|
110851
110969
|
this._batches.push(batch);
|
|
110852
110970
|
}
|
|
110853
110971
|
return batch.batchId;
|
|
@@ -111154,6 +111272,7 @@ class BranchState {
|
|
|
111154
111272
|
get appearanceProvider() { return this._opts.appearanceProvider; }
|
|
111155
111273
|
get secondaryClassifiers() { return this._opts.secondaryClassifiers; }
|
|
111156
111274
|
get realityModelDisplaySettings() { return this._opts.realityModelDisplaySettings; }
|
|
111275
|
+
get viewAttachmentId() { return this._opts.viewAttachmentId; }
|
|
111157
111276
|
get symbologyOverrides() {
|
|
111158
111277
|
return this._opts.symbologyOverrides;
|
|
111159
111278
|
}
|
|
@@ -111183,6 +111302,7 @@ class BranchState {
|
|
|
111183
111302
|
// The branch can augment the symbology overrides. If it doesn't want to, allow its parent to do so, unless this branch supplies its own symbology overrides.
|
|
111184
111303
|
appearanceProvider: branch.appearanceProvider ?? (branch.branch.symbologyOverrides ? undefined : prev.appearanceProvider),
|
|
111185
111304
|
realityModelDisplaySettings: branch.branch.realityModelDisplaySettings ?? prev.realityModelDisplaySettings,
|
|
111305
|
+
viewAttachmentId: branch.viewAttachmentId ?? prev.viewAttachmentId,
|
|
111186
111306
|
});
|
|
111187
111307
|
}
|
|
111188
111308
|
getFeatureAppearance(overrides, elemLo, elemHi, subcatLo, subcatHi, geomClass, modelLo, modelHi, type, animationNodeId) {
|
|
@@ -115472,15 +115592,19 @@ class Batch extends Graphic {
|
|
|
115472
115592
|
get locateOnly() {
|
|
115473
115593
|
return true === this.options.locateOnly;
|
|
115474
115594
|
}
|
|
115595
|
+
/** The following are valid only during a draw and reset afterward. */
|
|
115475
115596
|
get batchId() { return this._context.batchId; }
|
|
115476
115597
|
get batchIModel() { return this._context.iModel; }
|
|
115477
|
-
|
|
115598
|
+
get viewAttachmentId() { return this._context.viewAttachmentId; }
|
|
115599
|
+
setContext(batchId, branch) {
|
|
115478
115600
|
this._context.batchId = batchId;
|
|
115479
|
-
this._context.iModel = iModel;
|
|
115601
|
+
this._context.iModel = branch.iModel;
|
|
115602
|
+
this._context.viewAttachmentId = branch.viewAttachmentId;
|
|
115480
115603
|
}
|
|
115481
115604
|
resetContext() {
|
|
115482
115605
|
this._context.batchId = 0;
|
|
115483
115606
|
this._context.iModel = undefined;
|
|
115607
|
+
this._context.viewAttachmentId = undefined;
|
|
115484
115608
|
}
|
|
115485
115609
|
constructor(graphic, features, range, options) {
|
|
115486
115610
|
super();
|
|
@@ -115540,6 +115664,7 @@ class Branch extends Graphic {
|
|
|
115540
115664
|
this.clips = opts.clipVolume;
|
|
115541
115665
|
this.iModel = opts.iModel;
|
|
115542
115666
|
this.frustum = opts.frustum;
|
|
115667
|
+
this.viewAttachmentId = opts.viewAttachmentId;
|
|
115543
115668
|
if (opts.hline)
|
|
115544
115669
|
this.edgeSettings = _EdgeSettings__WEBPACK_IMPORTED_MODULE_6__.EdgeSettings.create(opts.hline);
|
|
115545
115670
|
if (opts.classifierOrDrape instanceof _PlanarClassifier__WEBPACK_IMPORTED_MODULE_8__.PlanarClassifier)
|
|
@@ -121143,7 +121268,7 @@ class PixelBuffer {
|
|
|
121143
121268
|
if (undefined !== featureId) {
|
|
121144
121269
|
const batch = this._batchState.find(featureId);
|
|
121145
121270
|
if (undefined !== batch)
|
|
121146
|
-
return { featureTable: batch.featureTable, iModel: batch.batchIModel, tileId: batch.tileId };
|
|
121271
|
+
return { featureTable: batch.featureTable, iModel: batch.batchIModel, tileId: batch.tileId, viewAttachmentId: batch.viewAttachmentId };
|
|
121147
121272
|
}
|
|
121148
121273
|
return undefined;
|
|
121149
121274
|
}
|
|
@@ -121213,11 +121338,12 @@ class PixelBuffer {
|
|
|
121213
121338
|
}
|
|
121214
121339
|
}
|
|
121215
121340
|
}
|
|
121216
|
-
let featureTable, iModel, tileId;
|
|
121341
|
+
let featureTable, iModel, tileId, viewAttachmentId;
|
|
121217
121342
|
if (undefined !== batchInfo) {
|
|
121218
121343
|
featureTable = batchInfo.featureTable;
|
|
121219
121344
|
iModel = batchInfo.iModel;
|
|
121220
121345
|
tileId = batchInfo.tileId;
|
|
121346
|
+
viewAttachmentId = batchInfo.viewAttachmentId;
|
|
121221
121347
|
}
|
|
121222
121348
|
return new _Pixel__WEBPACK_IMPORTED_MODULE_4__.Pixel.Data({
|
|
121223
121349
|
feature,
|
|
@@ -121227,6 +121353,7 @@ class PixelBuffer {
|
|
|
121227
121353
|
batchType: featureTable?.type,
|
|
121228
121354
|
iModel,
|
|
121229
121355
|
tileId,
|
|
121356
|
+
viewAttachmentId,
|
|
121230
121357
|
});
|
|
121231
121358
|
}
|
|
121232
121359
|
constructor(rect, selector, compositor) {
|
|
@@ -277322,7 +277449,7 @@ class TestContext {
|
|
|
277322
277449
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
277323
277450
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
277324
277451
|
await core_frontend_1.NoRenderApp.startup({
|
|
277325
|
-
applicationVersion: "4.1.0-dev.
|
|
277452
|
+
applicationVersion: "4.1.0-dev.35",
|
|
277326
277453
|
applicationId: this.settings.gprid,
|
|
277327
277454
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
277328
277455
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -296696,7 +296823,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
296696
296823
|
/***/ ((module) => {
|
|
296697
296824
|
|
|
296698
296825
|
"use strict";
|
|
296699
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.1.0-dev.
|
|
296826
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.1.0-dev.35","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/**/*,**/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 \\"./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.35","@itwin/core-bentley":"workspace:^4.1.0-dev.35","@itwin/core-common":"workspace:^4.1.0-dev.35","@itwin/core-geometry":"workspace:^4.1.0-dev.35","@itwin/core-orbitgt":"workspace:^4.1.0-dev.35","@itwin/core-quantity":"workspace:^4.1.0-dev.35"},"//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.33","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/sinon":"^9.0.0","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":"^9.0.2","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/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.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","reflect-metadata":"0.1.13"},"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"}}]}}');
|
|
296700
296827
|
|
|
296701
296828
|
/***/ }),
|
|
296702
296829
|
|