@itwin/ecschema-rpcinterface-tests 4.10.0-dev.31 → 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 +2 -3
- package/lib/common/SideChannels.js.map +1 -1
- package/lib/dist/_bea9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +102 -56
- 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/package.json +18 -18
|
@@ -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
|
|
|
@@ -23213,7 +23213,7 @@ var Id64;
|
|
|
23213
23213
|
Id64.iterable = iterable;
|
|
23214
23214
|
/** Return the first [[Id64String]] of an [[Id64Arg]]. */
|
|
23215
23215
|
function getFirst(arg) {
|
|
23216
|
-
return typeof arg === "string" ? arg : (Array.isArray(arg) ? arg[0] : arg.values().next().value);
|
|
23216
|
+
return typeof arg === "string" ? arg : (Array.isArray(arg) ? arg[0] : arg.values().next().value) ?? Id64.invalid;
|
|
23217
23217
|
}
|
|
23218
23218
|
Id64.getFirst = getFirst;
|
|
23219
23219
|
/** Return the number of [[Id64String]]s represented by an [[Id64Arg]]. */
|
|
@@ -63913,7 +63913,9 @@ class XmlParser extends _AbstractParser__WEBPACK_IMPORTED_MODULE_4__.AbstractPar
|
|
|
63913
63913
|
return structObj;
|
|
63914
63914
|
}
|
|
63915
63915
|
readPrimitivePropertyValue(propElement, primitiveType) {
|
|
63916
|
-
if (
|
|
63916
|
+
if (undefined === propElement.textContent || null === propElement.textContent)
|
|
63917
|
+
throw new _Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsStatus.InvalidSchemaXML, `Primitive property '${propElement.tagName}' has an invalid property value.`);
|
|
63918
|
+
if (propElement.textContent === "" && primitiveType !== _ECObjects__WEBPACK_IMPORTED_MODULE_1__.PrimitiveType.String)
|
|
63917
63919
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsStatus.InvalidSchemaXML, `Primitive property '${propElement.tagName}' has an invalid property value.`);
|
|
63918
63920
|
// TODO: Mapping all primitive types to string, number and boolean
|
|
63919
63921
|
// for now. Need to review with IModelJs.
|
|
@@ -73328,7 +73330,7 @@ class AccuDraw {
|
|
|
73328
73330
|
applyDistanceRoundOff(distance, vp) {
|
|
73329
73331
|
if (!this._distanceRoundOff.active || !this._distanceRoundOff.units.size)
|
|
73330
73332
|
return undefined;
|
|
73331
|
-
let roundValue = this._distanceRoundOff.units.values().next().value;
|
|
73333
|
+
let roundValue = this._distanceRoundOff.units.values().next().value; // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
73332
73334
|
if (this._distanceRoundOff.units.size > 1) {
|
|
73333
73335
|
// NOTE: Set isn't ordered, find smallest entry...
|
|
73334
73336
|
this._distanceRoundOff.units.forEach((thisRoundValue) => {
|
|
@@ -73352,7 +73354,7 @@ class AccuDraw {
|
|
|
73352
73354
|
applyAngleRoundOff(angle, distance, vp) {
|
|
73353
73355
|
if (!this._angleRoundOff.active || !this._angleRoundOff.units.size)
|
|
73354
73356
|
return undefined;
|
|
73355
|
-
let roundValue = this._angleRoundOff.units.values().next().value;
|
|
73357
|
+
let roundValue = this._angleRoundOff.units.values().next().value; // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
73356
73358
|
if (this._angleRoundOff.units.size > 1) {
|
|
73357
73359
|
// NOTE: Set isn't ordered, find smallest entry...
|
|
73358
73360
|
this._angleRoundOff.units.forEach((thisRoundValue) => {
|
|
@@ -74906,7 +74908,11 @@ class AccuSnap {
|
|
|
74906
74908
|
return realitySnap;
|
|
74907
74909
|
}
|
|
74908
74910
|
}
|
|
74909
|
-
|
|
74911
|
+
let hitVp;
|
|
74912
|
+
if (thisHit.path) {
|
|
74913
|
+
hitVp = thisHit.path.sectionDrawingAttachment?.viewport ?? thisHit.path.viewAttachment?.viewport;
|
|
74914
|
+
}
|
|
74915
|
+
hitVp = hitVp ?? thisHit.viewport;
|
|
74910
74916
|
if (undefined !== thisHit.subCategoryId && !thisHit.isExternalIModelHit) {
|
|
74911
74917
|
const appearance = hitVp.getSubCategoryAppearance(thisHit.subCategoryId);
|
|
74912
74918
|
if (appearance.dontSnap) {
|
|
@@ -74983,7 +74989,8 @@ class AccuSnap {
|
|
|
74983
74989
|
displayTransform = thisHit.viewport.view.computeDisplayTransform({
|
|
74984
74990
|
modelId: thisHit.modelId,
|
|
74985
74991
|
elementId: thisHit.sourceId,
|
|
74986
|
-
viewAttachmentId: thisHit.viewAttachment?.id,
|
|
74992
|
+
viewAttachmentId: thisHit.path?.viewAttachment?.id,
|
|
74993
|
+
inSectionDrawingAttachment: undefined !== thisHit.path?.sectionDrawingAttachment,
|
|
74987
74994
|
});
|
|
74988
74995
|
}
|
|
74989
74996
|
const snapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.fromJSON(result.snapPoint);
|
|
@@ -78685,7 +78692,7 @@ class SectionAttachment {
|
|
|
78685
78692
|
this._branchOptions = {
|
|
78686
78693
|
clipVolume,
|
|
78687
78694
|
hline: view.getDisplayStyle3d().settings.hiddenLineSettings,
|
|
78688
|
-
|
|
78695
|
+
inSectionDrawingAttachment: true,
|
|
78689
78696
|
frustum: {
|
|
78690
78697
|
is3d: true,
|
|
78691
78698
|
scale: { x: 1, y: 1 },
|
|
@@ -78917,15 +78924,16 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
|
|
|
78917
78924
|
return this._attachment ? [this._attachment.viewport] : super.secondaryViewports;
|
|
78918
78925
|
}
|
|
78919
78926
|
/** @internal */
|
|
78920
|
-
getAttachmentViewport(
|
|
78921
|
-
|
|
78927
|
+
getAttachmentViewport(args) {
|
|
78928
|
+
const attach = args.inSectionDrawingAttachment ? this._attachment : undefined;
|
|
78929
|
+
return attach?.viewport;
|
|
78922
78930
|
}
|
|
78923
|
-
/** @
|
|
78931
|
+
/** @beta */
|
|
78924
78932
|
computeDisplayTransform(args) {
|
|
78925
|
-
|
|
78926
|
-
|
|
78927
|
-
|
|
78928
|
-
return
|
|
78933
|
+
// ###TODO we're currently ignoring model and element Id in args, assuming irrelevant for drawings.
|
|
78934
|
+
// Should probably call super or have super call us.
|
|
78935
|
+
const attach = args.inSectionDrawingAttachment ? this._attachment : undefined;
|
|
78936
|
+
return attach?.toDrawing.clone(args.output);
|
|
78929
78937
|
}
|
|
78930
78938
|
}
|
|
78931
78939
|
/** Exposed strictly for testing and debugging. Indicates that when loading the view, the spatial view should be displayed even
|
|
@@ -81591,6 +81599,7 @@ var HitDetailType;
|
|
|
81591
81599
|
HitDetailType[HitDetailType["Snap"] = 2] = "Snap";
|
|
81592
81600
|
HitDetailType[HitDetailType["Intersection"] = 3] = "Intersection";
|
|
81593
81601
|
})(HitDetailType || (HitDetailType = {}));
|
|
81602
|
+
;
|
|
81594
81603
|
/** A HitDetail stores the result when locating geometry displayed in a view.
|
|
81595
81604
|
* It holds an approximate location on an element (or decoration) from a *pick*.
|
|
81596
81605
|
* @public
|
|
@@ -81633,10 +81642,15 @@ class HitDetail {
|
|
|
81633
81642
|
* @alpha
|
|
81634
81643
|
*/
|
|
81635
81644
|
get isClassifier() { return this._props.isClassifier; }
|
|
81636
|
-
/** Information about the
|
|
81645
|
+
/** Information about the [ViewAttachment]($backend) within which the hit geometry resides, if any.
|
|
81646
|
+
* @note Only [[SheetViewState]]s can have view attachments.
|
|
81637
81647
|
* @beta
|
|
81638
81648
|
*/
|
|
81639
|
-
get viewAttachment() { return this._props.viewAttachment; }
|
|
81649
|
+
get viewAttachment() { return this._props.path?.viewAttachment; }
|
|
81650
|
+
/** Describes the path by which the hit was located through a series of attached views.
|
|
81651
|
+
* @beta
|
|
81652
|
+
*/
|
|
81653
|
+
get path() { return this._props.path; }
|
|
81640
81654
|
/** @internal */
|
|
81641
81655
|
constructor(arg0, viewport, hitSource, hitPoint, sourceId, priority, distXY, distFraction, subCategoryId, geometryClass, modelId, sourceIModel, tileId, isClassifier) {
|
|
81642
81656
|
if (arg0 instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d) {
|
|
@@ -81660,6 +81674,8 @@ class HitDetail {
|
|
|
81660
81674
|
};
|
|
81661
81675
|
}
|
|
81662
81676
|
else {
|
|
81677
|
+
// Ignore an empty path.
|
|
81678
|
+
const path = arg0.path?.sectionDrawingAttachment || arg0.path?.viewAttachment ? arg0.path : undefined;
|
|
81663
81679
|
// Tempting to use { ...arg0 } but spread operator omits getters so, e.g., if input is a HitDetail we would lose all the properties.
|
|
81664
81680
|
this._props = {
|
|
81665
81681
|
testPoint: arg0.testPoint,
|
|
@@ -81677,7 +81693,7 @@ class HitDetail {
|
|
|
81677
81693
|
transformFromSourceIModel: arg0.transformFromSourceIModel,
|
|
81678
81694
|
tileId: arg0.tileId,
|
|
81679
81695
|
isClassifier: arg0.isClassifier,
|
|
81680
|
-
|
|
81696
|
+
path,
|
|
81681
81697
|
};
|
|
81682
81698
|
}
|
|
81683
81699
|
}
|
|
@@ -87737,14 +87753,27 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_12__.ViewState2
|
|
|
87737
87753
|
return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d(0, 0, -1, size.x, size.y, 1);
|
|
87738
87754
|
}
|
|
87739
87755
|
/** @internal */
|
|
87740
|
-
getAttachmentViewport(
|
|
87741
|
-
|
|
87756
|
+
getAttachmentViewport(args) {
|
|
87757
|
+
const attachment = args.viewAttachmentId ? this._attachments?.findById(args.viewAttachmentId) : undefined;
|
|
87758
|
+
if (!attachment) {
|
|
87759
|
+
return undefined;
|
|
87760
|
+
}
|
|
87761
|
+
return args.inSectionDrawingAttachment ? attachment.viewport?.view.getAttachmentViewport({ inSectionDrawingAttachment: true }) : attachment.viewport;
|
|
87742
87762
|
}
|
|
87743
|
-
/** @
|
|
87763
|
+
/** @beta */
|
|
87744
87764
|
computeDisplayTransform(args) {
|
|
87745
|
-
// ###TODO
|
|
87765
|
+
// ###TODO we're currently ignoring model and element Id in args, assuming irrelevant for sheets.
|
|
87766
|
+
// Should probably call super or have super call us.
|
|
87746
87767
|
const attachment = undefined !== args.viewAttachmentId ? this._attachments?.findById(args.viewAttachmentId) : undefined;
|
|
87747
|
-
|
|
87768
|
+
if (!attachment || !(attachment instanceof OrthographicAttachment)) {
|
|
87769
|
+
return undefined;
|
|
87770
|
+
}
|
|
87771
|
+
const sheetTransform = attachment.toSheet;
|
|
87772
|
+
const sectionTransform = args.inSectionDrawingAttachment ? attachment.view.computeDisplayTransform(args) : undefined;
|
|
87773
|
+
if (!sectionTransform) {
|
|
87774
|
+
return sheetTransform.clone(args.output);
|
|
87775
|
+
}
|
|
87776
|
+
return sheetTransform.multiplyTransformTransform(sectionTransform, args.output);
|
|
87748
87777
|
}
|
|
87749
87778
|
}
|
|
87750
87779
|
/** A mostly no-op RenderTarget for an Attachment.
|
|
@@ -92242,6 +92271,8 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
92242
92271
|
* - [PlanProjectionSettings.elevation]($common) applied to plan projection models by [DisplayStyle3dSettings.planProjectionSettings]($common);
|
|
92243
92272
|
* - A per-model transform supplied by this view's [[modelDisplayTransformProvider]]; and/or
|
|
92244
92273
|
* - A transform applied to an element by an [RenderSchedule.ElementTimeline]($common) defined by this view's [[scheduleScript]].
|
|
92274
|
+
* - A transform from the coordinate space of a [ViewAttachment]($backend)'s view to that of the [[SheetViewState]] in which it is displayed.
|
|
92275
|
+
* - 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).
|
|
92245
92276
|
* @param args A description of how to compute the transform.
|
|
92246
92277
|
* @returns The computed transform, or `undefined` if no display transform is to be applied.
|
|
92247
92278
|
* @beta
|
|
@@ -92317,12 +92348,10 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
92317
92348
|
get secondaryViewports() {
|
|
92318
92349
|
return [];
|
|
92319
92350
|
}
|
|
92320
|
-
/** Find the viewport that renders the contents of the
|
|
92321
|
-
* For a sheet view, the Id refers to a ViewAttachment.
|
|
92322
|
-
* For a section drawing, it refers to a SpatialViewDefinition.
|
|
92351
|
+
/** Find the viewport that renders the contents of the view attachment with the specified element Id into this view.
|
|
92323
92352
|
* @internal
|
|
92324
92353
|
*/
|
|
92325
|
-
getAttachmentViewport(
|
|
92354
|
+
getAttachmentViewport(_args) {
|
|
92326
92355
|
return undefined;
|
|
92327
92356
|
}
|
|
92328
92357
|
}
|
|
@@ -95963,6 +95992,7 @@ class Viewport {
|
|
|
95963
95992
|
modelId,
|
|
95964
95993
|
elementId: pixel.feature?.elementId,
|
|
95965
95994
|
viewAttachmentId: pixel.viewAttachmentId,
|
|
95995
|
+
inSectionDrawingAttachment: pixel.inSectionDrawingAttachment,
|
|
95966
95996
|
});
|
|
95967
95997
|
transform?.multiplyInversePoint3d(npc, npc);
|
|
95968
95998
|
}
|
|
@@ -109387,6 +109417,7 @@ var Pixel;
|
|
|
109387
109417
|
this.iModel = args?.iModel;
|
|
109388
109418
|
this.tileId = args?.tileId;
|
|
109389
109419
|
this.viewAttachmentId = args?.viewAttachmentId;
|
|
109420
|
+
this.inSectionDrawingAttachment = true === args?.inSectionDrawingAttachment;
|
|
109390
109421
|
this.transformFromIModel = args?.transformFromIModel;
|
|
109391
109422
|
}
|
|
109392
109423
|
/** The Id of the element that produced the pixel. */
|
|
@@ -109420,11 +109451,25 @@ var Pixel;
|
|
|
109420
109451
|
* @param viewport The viewport in which the hit originated.
|
|
109421
109452
|
*/
|
|
109422
109453
|
toHitProps(viewport) {
|
|
109423
|
-
let
|
|
109454
|
+
let path;
|
|
109424
109455
|
if (this.viewAttachmentId) {
|
|
109425
|
-
const attachmentViewport = viewport.view.getAttachmentViewport(this.viewAttachmentId);
|
|
109426
|
-
if (attachmentViewport)
|
|
109427
|
-
|
|
109456
|
+
const attachmentViewport = viewport.view.getAttachmentViewport({ viewAttachmentId: this.viewAttachmentId });
|
|
109457
|
+
if (attachmentViewport) {
|
|
109458
|
+
path = {
|
|
109459
|
+
viewAttachment: {
|
|
109460
|
+
viewport: attachmentViewport,
|
|
109461
|
+
id: this.viewAttachmentId,
|
|
109462
|
+
},
|
|
109463
|
+
};
|
|
109464
|
+
}
|
|
109465
|
+
}
|
|
109466
|
+
if (this.inSectionDrawingAttachment) {
|
|
109467
|
+
const checkVp = path?.viewAttachment?.viewport ?? viewport;
|
|
109468
|
+
const attachVp = checkVp.view.getAttachmentViewport({ inSectionDrawingAttachment: true });
|
|
109469
|
+
if (attachVp) {
|
|
109470
|
+
path = path ?? {};
|
|
109471
|
+
path.sectionDrawingAttachment = { viewport: attachVp };
|
|
109472
|
+
}
|
|
109428
109473
|
}
|
|
109429
109474
|
return {
|
|
109430
109475
|
sourceId: this.elementId ?? _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid,
|
|
@@ -109437,7 +109482,7 @@ var Pixel;
|
|
|
109437
109482
|
isClassifier: this.isClassifier,
|
|
109438
109483
|
sourceIModel: this.iModel,
|
|
109439
109484
|
transformFromSourceIModel: this.transformFromIModel,
|
|
109440
|
-
|
|
109485
|
+
path,
|
|
109441
109486
|
};
|
|
109442
109487
|
}
|
|
109443
109488
|
}
|
|
@@ -112554,6 +112599,7 @@ class BranchState {
|
|
|
112554
112599
|
get secondaryClassifiers() { return this._opts.secondaryClassifiers; }
|
|
112555
112600
|
get realityModelDisplaySettings() { return this._opts.realityModelDisplaySettings; }
|
|
112556
112601
|
get viewAttachmentId() { return this._opts.viewAttachmentId; }
|
|
112602
|
+
get inSectionDrawingAttachment() { return this._opts.inSectionDrawingAttachment; }
|
|
112557
112603
|
get groupNodeId() { return this._opts.groupNodeId; }
|
|
112558
112604
|
get disableClipStyle() { return this._opts.disableClipStyle; }
|
|
112559
112605
|
get symbologyOverrides() {
|
|
@@ -112587,6 +112633,7 @@ class BranchState {
|
|
|
112587
112633
|
appearanceProvider: branch.appearanceProvider ?? (branch.branch.symbologyOverrides ? undefined : prev.appearanceProvider),
|
|
112588
112634
|
realityModelDisplaySettings: branch.branch.realityModelDisplaySettings ?? prev.realityModelDisplaySettings,
|
|
112589
112635
|
viewAttachmentId: branch.viewAttachmentId ?? prev.viewAttachmentId,
|
|
112636
|
+
inSectionDrawingAttachment: branch.inSectionDrawingAttachment ?? prev.inSectionDrawingAttachment,
|
|
112590
112637
|
groupNodeId: branch.branch.groupNodeId ?? prev.groupNodeId,
|
|
112591
112638
|
disableClipStyle: branch.disableClipStyle ?? prev.disableClipStyle,
|
|
112592
112639
|
});
|
|
@@ -117236,17 +117283,20 @@ class Batch extends Graphic {
|
|
|
117236
117283
|
get batchIModel() { return this._context.iModel; }
|
|
117237
117284
|
get transformFromBatchIModel() { return this._context.transformFromIModel; }
|
|
117238
117285
|
get viewAttachmentId() { return this._context.viewAttachmentId; }
|
|
117286
|
+
get inSectionDrawingAttachment() { return this._context.inSectionDrawingAttachment; }
|
|
117239
117287
|
setContext(batchId, branch) {
|
|
117240
117288
|
this._context.batchId = batchId;
|
|
117241
117289
|
this._context.iModel = branch.iModel;
|
|
117242
117290
|
this._context.transformFromIModel = branch.transformFromIModel;
|
|
117243
117291
|
this._context.viewAttachmentId = branch.viewAttachmentId;
|
|
117292
|
+
this._context.inSectionDrawingAttachment = branch.inSectionDrawingAttachment;
|
|
117244
117293
|
}
|
|
117245
117294
|
resetContext() {
|
|
117246
117295
|
this._context.batchId = 0;
|
|
117247
117296
|
this._context.iModel = undefined;
|
|
117248
117297
|
this._context.transformFromIModel = undefined;
|
|
117249
117298
|
this._context.viewAttachmentId = undefined;
|
|
117299
|
+
this._context.inSectionDrawingAttachment = undefined;
|
|
117250
117300
|
}
|
|
117251
117301
|
constructor(graphic, features, range, options) {
|
|
117252
117302
|
super();
|
|
@@ -117313,6 +117363,7 @@ class Branch extends Graphic {
|
|
|
117313
117363
|
this.iModel = opts.iModel;
|
|
117314
117364
|
this.frustum = opts.frustum;
|
|
117315
117365
|
this.viewAttachmentId = opts.viewAttachmentId;
|
|
117366
|
+
this.inSectionDrawingAttachment = opts.inSectionDrawingAttachment;
|
|
117316
117367
|
this.disableClipStyle = opts.disableClipStyle;
|
|
117317
117368
|
this.transformFromExternalIModel = opts.transformFromIModel;
|
|
117318
117369
|
if (opts.hline)
|
|
@@ -123102,6 +123153,7 @@ class PixelBuffer {
|
|
|
123102
123153
|
transformFromIModel: batch.transformFromBatchIModel,
|
|
123103
123154
|
tileId: batch.tileId,
|
|
123104
123155
|
viewAttachmentId: batch.viewAttachmentId,
|
|
123156
|
+
inSectionDrawingAttachment: batch.inSectionDrawingAttachment,
|
|
123105
123157
|
};
|
|
123106
123158
|
}
|
|
123107
123159
|
}
|
|
@@ -123173,13 +123225,14 @@ class PixelBuffer {
|
|
|
123173
123225
|
}
|
|
123174
123226
|
}
|
|
123175
123227
|
}
|
|
123176
|
-
let featureTable, iModel, transformToIModel, tileId, viewAttachmentId;
|
|
123228
|
+
let featureTable, iModel, transformToIModel, tileId, viewAttachmentId, inSectionDrawingAttachment;
|
|
123177
123229
|
if (undefined !== batchInfo) {
|
|
123178
123230
|
featureTable = batchInfo.featureTable;
|
|
123179
123231
|
iModel = batchInfo.iModel;
|
|
123180
123232
|
transformToIModel = batchInfo.transformFromIModel;
|
|
123181
123233
|
tileId = batchInfo.tileId;
|
|
123182
123234
|
viewAttachmentId = batchInfo.viewAttachmentId;
|
|
123235
|
+
inSectionDrawingAttachment = batchInfo.inSectionDrawingAttachment;
|
|
123183
123236
|
}
|
|
123184
123237
|
return new _Pixel__WEBPACK_IMPORTED_MODULE_4__.Pixel.Data({
|
|
123185
123238
|
feature,
|
|
@@ -123191,6 +123244,7 @@ class PixelBuffer {
|
|
|
123191
123244
|
transformFromIModel: transformToIModel,
|
|
123192
123245
|
tileId,
|
|
123193
123246
|
viewAttachmentId,
|
|
123247
|
+
inSectionDrawingAttachment,
|
|
123194
123248
|
});
|
|
123195
123249
|
}
|
|
123196
123250
|
constructor(rect, selector, compositor) {
|
|
@@ -151676,7 +151730,7 @@ class TileRequestChannelStatistics {
|
|
|
151676
151730
|
const val = this[key];
|
|
151677
151731
|
if (typeof val === "number") {
|
|
151678
151732
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof stats[key] === "number");
|
|
151679
|
-
stats[key] += val;
|
|
151733
|
+
stats[key] += val; // eslint-disable-line @typescript-eslint/no-unnecessary-type-assertion
|
|
151680
151734
|
}
|
|
151681
151735
|
}
|
|
151682
151736
|
stats.decoding.total += this.decoding.total;
|
|
@@ -173247,14 +173301,14 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
173247
173301
|
if (undefined === this._pointerLockClickEngagementListener) {
|
|
173248
173302
|
this._pointerLockClickEngagementListener = () => {
|
|
173249
173303
|
if (1 === this.viewTool.nPts && undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.cursorView)
|
|
173250
|
-
vp.canvas.requestPointerLock();
|
|
173304
|
+
void vp.canvas.requestPointerLock();
|
|
173251
173305
|
};
|
|
173252
173306
|
document.addEventListener("click", this._pointerLockClickEngagementListener, false);
|
|
173253
173307
|
}
|
|
173254
173308
|
if (undefined === this._pointerLockKeyEngagementListener) {
|
|
173255
173309
|
this._pointerLockKeyEngagementListener = (ev) => {
|
|
173256
173310
|
if (0 === this.viewTool.nPts && undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.cursorView && this.isNavigationKey(ev))
|
|
173257
|
-
vp.canvas.requestPointerLock();
|
|
173311
|
+
void vp.canvas.requestPointerLock();
|
|
173258
173312
|
};
|
|
173259
173313
|
document.addEventListener("keydown", this._pointerLockKeyEngagementListener, false);
|
|
173260
173314
|
}
|
|
@@ -200886,7 +200940,6 @@ class CurveCurveCloseApproachXY extends _geometry3d_GeometryHandler__WEBPACK_IMP
|
|
|
200886
200940
|
getPointCurveClosestApproachXYNewton(curveP, pointQ) {
|
|
200887
200941
|
if (!(curveP instanceof _Arc3d__WEBPACK_IMPORTED_MODULE_4__.Arc3d) && !(curveP instanceof _LineSegment3d__WEBPACK_IMPORTED_MODULE_5__.LineSegment3d)) {
|
|
200888
200942
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "getPointCurveClosestApproachXYNewton only supports Arc3d and LineSegment");
|
|
200889
|
-
return undefined;
|
|
200890
200943
|
}
|
|
200891
200944
|
const seeds = [0.2, 0.4, 0.6, 0.8]; // HEURISTIC: arcs have up to 4 perpendiculars; lines have only 1
|
|
200892
200945
|
const newtonEvaluator = new _numerics_Newton__WEBPACK_IMPORTED_MODULE_6__.CurvePointCloseApproachXYRtoRD(curveP, pointQ);
|
|
@@ -201161,7 +201214,6 @@ class CurveCurveCloseApproachXY extends _geometry3d_GeometryHandler__WEBPACK_IMP
|
|
|
201161
201214
|
return;
|
|
201162
201215
|
if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_12__.CurveChainWithDistanceIndex) {
|
|
201163
201216
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
|
|
201164
|
-
return;
|
|
201165
201217
|
}
|
|
201166
201218
|
const index0 = this._results.length;
|
|
201167
201219
|
const geomB = this._geometryB; // save
|
|
@@ -202140,7 +202192,6 @@ class CurveCurveIntersectXY extends _geometry3d_GeometryHandler__WEBPACK_IMPORTE
|
|
|
202140
202192
|
return;
|
|
202141
202193
|
if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_15__.CurveChainWithDistanceIndex) {
|
|
202142
202194
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
|
|
202143
|
-
return;
|
|
202144
202195
|
}
|
|
202145
202196
|
const index0 = this._results.length;
|
|
202146
202197
|
const geomB = this._geometryB; // save
|
|
@@ -202987,7 +203038,6 @@ class CurveCurveIntersectXYZ extends _geometry3d_GeometryHandler__WEBPACK_IMPORT
|
|
|
202987
203038
|
return;
|
|
202988
203039
|
if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_11__.CurveChainWithDistanceIndex) {
|
|
202989
203040
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
|
|
202990
|
-
return;
|
|
202991
203041
|
}
|
|
202992
203042
|
const index0 = this._results.length;
|
|
202993
203043
|
const geomB = this._geometryB; // save
|
|
@@ -224277,8 +224327,7 @@ class PolygonOps {
|
|
|
224277
224327
|
const areaOfNormalParallelogram = Math.abs(outwardUnitNormalOfPrevEdge.crossProductXY(outwardUnitNormalOfEdge));
|
|
224278
224328
|
const coord = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.conditionalDivideCoordinate(areaOfNormalParallelogram, projToPrevEdge.x * projToEdge.x, largestResult);
|
|
224279
224329
|
if (undefined === coord) {
|
|
224280
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "unexpectedly small projection distance to an edge");
|
|
224281
|
-
return undefined; // shouldn't happen due to chopping in computeEdgeDataXY: area/(dist*dist) <= 1/tol^2 = largestResult
|
|
224330
|
+
(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
|
|
224282
224331
|
}
|
|
224283
224332
|
coords[i] = coord;
|
|
224284
224333
|
coordSum += coord;
|
|
@@ -224289,7 +224338,6 @@ class PolygonOps {
|
|
|
224289
224338
|
const scale = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.conditionalDivideCoordinate(1.0, coordSum);
|
|
224290
224339
|
if (undefined === scale) {
|
|
224291
224340
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "unexpected zero barycentric coordinate sum");
|
|
224292
|
-
return undefined;
|
|
224293
224341
|
}
|
|
224294
224342
|
for (let i = 0; i < n; ++i)
|
|
224295
224343
|
coords[i] *= scale; // normalized
|
|
@@ -290019,7 +290067,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290019
290067
|
"use strict";
|
|
290020
290068
|
|
|
290021
290069
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
290022
|
-
exports.Settings =
|
|
290070
|
+
exports.Settings = void 0;
|
|
290071
|
+
exports.getRpcInterfaces = getRpcInterfaces;
|
|
290023
290072
|
/*---------------------------------------------------------------------------------------------
|
|
290024
290073
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
290025
290074
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -290033,7 +290082,6 @@ function getRpcInterfaces() {
|
|
|
290033
290082
|
rpcInterfaces.push(ecschema_rpcinterface_common_1.ECSchemaRpcInterface);
|
|
290034
290083
|
return rpcInterfaces;
|
|
290035
290084
|
}
|
|
290036
|
-
exports.getRpcInterfaces = getRpcInterfaces;
|
|
290037
290085
|
class Settings {
|
|
290038
290086
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
290039
290087
|
get Backend() { return this._backend; }
|
|
@@ -290045,7 +290093,7 @@ class Settings {
|
|
|
290045
290093
|
const isFrontend = (typeof (process) === "undefined");
|
|
290046
290094
|
if (!isFrontend && undefined === env.TF_BUILD) {
|
|
290047
290095
|
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
|
|
290048
|
-
const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@
|
|
290096
|
+
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
|
|
290049
290097
|
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
|
|
290050
290098
|
// First check in process.cwd() for the config
|
|
290051
290099
|
let result = dotenv.config();
|
|
@@ -290136,7 +290184,8 @@ exports.Settings = Settings;
|
|
|
290136
290184
|
"use strict";
|
|
290137
290185
|
|
|
290138
290186
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
290139
|
-
exports.
|
|
290187
|
+
exports.exposeBackendCallbacks = exposeBackendCallbacks;
|
|
290188
|
+
exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
|
|
290140
290189
|
/*---------------------------------------------------------------------------------------------
|
|
290141
290190
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
290142
290191
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -290148,11 +290197,9 @@ function exposeBackendCallbacks() {
|
|
|
290148
290197
|
return JSON.stringify(process.env);
|
|
290149
290198
|
});
|
|
290150
290199
|
}
|
|
290151
|
-
exports.exposeBackendCallbacks = exposeBackendCallbacks;
|
|
290152
290200
|
async function getProcessEnvFromBackend() {
|
|
290153
290201
|
return JSON.parse(await (0, CallbackUtils_1.executeBackendCallback)(getEnvCallbackName));
|
|
290154
290202
|
}
|
|
290155
|
-
exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
|
|
290156
290203
|
|
|
290157
290204
|
|
|
290158
290205
|
/***/ }),
|
|
@@ -290332,7 +290379,10 @@ TestContext._instance = undefined;
|
|
|
290332
290379
|
"use strict";
|
|
290333
290380
|
|
|
290334
290381
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
290335
|
-
exports.
|
|
290382
|
+
exports.getCallbacksRegisteredOnBackend = getCallbacksRegisteredOnBackend;
|
|
290383
|
+
exports.executeRegisteredCallback = executeRegisteredCallback;
|
|
290384
|
+
exports.registerBackendCallback = registerBackendCallback;
|
|
290385
|
+
exports.executeBackendCallback = executeBackendCallback;
|
|
290336
290386
|
const isFrontend = (typeof (window) !== "undefined");
|
|
290337
290387
|
/** @internal */
|
|
290338
290388
|
function getCallbacksRegisteredOnBackend() {
|
|
@@ -290341,7 +290391,6 @@ function getCallbacksRegisteredOnBackend() {
|
|
|
290341
290391
|
__webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
|
|
290342
290392
|
return __webpack_require__.g._CertaRegisteredCallbacks;
|
|
290343
290393
|
}
|
|
290344
|
-
exports.getCallbacksRegisteredOnBackend = getCallbacksRegisteredOnBackend;
|
|
290345
290394
|
/** @internal */
|
|
290346
290395
|
function executeRegisteredCallback(name, args) {
|
|
290347
290396
|
const registeredCallbacks = getCallbacksRegisteredOnBackend();
|
|
@@ -290349,20 +290398,17 @@ function executeRegisteredCallback(name, args) {
|
|
|
290349
290398
|
throw new Error(`Unknown certa backend callback "${name}"`);
|
|
290350
290399
|
return registeredCallbacks[name](...args);
|
|
290351
290400
|
}
|
|
290352
|
-
exports.executeRegisteredCallback = executeRegisteredCallback;
|
|
290353
290401
|
function registerBackendCallback(name, cb) {
|
|
290354
290402
|
if (isFrontend)
|
|
290355
290403
|
throw new Error("This should only be called on the backend!");
|
|
290356
290404
|
__webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
|
|
290357
290405
|
__webpack_require__.g._CertaRegisteredCallbacks[name] = cb;
|
|
290358
290406
|
}
|
|
290359
|
-
exports.registerBackendCallback = registerBackendCallback;
|
|
290360
290407
|
async function executeBackendCallback(name, ...args) {
|
|
290361
290408
|
if (!isFrontend)
|
|
290362
290409
|
return executeRegisteredCallback(name, args);
|
|
290363
290410
|
return window._CertaSendToBackend(name, args);
|
|
290364
290411
|
}
|
|
290365
|
-
exports.executeBackendCallback = executeBackendCallback;
|
|
290366
290412
|
|
|
290367
290413
|
|
|
290368
290414
|
/***/ }),
|
|
@@ -304282,7 +304328,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
304282
304328
|
/***/ ((module) => {
|
|
304283
304329
|
|
|
304284
304330
|
"use strict";
|
|
304285
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.
|
|
304331
|
+
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"}}');
|
|
304286
304332
|
|
|
304287
304333
|
/***/ })
|
|
304288
304334
|
|