@itwin/rpcinterface-full-stack-tests 3.2.0-dev.74 → 3.2.0-dev.77
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/bundled-tests.js +107 -110
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -79660,56 +79660,63 @@ class AccuSnap {
|
|
|
79660
79660
|
return undefined; // Don't make back end request when only doing intersection snap when we don't have another hit to intersect with...
|
|
79661
79661
|
}
|
|
79662
79662
|
}
|
|
79663
|
-
|
|
79664
|
-
|
|
79665
|
-
out
|
|
79666
|
-
|
|
79667
|
-
|
|
79668
|
-
|
|
79669
|
-
const
|
|
79670
|
-
|
|
79671
|
-
|
|
79672
|
-
|
|
79673
|
-
|
|
79674
|
-
|
|
79675
|
-
|
|
79676
|
-
|
|
79677
|
-
|
|
79678
|
-
|
|
79679
|
-
|
|
79680
|
-
|
|
79681
|
-
|
|
79682
|
-
|
|
79683
|
-
|
|
79684
|
-
|
|
79685
|
-
|
|
79686
|
-
|
|
79687
|
-
|
|
79688
|
-
|
|
79689
|
-
|
|
79690
|
-
|
|
79691
|
-
|
|
79692
|
-
|
|
79693
|
-
|
|
79694
|
-
|
|
79695
|
-
|
|
79696
|
-
|
|
79697
|
-
|
|
79698
|
-
|
|
79699
|
-
|
|
79700
|
-
|
|
79701
|
-
|
|
79702
|
-
|
|
79703
|
-
|
|
79704
|
-
|
|
79705
|
-
|
|
79706
|
-
|
|
79707
|
-
|
|
79708
|
-
|
|
79709
|
-
|
|
79663
|
+
try {
|
|
79664
|
+
const result = await thisHit.iModel.requestSnap(requestProps);
|
|
79665
|
+
if (out)
|
|
79666
|
+
out.snapStatus = result.status;
|
|
79667
|
+
if (result.status !== _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__["SnapStatus"].Success)
|
|
79668
|
+
return undefined;
|
|
79669
|
+
const parseCurve = (json) => {
|
|
79670
|
+
const parsed = undefined !== json ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["IModelJson"].Reader.parse(json) : undefined;
|
|
79671
|
+
return parsed instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["GeometryQuery"] && "curvePrimitive" === parsed.geometryCategory ? parsed : undefined;
|
|
79672
|
+
};
|
|
79673
|
+
// If this hit is from a plan projection model, apply the model's elevation to the snap point for display.
|
|
79674
|
+
// Likewise, if it is a hit on a model with a display transform, apply the model's transform to the snap point.
|
|
79675
|
+
let snapPoint = result.snapPoint;
|
|
79676
|
+
const elevation = undefined !== thisHit.modelId ? thisHit.viewport.view.getModelElevation(thisHit.modelId) : 0;
|
|
79677
|
+
if (0 !== elevation || undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
|
|
79678
|
+
const adjustedSnapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point3d"].fromJSON(snapPoint);
|
|
79679
|
+
thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, adjustedSnapPoint, false);
|
|
79680
|
+
adjustedSnapPoint.z += elevation;
|
|
79681
|
+
snapPoint = adjustedSnapPoint;
|
|
79682
|
+
}
|
|
79683
|
+
const snap = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__["SnapDetail"](thisHit, result.snapMode, result.heat, snapPoint);
|
|
79684
|
+
// Apply model's elevation and display transform to curve for display.
|
|
79685
|
+
let transform;
|
|
79686
|
+
if (undefined !== thisHit.modelId && undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
|
|
79687
|
+
transform = thisHit.viewport.view.getModelDisplayTransform(thisHit.modelId, _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Transform"].createIdentity());
|
|
79688
|
+
if (0 !== elevation)
|
|
79689
|
+
transform.origin.set(0, 0, elevation);
|
|
79690
|
+
}
|
|
79691
|
+
else if (0 !== elevation) {
|
|
79692
|
+
transform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Transform"].createTranslationXYZ(0, 0, elevation);
|
|
79693
|
+
}
|
|
79694
|
+
snap.setCurvePrimitive(parseCurve(result.curve), transform, result.geomType);
|
|
79695
|
+
if (undefined !== result.parentGeomType)
|
|
79696
|
+
snap.parentGeomType = result.parentGeomType;
|
|
79697
|
+
if (undefined !== result.hitPoint) {
|
|
79698
|
+
snap.hitPoint.setFromJSON(result.hitPoint); // Update hitPoint from readPixels with exact point location corrected to surface/edge geometry...
|
|
79699
|
+
thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, snap.hitPoint, false);
|
|
79700
|
+
}
|
|
79701
|
+
if (undefined !== result.normal) {
|
|
79702
|
+
snap.normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Vector3d"].fromJSON(result.normal);
|
|
79703
|
+
thisHit.viewport.view.transformNormalByModelDisplayTransform(thisHit.modelId, snap.normal);
|
|
79704
|
+
}
|
|
79705
|
+
if (_HitDetail__WEBPACK_IMPORTED_MODULE_3__["SnapMode"].Intersection !== snap.snapMode)
|
|
79706
|
+
return snap;
|
|
79707
|
+
if (undefined === result.intersectId)
|
|
79708
|
+
return undefined;
|
|
79709
|
+
const otherPrimitive = parseCurve(result.intersectCurve);
|
|
79710
|
+
if (undefined === otherPrimitive)
|
|
79711
|
+
return undefined;
|
|
79712
|
+
const intersect = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__["IntersectDetail"](snap, snap.heat, snap.snapPoint, otherPrimitive, result.intersectId);
|
|
79713
|
+
return intersect;
|
|
79714
|
+
}
|
|
79715
|
+
catch (_err) {
|
|
79716
|
+
if (out)
|
|
79717
|
+
out.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__["SnapStatus"].Aborted;
|
|
79710
79718
|
return undefined;
|
|
79711
|
-
|
|
79712
|
-
return intersect;
|
|
79719
|
+
}
|
|
79713
79720
|
}
|
|
79714
79721
|
async getAccuSnapDetail(hitList, out) {
|
|
79715
79722
|
const thisHit = hitList.getNextHit();
|
|
@@ -102300,11 +102307,12 @@ const extensionExports = {
|
|
|
102300
102307
|
MessageBoxType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxType"],
|
|
102301
102308
|
MessageBoxIconType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxIconType"],
|
|
102302
102309
|
MessageBoxValue: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxValue"],
|
|
102310
|
+
SelectionSetEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionSetEventType"],
|
|
102311
|
+
StandardViewId: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["StandardViewId"],
|
|
102312
|
+
ViewStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewStatus"],
|
|
102303
102313
|
GraphicType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GraphicType"],
|
|
102304
102314
|
UniformType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["UniformType"],
|
|
102305
102315
|
VaryingType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["VaryingType"],
|
|
102306
|
-
SelectionSetEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionSetEventType"],
|
|
102307
|
-
StandardViewId: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["StandardViewId"],
|
|
102308
102316
|
TileLoadStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileLoadStatus"],
|
|
102309
102317
|
TileVisibility: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileVisibility"],
|
|
102310
102318
|
TileLoadPriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileLoadPriority"],
|
|
@@ -102327,7 +102335,6 @@ const extensionExports = {
|
|
|
102327
102335
|
ManipulatorToolEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ManipulatorToolEvent"],
|
|
102328
102336
|
ToolAssistanceImage: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolAssistanceImage"],
|
|
102329
102337
|
ToolAssistanceInputMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolAssistanceInputMethod"],
|
|
102330
|
-
ViewStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewStatus"],
|
|
102331
102338
|
AccuDrawHintBuilder: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AccuDrawHintBuilder"],
|
|
102332
102339
|
AccuSnap: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AccuSnap"],
|
|
102333
102340
|
AuxCoordSystemState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AuxCoordSystemState"],
|
|
@@ -102356,6 +102363,7 @@ const extensionExports = {
|
|
|
102356
102363
|
SnapDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SnapDetail"],
|
|
102357
102364
|
IntersectDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IntersectDetail"],
|
|
102358
102365
|
HitList: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitList"],
|
|
102366
|
+
IModelConnection: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IModelConnection"],
|
|
102359
102367
|
canvasToResizedCanvasWithBars: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["canvasToResizedCanvasWithBars"],
|
|
102360
102368
|
imageBufferToCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToCanvas"],
|
|
102361
102369
|
canvasToImageBuffer: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["canvasToImageBuffer"],
|
|
@@ -102367,7 +102375,6 @@ const extensionExports = {
|
|
|
102367
102375
|
imageBufferToPngDataUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToPngDataUrl"],
|
|
102368
102376
|
imageBufferToBase64EncodedPng: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToBase64EncodedPng"],
|
|
102369
102377
|
getCompressedJpegFromCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["getCompressedJpegFromCanvas"],
|
|
102370
|
-
IModelConnection: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IModelConnection"],
|
|
102371
102378
|
NotificationHandler: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["NotificationHandler"],
|
|
102372
102379
|
MarginPercent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MarginPercent"],
|
|
102373
102380
|
Marker: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Marker"],
|
|
@@ -102388,6 +102395,33 @@ const extensionExports = {
|
|
|
102388
102395
|
ActivityMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ActivityMessageDetails"],
|
|
102389
102396
|
NotificationManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["NotificationManager"],
|
|
102390
102397
|
PerModelCategoryVisibility: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["PerModelCategoryVisibility"],
|
|
102398
|
+
HiliteSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HiliteSet"],
|
|
102399
|
+
SelectionSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionSet"],
|
|
102400
|
+
SheetViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SheetViewState"],
|
|
102401
|
+
SpatialViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpatialViewState"],
|
|
102402
|
+
OrthographicViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OrthographicViewState"],
|
|
102403
|
+
Sprite: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Sprite"],
|
|
102404
|
+
IconSprites: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IconSprites"],
|
|
102405
|
+
SpriteLocation: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpriteLocation"],
|
|
102406
|
+
TentativePoint: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TentativePoint"],
|
|
102407
|
+
Tiles: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Tiles"],
|
|
102408
|
+
ViewCreator2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewCreator2d"],
|
|
102409
|
+
ViewCreator3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewCreator3d"],
|
|
102410
|
+
queryTerrainElevationOffset: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["queryTerrainElevationOffset"],
|
|
102411
|
+
ViewManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewManager"],
|
|
102412
|
+
ViewPose: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewPose"],
|
|
102413
|
+
ViewRect: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewRect"],
|
|
102414
|
+
ViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState"],
|
|
102415
|
+
ViewState3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState3d"],
|
|
102416
|
+
ViewState2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState2d"],
|
|
102417
|
+
ViewingSpace: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewingSpace"],
|
|
102418
|
+
connectViewports: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["connectViewports"],
|
|
102419
|
+
synchronizeViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["synchronizeViewportViews"],
|
|
102420
|
+
synchronizeViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["synchronizeViewportFrusta"],
|
|
102421
|
+
connectViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["connectViewportFrusta"],
|
|
102422
|
+
connectViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["connectViewportViews"],
|
|
102423
|
+
TwoWayViewportSync: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TwoWayViewportSync"],
|
|
102424
|
+
TwoWayViewportFrustumSync: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TwoWayViewportFrustumSync"],
|
|
102391
102425
|
Decorations: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Decorations"],
|
|
102392
102426
|
FeatureSymbology: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["FeatureSymbology"],
|
|
102393
102427
|
GraphicBranch: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GraphicBranch"],
|
|
@@ -102398,18 +102432,8 @@ const extensionExports = {
|
|
|
102398
102432
|
RenderGraphicOwner: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["RenderGraphicOwner"],
|
|
102399
102433
|
RenderSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["RenderSystem"],
|
|
102400
102434
|
Scene: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Scene"],
|
|
102401
|
-
HiliteSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HiliteSet"],
|
|
102402
|
-
SelectionSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionSet"],
|
|
102403
|
-
SheetViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SheetViewState"],
|
|
102404
|
-
SpatialViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpatialViewState"],
|
|
102405
|
-
OrthographicViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OrthographicViewState"],
|
|
102406
|
-
Sprite: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Sprite"],
|
|
102407
|
-
IconSprites: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IconSprites"],
|
|
102408
|
-
SpriteLocation: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpriteLocation"],
|
|
102409
|
-
TentativePoint: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TentativePoint"],
|
|
102410
102435
|
DisclosedTileTreeSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["DisclosedTileTreeSet"],
|
|
102411
102436
|
readElementGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["readElementGraphics"],
|
|
102412
|
-
BingElevationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BingElevationProvider"],
|
|
102413
102437
|
Tile: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Tile"],
|
|
102414
102438
|
TileAdmin: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileAdmin"],
|
|
102415
102439
|
TileDrawArgs: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileDrawArgs"],
|
|
@@ -102420,7 +102444,7 @@ const extensionExports = {
|
|
|
102420
102444
|
TileTree: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileTree"],
|
|
102421
102445
|
TileTreeReference: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileTreeReference"],
|
|
102422
102446
|
TileUsageMarker: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileUsageMarker"],
|
|
102423
|
-
|
|
102447
|
+
BingElevationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BingElevationProvider"],
|
|
102424
102448
|
ViewClipTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipTool"],
|
|
102425
102449
|
ViewClipClearTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipClearTool"],
|
|
102426
102450
|
ViewClipDecorationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipDecorationProvider"],
|
|
@@ -102439,16 +102463,6 @@ const extensionExports = {
|
|
|
102439
102463
|
ToolSettings: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolSettings"],
|
|
102440
102464
|
ViewTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewTool"],
|
|
102441
102465
|
ViewManip: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewManip"],
|
|
102442
|
-
ViewCreator2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewCreator2d"],
|
|
102443
|
-
ViewCreator3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewCreator3d"],
|
|
102444
|
-
queryTerrainElevationOffset: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["queryTerrainElevationOffset"],
|
|
102445
|
-
ViewingSpace: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewingSpace"],
|
|
102446
|
-
ViewManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewManager"],
|
|
102447
|
-
ViewPose: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewPose"],
|
|
102448
|
-
ViewRect: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewRect"],
|
|
102449
|
-
ViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState"],
|
|
102450
|
-
ViewState3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState3d"],
|
|
102451
|
-
ViewState2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState2d"],
|
|
102452
102466
|
BackgroundMapType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BackgroundMapType"],
|
|
102453
102467
|
GlobeMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GlobeMode"],
|
|
102454
102468
|
BriefcaseIdValue: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BriefcaseIdValue"],
|
|
@@ -102470,8 +102484,6 @@ const extensionExports = {
|
|
|
102470
102484
|
FontType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FontType"],
|
|
102471
102485
|
Npc: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["Npc"],
|
|
102472
102486
|
GeoCoordStatus: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeoCoordStatus"],
|
|
102473
|
-
ElementGeometryOpcode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ElementGeometryOpcode"],
|
|
102474
|
-
GeometryStreamFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometryStreamFlags"],
|
|
102475
102487
|
FillDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FillDisplay"],
|
|
102476
102488
|
BackgroundFill: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BackgroundFill"],
|
|
102477
102489
|
GeometryClass: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometryClass"],
|
|
@@ -102495,6 +102507,8 @@ const extensionExports = {
|
|
|
102495
102507
|
TxnAction: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["TxnAction"],
|
|
102496
102508
|
GridOrientationType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GridOrientationType"],
|
|
102497
102509
|
RenderMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["RenderMode"],
|
|
102510
|
+
ElementGeometryOpcode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ElementGeometryOpcode"],
|
|
102511
|
+
GeometryStreamFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometryStreamFlags"],
|
|
102498
102512
|
ColorByName: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ColorByName"],
|
|
102499
102513
|
ColorDef: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ColorDef"],
|
|
102500
102514
|
};
|
|
@@ -102532,42 +102546,25 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
102532
102546
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
102533
102547
|
*--------------------------------------------------------------------------------------------*/
|
|
102534
102548
|
/**
|
|
102535
|
-
*
|
|
102536
|
-
* First attempts an ES6 dynamic import,
|
|
102537
|
-
* second attempts a dynamic import via a script element as a fallback.
|
|
102549
|
+
* Imports and executes a bundled javascript (esm) module.
|
|
102538
102550
|
* Used by remote and service Extensions.
|
|
102539
|
-
* Throws an error if
|
|
102551
|
+
* Throws an error if no function is found to execute.
|
|
102552
|
+
* Looks for a function in the following order:
|
|
102553
|
+
* - the module itself.
|
|
102554
|
+
* - the module's main export.
|
|
102555
|
+
* - the module's default export.
|
|
102540
102556
|
* @internal
|
|
102541
102557
|
*/
|
|
102542
102558
|
async function loadScript(jsUrl) {
|
|
102543
|
-
// Warning "Critical dependency: the request of a dependency is an expression"
|
|
102544
|
-
// until that is resolved, leave code commented:
|
|
102545
102559
|
// const module = await import(/* webpackIgnore: true */jsUrl);
|
|
102546
|
-
//
|
|
102547
|
-
|
|
102548
|
-
|
|
102549
|
-
|
|
102550
|
-
|
|
102551
|
-
|
|
102552
|
-
|
|
102553
|
-
|
|
102554
|
-
delete window[tempGlobal];
|
|
102555
|
-
scriptElement.remove();
|
|
102556
|
-
}
|
|
102557
|
-
window[tempGlobal] = async function (module) {
|
|
102558
|
-
await execute(module);
|
|
102559
|
-
cleanup();
|
|
102560
|
-
resolve(module);
|
|
102561
|
-
};
|
|
102562
|
-
scriptElement.type = "module";
|
|
102563
|
-
scriptElement.textContent = `import * as m from "${jsUrl}";window.${tempGlobal}(m);`;
|
|
102564
|
-
scriptElement.onerror = () => {
|
|
102565
|
-
reject(new Error(`Failed to load extension with URL ${jsUrl}`));
|
|
102566
|
-
cleanup();
|
|
102567
|
-
};
|
|
102568
|
-
head.insertBefore(scriptElement, head.lastChild);
|
|
102569
|
-
});
|
|
102570
|
-
}
|
|
102560
|
+
// Webpack gives a warning:
|
|
102561
|
+
// "Critical dependency: the request of a dependency is an expression"
|
|
102562
|
+
// Because tsc transpiles "await import" to "require" (when compiled to is CommonJS).
|
|
102563
|
+
// So use FunctionConstructor to avoid tsc.
|
|
102564
|
+
const module = await Function("x", "return import(x)")(jsUrl);
|
|
102565
|
+
return execute(module);
|
|
102566
|
+
}
|
|
102567
|
+
/** attempts to execute an extension module */
|
|
102571
102568
|
function execute(m) {
|
|
102572
102569
|
if (typeof m === "function")
|
|
102573
102570
|
return m();
|
|
@@ -102575,7 +102572,7 @@ function execute(m) {
|
|
|
102575
102572
|
return m.main();
|
|
102576
102573
|
if (m.default && typeof m.default === "function")
|
|
102577
102574
|
return m.default();
|
|
102578
|
-
throw new Error(`Failed to
|
|
102575
|
+
throw new Error(`Failed to execute extension. No default function was found to execute.`);
|
|
102579
102576
|
}
|
|
102580
102577
|
|
|
102581
102578
|
|
|
@@ -169713,7 +169710,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
|
|
|
169713
169710
|
/*! exports provided: name, version, description, main, module, typings, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
|
|
169714
169711
|
/***/ (function(module) {
|
|
169715
169712
|
|
|
169716
|
-
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.2.0-dev.
|
|
169713
|
+
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.2.0-dev.77\",\"description\":\"iTwin.js frontend components\",\"main\":\"lib/cjs/core-frontend.js\",\"module\":\"lib/esm/core-frontend.js\",\"typings\":\"lib/cjs/core-frontend\",\"license\":\"MIT\",\"scripts\":{\"build\":\"npm run -s copy:public && npm run -s build:cjs\",\"build:ci\":\"npm run -s build && npm run -s build:esm\",\"build:cjs\":\"tsc 1>&2 --outDir lib/cjs\",\"build:esm\":\"tsc 1>&2 --module ES2020 --outDir lib/esm\",\"clean\":\"rimraf lib .rush/temp/package-deps*.json\",\"copy:public\":\"cpx \\\"./src/public/**/*\\\" ./lib/public\",\"docs\":\"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts\",\"extract-api\":\"betools extract-api --entry=core-frontend && npm run extract-extension-api\",\"extract-extension-api\":\"eslint --no-eslintrc -c \\\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\\" \\\"./src/**/*.ts\\\" 1>&2\",\"lint\":\"eslint -f visualstudio \\\"./src/**/*.ts\\\" 1>&2\",\"pseudolocalize\":\"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO\",\"test\":\"npm run -s webpackTests && certa -r chrome\",\"cover\":\"npm -s test\",\"test:debug\":\"certa -r chrome --debug\",\"webpackTests\":\"webpack --config ./src/test/utils/webpack.config.js 1>&2\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend\"},\"keywords\":[\"Bentley\",\"BIM\",\"iModel\",\"digital-twin\",\"iTwin\"],\"author\":{\"name\":\"Bentley Systems, Inc.\",\"url\":\"http://www.bentley.com\"},\"peerDependencies\":{\"@itwin/appui-abstract\":\"workspace:^3.2.0-dev.77\",\"@itwin/core-bentley\":\"workspace:^3.2.0-dev.77\",\"@itwin/core-common\":\"workspace:^3.2.0-dev.77\",\"@itwin/core-geometry\":\"workspace:^3.2.0-dev.77\",\"@itwin/core-orbitgt\":\"workspace:^3.2.0-dev.77\",\"@itwin/core-quantity\":\"workspace:^3.2.0-dev.77\",\"@itwin/webgl-compatibility\":\"workspace:^3.2.0-dev.77\"},\"//devDependencies\":[\"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install\",\"NOTE: All tools used by scripts in this package must be listed as devDependencies\"],\"devDependencies\":{\"@itwin/appui-abstract\":\"workspace:*\",\"@itwin/build-tools\":\"workspace:*\",\"@itwin/core-bentley\":\"workspace:*\",\"@itwin/core-common\":\"workspace:*\",\"@itwin/core-geometry\":\"workspace:*\",\"@itwin/core-orbitgt\":\"workspace:*\",\"@itwin/core-quantity\":\"workspace:*\",\"@itwin/certa\":\"workspace:*\",\"@itwin/eslint-plugin\":\"workspace:*\",\"@itwin/webgl-compatibility\":\"workspace:*\",\"@types/chai\":\"^4.1.4\",\"@types/chai-as-promised\":\"^7\",\"@types/deep-assign\":\"^0.1.0\",\"@types/lodash\":\"^4.14.0\",\"@types/mocha\":\"^8.2.2\",\"@types/node\":\"16.11.7\",\"@types/qs\":\"^6.5.0\",\"@types/semver\":\"^5.5.0\",\"@types/superagent\":\"^4.1.14\",\"@types/sinon\":\"^9.0.0\",\"chai\":\"^4.1.2\",\"chai-as-promised\":\"^7\",\"cpx2\":\"^3.0.0\",\"eslint\":\"^7.11.0\",\"glob\":\"^7.1.2\",\"mocha\":\"^8.3.2\",\"nyc\":\"^15.1.0\",\"rimraf\":\"^3.0.2\",\"sinon\":\"^9.0.2\",\"source-map-loader\":\"^1.0.0\",\"typescript\":\"~4.4.0\",\"webpack\":\"4.42.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/core-i18n\":\"workspace:*\",\"@itwin/core-telemetry\":\"workspace:*\",\"@loaders.gl/core\":\"^3.1.6\",\"@loaders.gl/draco\":\"^3.1.6\",\"deep-assign\":\"^2.0.0\",\"fuse.js\":\"^3.3.0\",\"lodash\":\"^4.17.10\",\"qs\":\"^6.5.1\",\"semver\":\"^5.5.0\",\"superagent\":\"^7.0.1\",\"wms-capabilities\":\"0.4.0\",\"xml-js\":\"~1.6.11\"},\"nyc\":{\"extends\":\"./node_modules/@itwin/build-tools/.nycrc\"},\"eslintConfig\":{\"plugins\":[\"@itwin\"],\"extends\":\"plugin:@itwin/itwinjs-recommended\",\"rules\":{\"@itwin/no-internal-barrel-imports\":[\"error\",{\"required-barrel-modules\":[\"./src/tile/internal.ts\"]}],\"@itwin/public-extension-exports\":[\"error\",{\"releaseTags\":[\"public\",\"preview\"],\"outputApiFile\":false}]},\"overrides\":[{\"files\":[\"*.test.ts\",\"*.test.tsx\",\"**/test/**/*.ts\"],\"rules\":{\"@itwin/no-internal-barrel-imports\":\"off\"}}]}}");
|
|
169717
169714
|
|
|
169718
169715
|
/***/ }),
|
|
169719
169716
|
|
|
@@ -283163,7 +283160,7 @@ class TestContext {
|
|
|
283163
283160
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
283164
283161
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
283165
283162
|
await core_frontend_1.NoRenderApp.startup({
|
|
283166
|
-
applicationVersion: "3.2.0-dev.
|
|
283163
|
+
applicationVersion: "3.2.0-dev.77",
|
|
283167
283164
|
applicationId: this.settings.gprid,
|
|
283168
283165
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
283169
283166
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|