@itwin/rpcinterface-full-stack-tests 4.10.0-dev.30 → 4.10.0-dev.32
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/common/Settings.d.ts +0 -1
- package/lib/common/Settings.d.ts.map +1 -1
- package/lib/common/Settings.js +2 -2
- package/lib/common/Settings.js.map +1 -1
- package/lib/common/SideChannels.d.ts +0 -1
- package/lib/common/SideChannels.d.ts.map +1 -1
- package/lib/common/SideChannels.js +3 -4
- package/lib/common/SideChannels.js.map +1 -1
- package/lib/dist/_bea9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +104 -58
- 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_1_6_node_modules_loaders_gl_draco_di-0642a6.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_meshoptimizer_0_20_0_node_modules_meshoptimizer_index_m-a5ae61.bundled-tests.js.map +1 -1
- package/lib/frontend/IModelConnection.test.js.map +1 -1
- package/package.json +15 -15
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
|
|
12
12
|
/***/ }),
|
|
13
13
|
|
|
14
|
-
/***/ "../../common/temp/node_modules/.pnpm/dotenv@
|
|
14
|
+
/***/ "../../common/temp/node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js":
|
|
15
15
|
/*!******************************************************************************************!*\
|
|
16
|
-
!*** ../../common/temp/node_modules/.pnpm/dotenv@
|
|
16
|
+
!*** ../../common/temp/node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js ***!
|
|
17
17
|
\******************************************************************************************/
|
|
18
18
|
/***/ (() => {
|
|
19
19
|
|
|
@@ -29469,7 +29469,7 @@ var Id64;
|
|
|
29469
29469
|
Id64.iterable = iterable;
|
|
29470
29470
|
/** Return the first [[Id64String]] of an [[Id64Arg]]. */
|
|
29471
29471
|
function getFirst(arg) {
|
|
29472
|
-
return typeof arg === "string" ? arg : (Array.isArray(arg) ? arg[0] : arg.values().next().value);
|
|
29472
|
+
return typeof arg === "string" ? arg : (Array.isArray(arg) ? arg[0] : arg.values().next().value) ?? Id64.invalid;
|
|
29473
29473
|
}
|
|
29474
29474
|
Id64.getFirst = getFirst;
|
|
29475
29475
|
/** Return the number of [[Id64String]]s represented by an [[Id64Arg]]. */
|
|
@@ -70169,7 +70169,9 @@ class XmlParser extends _AbstractParser__WEBPACK_IMPORTED_MODULE_4__.AbstractPar
|
|
|
70169
70169
|
return structObj;
|
|
70170
70170
|
}
|
|
70171
70171
|
readPrimitivePropertyValue(propElement, primitiveType) {
|
|
70172
|
-
if (
|
|
70172
|
+
if (undefined === propElement.textContent || null === propElement.textContent)
|
|
70173
|
+
throw new _Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsStatus.InvalidSchemaXML, `Primitive property '${propElement.tagName}' has an invalid property value.`);
|
|
70174
|
+
if (propElement.textContent === "" && primitiveType !== _ECObjects__WEBPACK_IMPORTED_MODULE_1__.PrimitiveType.String)
|
|
70173
70175
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsStatus.InvalidSchemaXML, `Primitive property '${propElement.tagName}' has an invalid property value.`);
|
|
70174
70176
|
// TODO: Mapping all primitive types to string, number and boolean
|
|
70175
70177
|
// for now. Need to review with IModelJs.
|
|
@@ -79412,7 +79414,7 @@ class AccuDraw {
|
|
|
79412
79414
|
applyDistanceRoundOff(distance, vp) {
|
|
79413
79415
|
if (!this._distanceRoundOff.active || !this._distanceRoundOff.units.size)
|
|
79414
79416
|
return undefined;
|
|
79415
|
-
let roundValue = this._distanceRoundOff.units.values().next().value;
|
|
79417
|
+
let roundValue = this._distanceRoundOff.units.values().next().value; // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
79416
79418
|
if (this._distanceRoundOff.units.size > 1) {
|
|
79417
79419
|
// NOTE: Set isn't ordered, find smallest entry...
|
|
79418
79420
|
this._distanceRoundOff.units.forEach((thisRoundValue) => {
|
|
@@ -79436,7 +79438,7 @@ class AccuDraw {
|
|
|
79436
79438
|
applyAngleRoundOff(angle, distance, vp) {
|
|
79437
79439
|
if (!this._angleRoundOff.active || !this._angleRoundOff.units.size)
|
|
79438
79440
|
return undefined;
|
|
79439
|
-
let roundValue = this._angleRoundOff.units.values().next().value;
|
|
79441
|
+
let roundValue = this._angleRoundOff.units.values().next().value; // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
79440
79442
|
if (this._angleRoundOff.units.size > 1) {
|
|
79441
79443
|
// NOTE: Set isn't ordered, find smallest entry...
|
|
79442
79444
|
this._angleRoundOff.units.forEach((thisRoundValue) => {
|
|
@@ -80990,7 +80992,11 @@ class AccuSnap {
|
|
|
80990
80992
|
return realitySnap;
|
|
80991
80993
|
}
|
|
80992
80994
|
}
|
|
80993
|
-
|
|
80995
|
+
let hitVp;
|
|
80996
|
+
if (thisHit.path) {
|
|
80997
|
+
hitVp = thisHit.path.sectionDrawingAttachment?.viewport ?? thisHit.path.viewAttachment?.viewport;
|
|
80998
|
+
}
|
|
80999
|
+
hitVp = hitVp ?? thisHit.viewport;
|
|
80994
81000
|
if (undefined !== thisHit.subCategoryId && !thisHit.isExternalIModelHit) {
|
|
80995
81001
|
const appearance = hitVp.getSubCategoryAppearance(thisHit.subCategoryId);
|
|
80996
81002
|
if (appearance.dontSnap) {
|
|
@@ -81067,7 +81073,8 @@ class AccuSnap {
|
|
|
81067
81073
|
displayTransform = thisHit.viewport.view.computeDisplayTransform({
|
|
81068
81074
|
modelId: thisHit.modelId,
|
|
81069
81075
|
elementId: thisHit.sourceId,
|
|
81070
|
-
viewAttachmentId: thisHit.viewAttachment?.id,
|
|
81076
|
+
viewAttachmentId: thisHit.path?.viewAttachment?.id,
|
|
81077
|
+
inSectionDrawingAttachment: undefined !== thisHit.path?.sectionDrawingAttachment,
|
|
81071
81078
|
});
|
|
81072
81079
|
}
|
|
81073
81080
|
const snapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.fromJSON(result.snapPoint);
|
|
@@ -84769,7 +84776,7 @@ class SectionAttachment {
|
|
|
84769
84776
|
this._branchOptions = {
|
|
84770
84777
|
clipVolume,
|
|
84771
84778
|
hline: view.getDisplayStyle3d().settings.hiddenLineSettings,
|
|
84772
|
-
|
|
84779
|
+
inSectionDrawingAttachment: true,
|
|
84773
84780
|
frustum: {
|
|
84774
84781
|
is3d: true,
|
|
84775
84782
|
scale: { x: 1, y: 1 },
|
|
@@ -85001,15 +85008,16 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
|
|
|
85001
85008
|
return this._attachment ? [this._attachment.viewport] : super.secondaryViewports;
|
|
85002
85009
|
}
|
|
85003
85010
|
/** @internal */
|
|
85004
|
-
getAttachmentViewport(
|
|
85005
|
-
|
|
85011
|
+
getAttachmentViewport(args) {
|
|
85012
|
+
const attach = args.inSectionDrawingAttachment ? this._attachment : undefined;
|
|
85013
|
+
return attach?.viewport;
|
|
85006
85014
|
}
|
|
85007
|
-
/** @
|
|
85015
|
+
/** @beta */
|
|
85008
85016
|
computeDisplayTransform(args) {
|
|
85009
|
-
|
|
85010
|
-
|
|
85011
|
-
|
|
85012
|
-
return
|
|
85017
|
+
// ###TODO we're currently ignoring model and element Id in args, assuming irrelevant for drawings.
|
|
85018
|
+
// Should probably call super or have super call us.
|
|
85019
|
+
const attach = args.inSectionDrawingAttachment ? this._attachment : undefined;
|
|
85020
|
+
return attach?.toDrawing.clone(args.output);
|
|
85013
85021
|
}
|
|
85014
85022
|
}
|
|
85015
85023
|
/** Exposed strictly for testing and debugging. Indicates that when loading the view, the spatial view should be displayed even
|
|
@@ -87675,6 +87683,7 @@ var HitDetailType;
|
|
|
87675
87683
|
HitDetailType[HitDetailType["Snap"] = 2] = "Snap";
|
|
87676
87684
|
HitDetailType[HitDetailType["Intersection"] = 3] = "Intersection";
|
|
87677
87685
|
})(HitDetailType || (HitDetailType = {}));
|
|
87686
|
+
;
|
|
87678
87687
|
/** A HitDetail stores the result when locating geometry displayed in a view.
|
|
87679
87688
|
* It holds an approximate location on an element (or decoration) from a *pick*.
|
|
87680
87689
|
* @public
|
|
@@ -87717,10 +87726,15 @@ class HitDetail {
|
|
|
87717
87726
|
* @alpha
|
|
87718
87727
|
*/
|
|
87719
87728
|
get isClassifier() { return this._props.isClassifier; }
|
|
87720
|
-
/** Information about the
|
|
87729
|
+
/** Information about the [ViewAttachment]($backend) within which the hit geometry resides, if any.
|
|
87730
|
+
* @note Only [[SheetViewState]]s can have view attachments.
|
|
87731
|
+
* @beta
|
|
87732
|
+
*/
|
|
87733
|
+
get viewAttachment() { return this._props.path?.viewAttachment; }
|
|
87734
|
+
/** Describes the path by which the hit was located through a series of attached views.
|
|
87721
87735
|
* @beta
|
|
87722
87736
|
*/
|
|
87723
|
-
get
|
|
87737
|
+
get path() { return this._props.path; }
|
|
87724
87738
|
/** @internal */
|
|
87725
87739
|
constructor(arg0, viewport, hitSource, hitPoint, sourceId, priority, distXY, distFraction, subCategoryId, geometryClass, modelId, sourceIModel, tileId, isClassifier) {
|
|
87726
87740
|
if (arg0 instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d) {
|
|
@@ -87744,6 +87758,8 @@ class HitDetail {
|
|
|
87744
87758
|
};
|
|
87745
87759
|
}
|
|
87746
87760
|
else {
|
|
87761
|
+
// Ignore an empty path.
|
|
87762
|
+
const path = arg0.path?.sectionDrawingAttachment || arg0.path?.viewAttachment ? arg0.path : undefined;
|
|
87747
87763
|
// Tempting to use { ...arg0 } but spread operator omits getters so, e.g., if input is a HitDetail we would lose all the properties.
|
|
87748
87764
|
this._props = {
|
|
87749
87765
|
testPoint: arg0.testPoint,
|
|
@@ -87761,7 +87777,7 @@ class HitDetail {
|
|
|
87761
87777
|
transformFromSourceIModel: arg0.transformFromSourceIModel,
|
|
87762
87778
|
tileId: arg0.tileId,
|
|
87763
87779
|
isClassifier: arg0.isClassifier,
|
|
87764
|
-
|
|
87780
|
+
path,
|
|
87765
87781
|
};
|
|
87766
87782
|
}
|
|
87767
87783
|
}
|
|
@@ -93821,14 +93837,27 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_12__.ViewState2
|
|
|
93821
93837
|
return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d(0, 0, -1, size.x, size.y, 1);
|
|
93822
93838
|
}
|
|
93823
93839
|
/** @internal */
|
|
93824
|
-
getAttachmentViewport(
|
|
93825
|
-
|
|
93840
|
+
getAttachmentViewport(args) {
|
|
93841
|
+
const attachment = args.viewAttachmentId ? this._attachments?.findById(args.viewAttachmentId) : undefined;
|
|
93842
|
+
if (!attachment) {
|
|
93843
|
+
return undefined;
|
|
93844
|
+
}
|
|
93845
|
+
return args.inSectionDrawingAttachment ? attachment.viewport?.view.getAttachmentViewport({ inSectionDrawingAttachment: true }) : attachment.viewport;
|
|
93826
93846
|
}
|
|
93827
|
-
/** @
|
|
93847
|
+
/** @beta */
|
|
93828
93848
|
computeDisplayTransform(args) {
|
|
93829
|
-
// ###TODO
|
|
93849
|
+
// ###TODO we're currently ignoring model and element Id in args, assuming irrelevant for sheets.
|
|
93850
|
+
// Should probably call super or have super call us.
|
|
93830
93851
|
const attachment = undefined !== args.viewAttachmentId ? this._attachments?.findById(args.viewAttachmentId) : undefined;
|
|
93831
|
-
|
|
93852
|
+
if (!attachment || !(attachment instanceof OrthographicAttachment)) {
|
|
93853
|
+
return undefined;
|
|
93854
|
+
}
|
|
93855
|
+
const sheetTransform = attachment.toSheet;
|
|
93856
|
+
const sectionTransform = args.inSectionDrawingAttachment ? attachment.view.computeDisplayTransform(args) : undefined;
|
|
93857
|
+
if (!sectionTransform) {
|
|
93858
|
+
return sheetTransform.clone(args.output);
|
|
93859
|
+
}
|
|
93860
|
+
return sheetTransform.multiplyTransformTransform(sectionTransform, args.output);
|
|
93832
93861
|
}
|
|
93833
93862
|
}
|
|
93834
93863
|
/** A mostly no-op RenderTarget for an Attachment.
|
|
@@ -98326,6 +98355,8 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
98326
98355
|
* - [PlanProjectionSettings.elevation]($common) applied to plan projection models by [DisplayStyle3dSettings.planProjectionSettings]($common);
|
|
98327
98356
|
* - A per-model transform supplied by this view's [[modelDisplayTransformProvider]]; and/or
|
|
98328
98357
|
* - A transform applied to an element by an [RenderSchedule.ElementTimeline]($common) defined by this view's [[scheduleScript]].
|
|
98358
|
+
* - A transform from the coordinate space of a [ViewAttachment]($backend)'s view to that of the [[SheetViewState]] in which it is displayed.
|
|
98359
|
+
* - A transform from the coordinate space of a [[SpatialViewState]] to that of the [[DrawingViewState]] in which it is displayed, where the spatial view is attached via a [SectionDrawing]($backend).
|
|
98329
98360
|
* @param args A description of how to compute the transform.
|
|
98330
98361
|
* @returns The computed transform, or `undefined` if no display transform is to be applied.
|
|
98331
98362
|
* @beta
|
|
@@ -98401,12 +98432,10 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
98401
98432
|
get secondaryViewports() {
|
|
98402
98433
|
return [];
|
|
98403
98434
|
}
|
|
98404
|
-
/** Find the viewport that renders the contents of the
|
|
98405
|
-
* For a sheet view, the Id refers to a ViewAttachment.
|
|
98406
|
-
* For a section drawing, it refers to a SpatialViewDefinition.
|
|
98435
|
+
/** Find the viewport that renders the contents of the view attachment with the specified element Id into this view.
|
|
98407
98436
|
* @internal
|
|
98408
98437
|
*/
|
|
98409
|
-
getAttachmentViewport(
|
|
98438
|
+
getAttachmentViewport(_args) {
|
|
98410
98439
|
return undefined;
|
|
98411
98440
|
}
|
|
98412
98441
|
}
|
|
@@ -102047,6 +102076,7 @@ class Viewport {
|
|
|
102047
102076
|
modelId,
|
|
102048
102077
|
elementId: pixel.feature?.elementId,
|
|
102049
102078
|
viewAttachmentId: pixel.viewAttachmentId,
|
|
102079
|
+
inSectionDrawingAttachment: pixel.inSectionDrawingAttachment,
|
|
102050
102080
|
});
|
|
102051
102081
|
transform?.multiplyInversePoint3d(npc, npc);
|
|
102052
102082
|
}
|
|
@@ -115471,6 +115501,7 @@ var Pixel;
|
|
|
115471
115501
|
this.iModel = args?.iModel;
|
|
115472
115502
|
this.tileId = args?.tileId;
|
|
115473
115503
|
this.viewAttachmentId = args?.viewAttachmentId;
|
|
115504
|
+
this.inSectionDrawingAttachment = true === args?.inSectionDrawingAttachment;
|
|
115474
115505
|
this.transformFromIModel = args?.transformFromIModel;
|
|
115475
115506
|
}
|
|
115476
115507
|
/** The Id of the element that produced the pixel. */
|
|
@@ -115504,11 +115535,25 @@ var Pixel;
|
|
|
115504
115535
|
* @param viewport The viewport in which the hit originated.
|
|
115505
115536
|
*/
|
|
115506
115537
|
toHitProps(viewport) {
|
|
115507
|
-
let
|
|
115538
|
+
let path;
|
|
115508
115539
|
if (this.viewAttachmentId) {
|
|
115509
|
-
const attachmentViewport = viewport.view.getAttachmentViewport(this.viewAttachmentId);
|
|
115510
|
-
if (attachmentViewport)
|
|
115511
|
-
|
|
115540
|
+
const attachmentViewport = viewport.view.getAttachmentViewport({ viewAttachmentId: this.viewAttachmentId });
|
|
115541
|
+
if (attachmentViewport) {
|
|
115542
|
+
path = {
|
|
115543
|
+
viewAttachment: {
|
|
115544
|
+
viewport: attachmentViewport,
|
|
115545
|
+
id: this.viewAttachmentId,
|
|
115546
|
+
},
|
|
115547
|
+
};
|
|
115548
|
+
}
|
|
115549
|
+
}
|
|
115550
|
+
if (this.inSectionDrawingAttachment) {
|
|
115551
|
+
const checkVp = path?.viewAttachment?.viewport ?? viewport;
|
|
115552
|
+
const attachVp = checkVp.view.getAttachmentViewport({ inSectionDrawingAttachment: true });
|
|
115553
|
+
if (attachVp) {
|
|
115554
|
+
path = path ?? {};
|
|
115555
|
+
path.sectionDrawingAttachment = { viewport: attachVp };
|
|
115556
|
+
}
|
|
115512
115557
|
}
|
|
115513
115558
|
return {
|
|
115514
115559
|
sourceId: this.elementId ?? _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid,
|
|
@@ -115521,7 +115566,7 @@ var Pixel;
|
|
|
115521
115566
|
isClassifier: this.isClassifier,
|
|
115522
115567
|
sourceIModel: this.iModel,
|
|
115523
115568
|
transformFromSourceIModel: this.transformFromIModel,
|
|
115524
|
-
|
|
115569
|
+
path,
|
|
115525
115570
|
};
|
|
115526
115571
|
}
|
|
115527
115572
|
}
|
|
@@ -118638,6 +118683,7 @@ class BranchState {
|
|
|
118638
118683
|
get secondaryClassifiers() { return this._opts.secondaryClassifiers; }
|
|
118639
118684
|
get realityModelDisplaySettings() { return this._opts.realityModelDisplaySettings; }
|
|
118640
118685
|
get viewAttachmentId() { return this._opts.viewAttachmentId; }
|
|
118686
|
+
get inSectionDrawingAttachment() { return this._opts.inSectionDrawingAttachment; }
|
|
118641
118687
|
get groupNodeId() { return this._opts.groupNodeId; }
|
|
118642
118688
|
get disableClipStyle() { return this._opts.disableClipStyle; }
|
|
118643
118689
|
get symbologyOverrides() {
|
|
@@ -118671,6 +118717,7 @@ class BranchState {
|
|
|
118671
118717
|
appearanceProvider: branch.appearanceProvider ?? (branch.branch.symbologyOverrides ? undefined : prev.appearanceProvider),
|
|
118672
118718
|
realityModelDisplaySettings: branch.branch.realityModelDisplaySettings ?? prev.realityModelDisplaySettings,
|
|
118673
118719
|
viewAttachmentId: branch.viewAttachmentId ?? prev.viewAttachmentId,
|
|
118720
|
+
inSectionDrawingAttachment: branch.inSectionDrawingAttachment ?? prev.inSectionDrawingAttachment,
|
|
118674
118721
|
groupNodeId: branch.branch.groupNodeId ?? prev.groupNodeId,
|
|
118675
118722
|
disableClipStyle: branch.disableClipStyle ?? prev.disableClipStyle,
|
|
118676
118723
|
});
|
|
@@ -123320,17 +123367,20 @@ class Batch extends Graphic {
|
|
|
123320
123367
|
get batchIModel() { return this._context.iModel; }
|
|
123321
123368
|
get transformFromBatchIModel() { return this._context.transformFromIModel; }
|
|
123322
123369
|
get viewAttachmentId() { return this._context.viewAttachmentId; }
|
|
123370
|
+
get inSectionDrawingAttachment() { return this._context.inSectionDrawingAttachment; }
|
|
123323
123371
|
setContext(batchId, branch) {
|
|
123324
123372
|
this._context.batchId = batchId;
|
|
123325
123373
|
this._context.iModel = branch.iModel;
|
|
123326
123374
|
this._context.transformFromIModel = branch.transformFromIModel;
|
|
123327
123375
|
this._context.viewAttachmentId = branch.viewAttachmentId;
|
|
123376
|
+
this._context.inSectionDrawingAttachment = branch.inSectionDrawingAttachment;
|
|
123328
123377
|
}
|
|
123329
123378
|
resetContext() {
|
|
123330
123379
|
this._context.batchId = 0;
|
|
123331
123380
|
this._context.iModel = undefined;
|
|
123332
123381
|
this._context.transformFromIModel = undefined;
|
|
123333
123382
|
this._context.viewAttachmentId = undefined;
|
|
123383
|
+
this._context.inSectionDrawingAttachment = undefined;
|
|
123334
123384
|
}
|
|
123335
123385
|
constructor(graphic, features, range, options) {
|
|
123336
123386
|
super();
|
|
@@ -123397,6 +123447,7 @@ class Branch extends Graphic {
|
|
|
123397
123447
|
this.iModel = opts.iModel;
|
|
123398
123448
|
this.frustum = opts.frustum;
|
|
123399
123449
|
this.viewAttachmentId = opts.viewAttachmentId;
|
|
123450
|
+
this.inSectionDrawingAttachment = opts.inSectionDrawingAttachment;
|
|
123400
123451
|
this.disableClipStyle = opts.disableClipStyle;
|
|
123401
123452
|
this.transformFromExternalIModel = opts.transformFromIModel;
|
|
123402
123453
|
if (opts.hline)
|
|
@@ -129186,6 +129237,7 @@ class PixelBuffer {
|
|
|
129186
129237
|
transformFromIModel: batch.transformFromBatchIModel,
|
|
129187
129238
|
tileId: batch.tileId,
|
|
129188
129239
|
viewAttachmentId: batch.viewAttachmentId,
|
|
129240
|
+
inSectionDrawingAttachment: batch.inSectionDrawingAttachment,
|
|
129189
129241
|
};
|
|
129190
129242
|
}
|
|
129191
129243
|
}
|
|
@@ -129257,13 +129309,14 @@ class PixelBuffer {
|
|
|
129257
129309
|
}
|
|
129258
129310
|
}
|
|
129259
129311
|
}
|
|
129260
|
-
let featureTable, iModel, transformToIModel, tileId, viewAttachmentId;
|
|
129312
|
+
let featureTable, iModel, transformToIModel, tileId, viewAttachmentId, inSectionDrawingAttachment;
|
|
129261
129313
|
if (undefined !== batchInfo) {
|
|
129262
129314
|
featureTable = batchInfo.featureTable;
|
|
129263
129315
|
iModel = batchInfo.iModel;
|
|
129264
129316
|
transformToIModel = batchInfo.transformFromIModel;
|
|
129265
129317
|
tileId = batchInfo.tileId;
|
|
129266
129318
|
viewAttachmentId = batchInfo.viewAttachmentId;
|
|
129319
|
+
inSectionDrawingAttachment = batchInfo.inSectionDrawingAttachment;
|
|
129267
129320
|
}
|
|
129268
129321
|
return new _Pixel__WEBPACK_IMPORTED_MODULE_4__.Pixel.Data({
|
|
129269
129322
|
feature,
|
|
@@ -129275,6 +129328,7 @@ class PixelBuffer {
|
|
|
129275
129328
|
transformFromIModel: transformToIModel,
|
|
129276
129329
|
tileId,
|
|
129277
129330
|
viewAttachmentId,
|
|
129331
|
+
inSectionDrawingAttachment,
|
|
129278
129332
|
});
|
|
129279
129333
|
}
|
|
129280
129334
|
constructor(rect, selector, compositor) {
|
|
@@ -157760,7 +157814,7 @@ class TileRequestChannelStatistics {
|
|
|
157760
157814
|
const val = this[key];
|
|
157761
157815
|
if (typeof val === "number") {
|
|
157762
157816
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof stats[key] === "number");
|
|
157763
|
-
stats[key] += val;
|
|
157817
|
+
stats[key] += val; // eslint-disable-line @typescript-eslint/no-unnecessary-type-assertion
|
|
157764
157818
|
}
|
|
157765
157819
|
}
|
|
157766
157820
|
stats.decoding.total += this.decoding.total;
|
|
@@ -179331,14 +179385,14 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
179331
179385
|
if (undefined === this._pointerLockClickEngagementListener) {
|
|
179332
179386
|
this._pointerLockClickEngagementListener = () => {
|
|
179333
179387
|
if (1 === this.viewTool.nPts && undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.cursorView)
|
|
179334
|
-
vp.canvas.requestPointerLock();
|
|
179388
|
+
void vp.canvas.requestPointerLock();
|
|
179335
179389
|
};
|
|
179336
179390
|
document.addEventListener("click", this._pointerLockClickEngagementListener, false);
|
|
179337
179391
|
}
|
|
179338
179392
|
if (undefined === this._pointerLockKeyEngagementListener) {
|
|
179339
179393
|
this._pointerLockKeyEngagementListener = (ev) => {
|
|
179340
179394
|
if (0 === this.viewTool.nPts && undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.cursorView && this.isNavigationKey(ev))
|
|
179341
|
-
vp.canvas.requestPointerLock();
|
|
179395
|
+
void vp.canvas.requestPointerLock();
|
|
179342
179396
|
};
|
|
179343
179397
|
document.addEventListener("keydown", this._pointerLockKeyEngagementListener, false);
|
|
179344
179398
|
}
|
|
@@ -206970,7 +207024,6 @@ class CurveCurveCloseApproachXY extends _geometry3d_GeometryHandler__WEBPACK_IMP
|
|
|
206970
207024
|
getPointCurveClosestApproachXYNewton(curveP, pointQ) {
|
|
206971
207025
|
if (!(curveP instanceof _Arc3d__WEBPACK_IMPORTED_MODULE_4__.Arc3d) && !(curveP instanceof _LineSegment3d__WEBPACK_IMPORTED_MODULE_5__.LineSegment3d)) {
|
|
206972
207026
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "getPointCurveClosestApproachXYNewton only supports Arc3d and LineSegment");
|
|
206973
|
-
return undefined;
|
|
206974
207027
|
}
|
|
206975
207028
|
const seeds = [0.2, 0.4, 0.6, 0.8]; // HEURISTIC: arcs have up to 4 perpendiculars; lines have only 1
|
|
206976
207029
|
const newtonEvaluator = new _numerics_Newton__WEBPACK_IMPORTED_MODULE_6__.CurvePointCloseApproachXYRtoRD(curveP, pointQ);
|
|
@@ -207245,7 +207298,6 @@ class CurveCurveCloseApproachXY extends _geometry3d_GeometryHandler__WEBPACK_IMP
|
|
|
207245
207298
|
return;
|
|
207246
207299
|
if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_12__.CurveChainWithDistanceIndex) {
|
|
207247
207300
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
|
|
207248
|
-
return;
|
|
207249
207301
|
}
|
|
207250
207302
|
const index0 = this._results.length;
|
|
207251
207303
|
const geomB = this._geometryB; // save
|
|
@@ -208224,7 +208276,6 @@ class CurveCurveIntersectXY extends _geometry3d_GeometryHandler__WEBPACK_IMPORTE
|
|
|
208224
208276
|
return;
|
|
208225
208277
|
if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_15__.CurveChainWithDistanceIndex) {
|
|
208226
208278
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
|
|
208227
|
-
return;
|
|
208228
208279
|
}
|
|
208229
208280
|
const index0 = this._results.length;
|
|
208230
208281
|
const geomB = this._geometryB; // save
|
|
@@ -209071,7 +209122,6 @@ class CurveCurveIntersectXYZ extends _geometry3d_GeometryHandler__WEBPACK_IMPORT
|
|
|
209071
209122
|
return;
|
|
209072
209123
|
if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_11__.CurveChainWithDistanceIndex) {
|
|
209073
209124
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
|
|
209074
|
-
return;
|
|
209075
209125
|
}
|
|
209076
209126
|
const index0 = this._results.length;
|
|
209077
209127
|
const geomB = this._geometryB; // save
|
|
@@ -230361,8 +230411,7 @@ class PolygonOps {
|
|
|
230361
230411
|
const areaOfNormalParallelogram = Math.abs(outwardUnitNormalOfPrevEdge.crossProductXY(outwardUnitNormalOfEdge));
|
|
230362
230412
|
const coord = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.conditionalDivideCoordinate(areaOfNormalParallelogram, projToPrevEdge.x * projToEdge.x, largestResult);
|
|
230363
230413
|
if (undefined === coord) {
|
|
230364
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "unexpectedly small projection distance to an edge");
|
|
230365
|
-
return undefined; // shouldn't happen due to chopping in computeEdgeDataXY: area/(dist*dist) <= 1/tol^2 = largestResult
|
|
230414
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "unexpectedly small projection distance to an edge"); // shouldn't happen due to chopping in computeEdgeDataXY: area/(dist*dist) <= 1/tol^2 = largestResult
|
|
230366
230415
|
}
|
|
230367
230416
|
coords[i] = coord;
|
|
230368
230417
|
coordSum += coord;
|
|
@@ -230373,7 +230422,6 @@ class PolygonOps {
|
|
|
230373
230422
|
const scale = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.conditionalDivideCoordinate(1.0, coordSum);
|
|
230374
230423
|
if (undefined === scale) {
|
|
230375
230424
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "unexpected zero barycentric coordinate sum");
|
|
230376
|
-
return undefined;
|
|
230377
230425
|
}
|
|
230378
230426
|
for (let i = 0; i < n; ++i)
|
|
230379
230427
|
coords[i] *= scale; // normalized
|
|
@@ -296103,7 +296151,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
296103
296151
|
"use strict";
|
|
296104
296152
|
|
|
296105
296153
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
296106
|
-
exports.Settings =
|
|
296154
|
+
exports.Settings = void 0;
|
|
296155
|
+
exports.getRpcInterfaces = getRpcInterfaces;
|
|
296107
296156
|
const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
296108
296157
|
const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
296109
296158
|
const presentation_common_1 = __webpack_require__(/*! @itwin/presentation-common */ "../../presentation/common/lib/esm/presentation-common.js");
|
|
@@ -296119,7 +296168,6 @@ function getRpcInterfaces(settings) {
|
|
|
296119
296168
|
rpcInterfaces.push(core_common_1.IModelTileRpcInterface);
|
|
296120
296169
|
return rpcInterfaces;
|
|
296121
296170
|
}
|
|
296122
|
-
exports.getRpcInterfaces = getRpcInterfaces;
|
|
296123
296171
|
function checkEnabled(envVariable) {
|
|
296124
296172
|
if (undefined === envVariable)
|
|
296125
296173
|
return false;
|
|
@@ -296145,7 +296193,7 @@ class Settings {
|
|
|
296145
296193
|
const isFrontend = (typeof (process) === "undefined");
|
|
296146
296194
|
if (!isFrontend && undefined === env.TF_BUILD) {
|
|
296147
296195
|
const path = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
296148
|
-
const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@
|
|
296196
|
+
const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
296149
296197
|
const dotenvExpand = __webpack_require__(/*! dotenv-expand */ "../../common/temp/node_modules/.pnpm/dotenv-expand@5.1.0/node_modules/dotenv-expand/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
296150
296198
|
// First check in process.cwd() for the config
|
|
296151
296199
|
let result = dotenv.config();
|
|
@@ -296269,7 +296317,9 @@ exports.Settings = Settings;
|
|
|
296269
296317
|
"use strict";
|
|
296270
296318
|
|
|
296271
296319
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
296272
|
-
exports.
|
|
296320
|
+
exports.exposeBackendCallbacks = exposeBackendCallbacks;
|
|
296321
|
+
exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
|
|
296322
|
+
exports.getClientAccessTokenFromBackend = getClientAccessTokenFromBackend;
|
|
296273
296323
|
const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../tools/certa/lib/utils/CallbackUtils.js");
|
|
296274
296324
|
const getEnvCallbackName = "getEnv";
|
|
296275
296325
|
const getClientAccessTokenCallbackName = "getClientAccessToken";
|
|
@@ -296283,16 +296333,13 @@ function exposeBackendCallbacks() {
|
|
|
296283
296333
|
return "";
|
|
296284
296334
|
});
|
|
296285
296335
|
}
|
|
296286
|
-
exports.exposeBackendCallbacks = exposeBackendCallbacks;
|
|
296287
296336
|
async function getProcessEnvFromBackend() {
|
|
296288
296337
|
return JSON.parse(await (0, CallbackUtils_1.executeBackendCallback)(getEnvCallbackName));
|
|
296289
296338
|
}
|
|
296290
|
-
exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
|
|
296291
296339
|
async function getClientAccessTokenFromBackend() {
|
|
296292
296340
|
// const tokenString = await executeBackendCallback(getClientAccessTokenCallbackName, clientConfiguration);
|
|
296293
296341
|
return "";
|
|
296294
296342
|
}
|
|
296295
|
-
exports.getClientAccessTokenFromBackend = getClientAccessTokenFromBackend;
|
|
296296
296343
|
|
|
296297
296344
|
|
|
296298
296345
|
/***/ }),
|
|
@@ -296456,7 +296503,7 @@ class TestContext {
|
|
|
296456
296503
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
296457
296504
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
296458
296505
|
await core_frontend_1.NoRenderApp.startup({
|
|
296459
|
-
applicationVersion: "4.10.0-dev.
|
|
296506
|
+
applicationVersion: "4.10.0-dev.32",
|
|
296460
296507
|
applicationId: this.settings.gprid,
|
|
296461
296508
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
296462
296509
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -306960,7 +307007,10 @@ function getScopeId(scope) {
|
|
|
306960
307007
|
"use strict";
|
|
306961
307008
|
|
|
306962
307009
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
306963
|
-
exports.
|
|
307010
|
+
exports.getCallbacksRegisteredOnBackend = getCallbacksRegisteredOnBackend;
|
|
307011
|
+
exports.executeRegisteredCallback = executeRegisteredCallback;
|
|
307012
|
+
exports.registerBackendCallback = registerBackendCallback;
|
|
307013
|
+
exports.executeBackendCallback = executeBackendCallback;
|
|
306964
307014
|
const isFrontend = (typeof (window) !== "undefined");
|
|
306965
307015
|
/** @internal */
|
|
306966
307016
|
function getCallbacksRegisteredOnBackend() {
|
|
@@ -306969,7 +307019,6 @@ function getCallbacksRegisteredOnBackend() {
|
|
|
306969
307019
|
__webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
|
|
306970
307020
|
return __webpack_require__.g._CertaRegisteredCallbacks;
|
|
306971
307021
|
}
|
|
306972
|
-
exports.getCallbacksRegisteredOnBackend = getCallbacksRegisteredOnBackend;
|
|
306973
307022
|
/** @internal */
|
|
306974
307023
|
function executeRegisteredCallback(name, args) {
|
|
306975
307024
|
const registeredCallbacks = getCallbacksRegisteredOnBackend();
|
|
@@ -306977,20 +307026,17 @@ function executeRegisteredCallback(name, args) {
|
|
|
306977
307026
|
throw new Error(`Unknown certa backend callback "${name}"`);
|
|
306978
307027
|
return registeredCallbacks[name](...args);
|
|
306979
307028
|
}
|
|
306980
|
-
exports.executeRegisteredCallback = executeRegisteredCallback;
|
|
306981
307029
|
function registerBackendCallback(name, cb) {
|
|
306982
307030
|
if (isFrontend)
|
|
306983
307031
|
throw new Error("This should only be called on the backend!");
|
|
306984
307032
|
__webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
|
|
306985
307033
|
__webpack_require__.g._CertaRegisteredCallbacks[name] = cb;
|
|
306986
307034
|
}
|
|
306987
|
-
exports.registerBackendCallback = registerBackendCallback;
|
|
306988
307035
|
async function executeBackendCallback(name, ...args) {
|
|
306989
307036
|
if (!isFrontend)
|
|
306990
307037
|
return executeRegisteredCallback(name, args);
|
|
306991
307038
|
return window._CertaSendToBackend(name, args);
|
|
306992
307039
|
}
|
|
306993
|
-
exports.executeBackendCallback = executeBackendCallback;
|
|
306994
307040
|
|
|
306995
307041
|
|
|
306996
307042
|
/***/ }),
|
|
@@ -321329,7 +321375,7 @@ function __disposeResources(env) {
|
|
|
321329
321375
|
/***/ ((module) => {
|
|
321330
321376
|
|
|
321331
321377
|
"use strict";
|
|
321332
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.
|
|
321378
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.32","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-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run --coverage","test:debug":"vitest --run","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.10.0-dev.32","@itwin/core-bentley":"workspace:^4.10.0-dev.32","@itwin/core-common":"workspace:^4.10.0-dev.32","@itwin/core-geometry":"workspace:^4.10.0-dev.32","@itwin/core-orbitgt":"workspace:^4.10.0-dev.32","@itwin/core-quantity":"workspace:^4.10.0-dev.32"},"//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/eslint-plugin":"^4.0.2","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.0","@vitest/coverage-v8":"^2.1.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^8.56.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^2.1.0","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","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.2.4","@itwin/object-storage-core":"^2.2.5","@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","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
|
|
321333
321379
|
|
|
321334
321380
|
/***/ }),
|
|
321335
321381
|
|