@itwin/ecschema-rpcinterface-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 +106 -109
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -88897,56 +88897,63 @@ class AccuSnap {
|
|
|
88897
88897
|
return undefined; // Don't make back end request when only doing intersection snap when we don't have another hit to intersect with...
|
|
88898
88898
|
}
|
|
88899
88899
|
}
|
|
88900
|
-
|
|
88901
|
-
|
|
88902
|
-
out
|
|
88903
|
-
|
|
88904
|
-
|
|
88905
|
-
|
|
88906
|
-
const
|
|
88907
|
-
|
|
88908
|
-
|
|
88909
|
-
|
|
88910
|
-
|
|
88911
|
-
|
|
88912
|
-
|
|
88913
|
-
|
|
88914
|
-
|
|
88915
|
-
|
|
88916
|
-
|
|
88917
|
-
|
|
88918
|
-
|
|
88919
|
-
|
|
88920
|
-
|
|
88921
|
-
|
|
88922
|
-
|
|
88923
|
-
|
|
88924
|
-
|
|
88925
|
-
|
|
88926
|
-
|
|
88927
|
-
|
|
88928
|
-
|
|
88929
|
-
|
|
88930
|
-
|
|
88931
|
-
|
|
88932
|
-
|
|
88933
|
-
|
|
88934
|
-
|
|
88935
|
-
|
|
88936
|
-
|
|
88937
|
-
|
|
88938
|
-
|
|
88939
|
-
|
|
88940
|
-
|
|
88941
|
-
|
|
88942
|
-
|
|
88943
|
-
|
|
88944
|
-
|
|
88945
|
-
|
|
88946
|
-
|
|
88900
|
+
try {
|
|
88901
|
+
const result = await thisHit.iModel.requestSnap(requestProps);
|
|
88902
|
+
if (out)
|
|
88903
|
+
out.snapStatus = result.status;
|
|
88904
|
+
if (result.status !== _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__["SnapStatus"].Success)
|
|
88905
|
+
return undefined;
|
|
88906
|
+
const parseCurve = (json) => {
|
|
88907
|
+
const parsed = undefined !== json ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["IModelJson"].Reader.parse(json) : undefined;
|
|
88908
|
+
return parsed instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["GeometryQuery"] && "curvePrimitive" === parsed.geometryCategory ? parsed : undefined;
|
|
88909
|
+
};
|
|
88910
|
+
// If this hit is from a plan projection model, apply the model's elevation to the snap point for display.
|
|
88911
|
+
// Likewise, if it is a hit on a model with a display transform, apply the model's transform to the snap point.
|
|
88912
|
+
let snapPoint = result.snapPoint;
|
|
88913
|
+
const elevation = undefined !== thisHit.modelId ? thisHit.viewport.view.getModelElevation(thisHit.modelId) : 0;
|
|
88914
|
+
if (0 !== elevation || undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
|
|
88915
|
+
const adjustedSnapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point3d"].fromJSON(snapPoint);
|
|
88916
|
+
thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, adjustedSnapPoint, false);
|
|
88917
|
+
adjustedSnapPoint.z += elevation;
|
|
88918
|
+
snapPoint = adjustedSnapPoint;
|
|
88919
|
+
}
|
|
88920
|
+
const snap = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__["SnapDetail"](thisHit, result.snapMode, result.heat, snapPoint);
|
|
88921
|
+
// Apply model's elevation and display transform to curve for display.
|
|
88922
|
+
let transform;
|
|
88923
|
+
if (undefined !== thisHit.modelId && undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
|
|
88924
|
+
transform = thisHit.viewport.view.getModelDisplayTransform(thisHit.modelId, _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Transform"].createIdentity());
|
|
88925
|
+
if (0 !== elevation)
|
|
88926
|
+
transform.origin.set(0, 0, elevation);
|
|
88927
|
+
}
|
|
88928
|
+
else if (0 !== elevation) {
|
|
88929
|
+
transform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Transform"].createTranslationXYZ(0, 0, elevation);
|
|
88930
|
+
}
|
|
88931
|
+
snap.setCurvePrimitive(parseCurve(result.curve), transform, result.geomType);
|
|
88932
|
+
if (undefined !== result.parentGeomType)
|
|
88933
|
+
snap.parentGeomType = result.parentGeomType;
|
|
88934
|
+
if (undefined !== result.hitPoint) {
|
|
88935
|
+
snap.hitPoint.setFromJSON(result.hitPoint); // Update hitPoint from readPixels with exact point location corrected to surface/edge geometry...
|
|
88936
|
+
thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, snap.hitPoint, false);
|
|
88937
|
+
}
|
|
88938
|
+
if (undefined !== result.normal) {
|
|
88939
|
+
snap.normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Vector3d"].fromJSON(result.normal);
|
|
88940
|
+
thisHit.viewport.view.transformNormalByModelDisplayTransform(thisHit.modelId, snap.normal);
|
|
88941
|
+
}
|
|
88942
|
+
if (_HitDetail__WEBPACK_IMPORTED_MODULE_3__["SnapMode"].Intersection !== snap.snapMode)
|
|
88943
|
+
return snap;
|
|
88944
|
+
if (undefined === result.intersectId)
|
|
88945
|
+
return undefined;
|
|
88946
|
+
const otherPrimitive = parseCurve(result.intersectCurve);
|
|
88947
|
+
if (undefined === otherPrimitive)
|
|
88948
|
+
return undefined;
|
|
88949
|
+
const intersect = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__["IntersectDetail"](snap, snap.heat, snap.snapPoint, otherPrimitive, result.intersectId);
|
|
88950
|
+
return intersect;
|
|
88951
|
+
}
|
|
88952
|
+
catch (_err) {
|
|
88953
|
+
if (out)
|
|
88954
|
+
out.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__["SnapStatus"].Aborted;
|
|
88947
88955
|
return undefined;
|
|
88948
|
-
|
|
88949
|
-
return intersect;
|
|
88956
|
+
}
|
|
88950
88957
|
}
|
|
88951
88958
|
async getAccuSnapDetail(hitList, out) {
|
|
88952
88959
|
const thisHit = hitList.getNextHit();
|
|
@@ -111537,11 +111544,12 @@ const extensionExports = {
|
|
|
111537
111544
|
MessageBoxType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxType"],
|
|
111538
111545
|
MessageBoxIconType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxIconType"],
|
|
111539
111546
|
MessageBoxValue: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MessageBoxValue"],
|
|
111547
|
+
SelectionSetEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionSetEventType"],
|
|
111548
|
+
StandardViewId: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["StandardViewId"],
|
|
111549
|
+
ViewStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewStatus"],
|
|
111540
111550
|
GraphicType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GraphicType"],
|
|
111541
111551
|
UniformType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["UniformType"],
|
|
111542
111552
|
VaryingType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["VaryingType"],
|
|
111543
|
-
SelectionSetEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionSetEventType"],
|
|
111544
|
-
StandardViewId: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["StandardViewId"],
|
|
111545
111553
|
TileLoadStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileLoadStatus"],
|
|
111546
111554
|
TileVisibility: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileVisibility"],
|
|
111547
111555
|
TileLoadPriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileLoadPriority"],
|
|
@@ -111564,7 +111572,6 @@ const extensionExports = {
|
|
|
111564
111572
|
ManipulatorToolEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ManipulatorToolEvent"],
|
|
111565
111573
|
ToolAssistanceImage: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolAssistanceImage"],
|
|
111566
111574
|
ToolAssistanceInputMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolAssistanceInputMethod"],
|
|
111567
|
-
ViewStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewStatus"],
|
|
111568
111575
|
AccuDrawHintBuilder: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AccuDrawHintBuilder"],
|
|
111569
111576
|
AccuSnap: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AccuSnap"],
|
|
111570
111577
|
AuxCoordSystemState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["AuxCoordSystemState"],
|
|
@@ -111593,6 +111600,7 @@ const extensionExports = {
|
|
|
111593
111600
|
SnapDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SnapDetail"],
|
|
111594
111601
|
IntersectDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IntersectDetail"],
|
|
111595
111602
|
HitList: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HitList"],
|
|
111603
|
+
IModelConnection: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IModelConnection"],
|
|
111596
111604
|
canvasToResizedCanvasWithBars: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["canvasToResizedCanvasWithBars"],
|
|
111597
111605
|
imageBufferToCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToCanvas"],
|
|
111598
111606
|
canvasToImageBuffer: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["canvasToImageBuffer"],
|
|
@@ -111604,7 +111612,6 @@ const extensionExports = {
|
|
|
111604
111612
|
imageBufferToPngDataUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToPngDataUrl"],
|
|
111605
111613
|
imageBufferToBase64EncodedPng: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["imageBufferToBase64EncodedPng"],
|
|
111606
111614
|
getCompressedJpegFromCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["getCompressedJpegFromCanvas"],
|
|
111607
|
-
IModelConnection: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IModelConnection"],
|
|
111608
111615
|
NotificationHandler: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["NotificationHandler"],
|
|
111609
111616
|
MarginPercent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["MarginPercent"],
|
|
111610
111617
|
Marker: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Marker"],
|
|
@@ -111625,6 +111632,33 @@ const extensionExports = {
|
|
|
111625
111632
|
ActivityMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ActivityMessageDetails"],
|
|
111626
111633
|
NotificationManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["NotificationManager"],
|
|
111627
111634
|
PerModelCategoryVisibility: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["PerModelCategoryVisibility"],
|
|
111635
|
+
HiliteSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HiliteSet"],
|
|
111636
|
+
SelectionSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionSet"],
|
|
111637
|
+
SheetViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SheetViewState"],
|
|
111638
|
+
SpatialViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpatialViewState"],
|
|
111639
|
+
OrthographicViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OrthographicViewState"],
|
|
111640
|
+
Sprite: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Sprite"],
|
|
111641
|
+
IconSprites: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IconSprites"],
|
|
111642
|
+
SpriteLocation: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpriteLocation"],
|
|
111643
|
+
TentativePoint: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TentativePoint"],
|
|
111644
|
+
Tiles: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Tiles"],
|
|
111645
|
+
ViewCreator2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewCreator2d"],
|
|
111646
|
+
ViewCreator3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewCreator3d"],
|
|
111647
|
+
queryTerrainElevationOffset: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["queryTerrainElevationOffset"],
|
|
111648
|
+
ViewManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewManager"],
|
|
111649
|
+
ViewPose: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewPose"],
|
|
111650
|
+
ViewRect: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewRect"],
|
|
111651
|
+
ViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState"],
|
|
111652
|
+
ViewState3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState3d"],
|
|
111653
|
+
ViewState2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState2d"],
|
|
111654
|
+
ViewingSpace: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewingSpace"],
|
|
111655
|
+
connectViewports: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["connectViewports"],
|
|
111656
|
+
synchronizeViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["synchronizeViewportViews"],
|
|
111657
|
+
synchronizeViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["synchronizeViewportFrusta"],
|
|
111658
|
+
connectViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["connectViewportFrusta"],
|
|
111659
|
+
connectViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["connectViewportViews"],
|
|
111660
|
+
TwoWayViewportSync: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TwoWayViewportSync"],
|
|
111661
|
+
TwoWayViewportFrustumSync: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TwoWayViewportFrustumSync"],
|
|
111628
111662
|
Decorations: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Decorations"],
|
|
111629
111663
|
FeatureSymbology: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["FeatureSymbology"],
|
|
111630
111664
|
GraphicBranch: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["GraphicBranch"],
|
|
@@ -111635,18 +111669,8 @@ const extensionExports = {
|
|
|
111635
111669
|
RenderGraphicOwner: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["RenderGraphicOwner"],
|
|
111636
111670
|
RenderSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["RenderSystem"],
|
|
111637
111671
|
Scene: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Scene"],
|
|
111638
|
-
HiliteSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["HiliteSet"],
|
|
111639
|
-
SelectionSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SelectionSet"],
|
|
111640
|
-
SheetViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SheetViewState"],
|
|
111641
|
-
SpatialViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpatialViewState"],
|
|
111642
|
-
OrthographicViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["OrthographicViewState"],
|
|
111643
|
-
Sprite: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Sprite"],
|
|
111644
|
-
IconSprites: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["IconSprites"],
|
|
111645
|
-
SpriteLocation: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["SpriteLocation"],
|
|
111646
|
-
TentativePoint: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TentativePoint"],
|
|
111647
111672
|
DisclosedTileTreeSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["DisclosedTileTreeSet"],
|
|
111648
111673
|
readElementGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["readElementGraphics"],
|
|
111649
|
-
BingElevationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BingElevationProvider"],
|
|
111650
111674
|
Tile: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["Tile"],
|
|
111651
111675
|
TileAdmin: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileAdmin"],
|
|
111652
111676
|
TileDrawArgs: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileDrawArgs"],
|
|
@@ -111657,7 +111681,7 @@ const extensionExports = {
|
|
|
111657
111681
|
TileTree: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileTree"],
|
|
111658
111682
|
TileTreeReference: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileTreeReference"],
|
|
111659
111683
|
TileUsageMarker: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["TileUsageMarker"],
|
|
111660
|
-
|
|
111684
|
+
BingElevationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["BingElevationProvider"],
|
|
111661
111685
|
ViewClipTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipTool"],
|
|
111662
111686
|
ViewClipClearTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipClearTool"],
|
|
111663
111687
|
ViewClipDecorationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewClipDecorationProvider"],
|
|
@@ -111676,16 +111700,6 @@ const extensionExports = {
|
|
|
111676
111700
|
ToolSettings: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ToolSettings"],
|
|
111677
111701
|
ViewTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewTool"],
|
|
111678
111702
|
ViewManip: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewManip"],
|
|
111679
|
-
ViewCreator2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewCreator2d"],
|
|
111680
|
-
ViewCreator3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewCreator3d"],
|
|
111681
|
-
queryTerrainElevationOffset: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["queryTerrainElevationOffset"],
|
|
111682
|
-
ViewingSpace: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewingSpace"],
|
|
111683
|
-
ViewManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewManager"],
|
|
111684
|
-
ViewPose: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewPose"],
|
|
111685
|
-
ViewRect: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewRect"],
|
|
111686
|
-
ViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState"],
|
|
111687
|
-
ViewState3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState3d"],
|
|
111688
|
-
ViewState2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__["ViewState2d"],
|
|
111689
111703
|
BackgroundMapType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BackgroundMapType"],
|
|
111690
111704
|
GlobeMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GlobeMode"],
|
|
111691
111705
|
BriefcaseIdValue: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BriefcaseIdValue"],
|
|
@@ -111707,8 +111721,6 @@ const extensionExports = {
|
|
|
111707
111721
|
FontType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FontType"],
|
|
111708
111722
|
Npc: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["Npc"],
|
|
111709
111723
|
GeoCoordStatus: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeoCoordStatus"],
|
|
111710
|
-
ElementGeometryOpcode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ElementGeometryOpcode"],
|
|
111711
|
-
GeometryStreamFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometryStreamFlags"],
|
|
111712
111724
|
FillDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["FillDisplay"],
|
|
111713
111725
|
BackgroundFill: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["BackgroundFill"],
|
|
111714
111726
|
GeometryClass: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometryClass"],
|
|
@@ -111732,6 +111744,8 @@ const extensionExports = {
|
|
|
111732
111744
|
TxnAction: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["TxnAction"],
|
|
111733
111745
|
GridOrientationType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GridOrientationType"],
|
|
111734
111746
|
RenderMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["RenderMode"],
|
|
111747
|
+
ElementGeometryOpcode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ElementGeometryOpcode"],
|
|
111748
|
+
GeometryStreamFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["GeometryStreamFlags"],
|
|
111735
111749
|
ColorByName: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ColorByName"],
|
|
111736
111750
|
ColorDef: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__["ColorDef"],
|
|
111737
111751
|
};
|
|
@@ -111769,42 +111783,25 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
111769
111783
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
111770
111784
|
*--------------------------------------------------------------------------------------------*/
|
|
111771
111785
|
/**
|
|
111772
|
-
*
|
|
111773
|
-
* First attempts an ES6 dynamic import,
|
|
111774
|
-
* second attempts a dynamic import via a script element as a fallback.
|
|
111786
|
+
* Imports and executes a bundled javascript (esm) module.
|
|
111775
111787
|
* Used by remote and service Extensions.
|
|
111776
|
-
* Throws an error if
|
|
111788
|
+
* Throws an error if no function is found to execute.
|
|
111789
|
+
* Looks for a function in the following order:
|
|
111790
|
+
* - the module itself.
|
|
111791
|
+
* - the module's main export.
|
|
111792
|
+
* - the module's default export.
|
|
111777
111793
|
* @internal
|
|
111778
111794
|
*/
|
|
111779
111795
|
async function loadScript(jsUrl) {
|
|
111780
|
-
// Warning "Critical dependency: the request of a dependency is an expression"
|
|
111781
|
-
// until that is resolved, leave code commented:
|
|
111782
111796
|
// const module = await import(/* webpackIgnore: true */jsUrl);
|
|
111783
|
-
//
|
|
111784
|
-
|
|
111785
|
-
|
|
111786
|
-
|
|
111787
|
-
|
|
111788
|
-
|
|
111789
|
-
|
|
111790
|
-
|
|
111791
|
-
delete window[tempGlobal];
|
|
111792
|
-
scriptElement.remove();
|
|
111793
|
-
}
|
|
111794
|
-
window[tempGlobal] = async function (module) {
|
|
111795
|
-
await execute(module);
|
|
111796
|
-
cleanup();
|
|
111797
|
-
resolve(module);
|
|
111798
|
-
};
|
|
111799
|
-
scriptElement.type = "module";
|
|
111800
|
-
scriptElement.textContent = `import * as m from "${jsUrl}";window.${tempGlobal}(m);`;
|
|
111801
|
-
scriptElement.onerror = () => {
|
|
111802
|
-
reject(new Error(`Failed to load extension with URL ${jsUrl}`));
|
|
111803
|
-
cleanup();
|
|
111804
|
-
};
|
|
111805
|
-
head.insertBefore(scriptElement, head.lastChild);
|
|
111806
|
-
});
|
|
111807
|
-
}
|
|
111797
|
+
// Webpack gives a warning:
|
|
111798
|
+
// "Critical dependency: the request of a dependency is an expression"
|
|
111799
|
+
// Because tsc transpiles "await import" to "require" (when compiled to is CommonJS).
|
|
111800
|
+
// So use FunctionConstructor to avoid tsc.
|
|
111801
|
+
const module = await Function("x", "return import(x)")(jsUrl);
|
|
111802
|
+
return execute(module);
|
|
111803
|
+
}
|
|
111804
|
+
/** attempts to execute an extension module */
|
|
111808
111805
|
function execute(m) {
|
|
111809
111806
|
if (typeof m === "function")
|
|
111810
111807
|
return m();
|
|
@@ -111812,7 +111809,7 @@ function execute(m) {
|
|
|
111812
111809
|
return m.main();
|
|
111813
111810
|
if (m.default && typeof m.default === "function")
|
|
111814
111811
|
return m.default();
|
|
111815
|
-
throw new Error(`Failed to
|
|
111812
|
+
throw new Error(`Failed to execute extension. No default function was found to execute.`);
|
|
111816
111813
|
}
|
|
111817
111814
|
|
|
111818
111815
|
|
|
@@ -178950,7 +178947,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
|
|
|
178950
178947
|
/*! exports provided: name, version, description, main, module, typings, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
|
|
178951
178948
|
/***/ (function(module) {
|
|
178952
178949
|
|
|
178953
|
-
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.2.0-dev.
|
|
178950
|
+
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\"}}]}}");
|
|
178954
178951
|
|
|
178955
178952
|
/***/ }),
|
|
178956
178953
|
|