@itwin/core-frontend 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/cjs/AccuSnap.d.ts.map +1 -1
- package/lib/cjs/AccuSnap.js +56 -49
- package/lib/cjs/AccuSnap.js.map +1 -1
- package/lib/cjs/extension/ExtensionRuntime.js +34 -27
- package/lib/cjs/extension/ExtensionRuntime.js.map +1 -1
- package/lib/cjs/extension/providers/ExtensionLoadScript.d.ts +6 -4
- package/lib/cjs/extension/providers/ExtensionLoadScript.d.ts.map +1 -1
- package/lib/cjs/extension/providers/ExtensionLoadScript.js +16 -33
- package/lib/cjs/extension/providers/ExtensionLoadScript.js.map +1 -1
- package/lib/esm/AccuSnap.d.ts.map +1 -1
- package/lib/esm/AccuSnap.js +56 -49
- package/lib/esm/AccuSnap.js.map +1 -1
- package/lib/esm/extension/ExtensionRuntime.js +37 -30
- package/lib/esm/extension/ExtensionRuntime.js.map +1 -1
- package/lib/esm/extension/providers/ExtensionLoadScript.d.ts +6 -4
- package/lib/esm/extension/providers/ExtensionLoadScript.d.ts.map +1 -1
- package/lib/esm/extension/providers/ExtensionLoadScript.js +14 -31
- package/lib/esm/extension/providers/ExtensionLoadScript.js.map +1 -1
- package/package.json +20 -20
|
@@ -42,11 +42,12 @@ const extensionExports = {
|
|
|
42
42
|
MessageBoxType: core_frontend_1.MessageBoxType,
|
|
43
43
|
MessageBoxIconType: core_frontend_1.MessageBoxIconType,
|
|
44
44
|
MessageBoxValue: core_frontend_1.MessageBoxValue,
|
|
45
|
+
SelectionSetEventType: core_frontend_1.SelectionSetEventType,
|
|
46
|
+
StandardViewId: core_frontend_1.StandardViewId,
|
|
47
|
+
ViewStatus: core_frontend_1.ViewStatus,
|
|
45
48
|
GraphicType: core_frontend_1.GraphicType,
|
|
46
49
|
UniformType: core_frontend_1.UniformType,
|
|
47
50
|
VaryingType: core_frontend_1.VaryingType,
|
|
48
|
-
SelectionSetEventType: core_frontend_1.SelectionSetEventType,
|
|
49
|
-
StandardViewId: core_frontend_1.StandardViewId,
|
|
50
51
|
TileLoadStatus: core_frontend_1.TileLoadStatus,
|
|
51
52
|
TileVisibility: core_frontend_1.TileVisibility,
|
|
52
53
|
TileLoadPriority: core_frontend_1.TileLoadPriority,
|
|
@@ -69,7 +70,6 @@ const extensionExports = {
|
|
|
69
70
|
ManipulatorToolEvent: core_frontend_1.ManipulatorToolEvent,
|
|
70
71
|
ToolAssistanceImage: core_frontend_1.ToolAssistanceImage,
|
|
71
72
|
ToolAssistanceInputMethod: core_frontend_1.ToolAssistanceInputMethod,
|
|
72
|
-
ViewStatus: core_frontend_1.ViewStatus,
|
|
73
73
|
AccuDrawHintBuilder: core_frontend_1.AccuDrawHintBuilder,
|
|
74
74
|
AccuSnap: core_frontend_1.AccuSnap,
|
|
75
75
|
AuxCoordSystemState: core_frontend_1.AuxCoordSystemState,
|
|
@@ -98,6 +98,7 @@ const extensionExports = {
|
|
|
98
98
|
SnapDetail: core_frontend_1.SnapDetail,
|
|
99
99
|
IntersectDetail: core_frontend_1.IntersectDetail,
|
|
100
100
|
HitList: core_frontend_1.HitList,
|
|
101
|
+
IModelConnection: core_frontend_1.IModelConnection,
|
|
101
102
|
canvasToResizedCanvasWithBars: core_frontend_1.canvasToResizedCanvasWithBars,
|
|
102
103
|
imageBufferToCanvas: core_frontend_1.imageBufferToCanvas,
|
|
103
104
|
canvasToImageBuffer: core_frontend_1.canvasToImageBuffer,
|
|
@@ -109,7 +110,6 @@ const extensionExports = {
|
|
|
109
110
|
imageBufferToPngDataUrl: core_frontend_1.imageBufferToPngDataUrl,
|
|
110
111
|
imageBufferToBase64EncodedPng: core_frontend_1.imageBufferToBase64EncodedPng,
|
|
111
112
|
getCompressedJpegFromCanvas: core_frontend_1.getCompressedJpegFromCanvas,
|
|
112
|
-
IModelConnection: core_frontend_1.IModelConnection,
|
|
113
113
|
NotificationHandler: core_frontend_1.NotificationHandler,
|
|
114
114
|
MarginPercent: core_frontend_1.MarginPercent,
|
|
115
115
|
Marker: core_frontend_1.Marker,
|
|
@@ -130,6 +130,33 @@ const extensionExports = {
|
|
|
130
130
|
ActivityMessageDetails: core_frontend_1.ActivityMessageDetails,
|
|
131
131
|
NotificationManager: core_frontend_1.NotificationManager,
|
|
132
132
|
PerModelCategoryVisibility: core_frontend_1.PerModelCategoryVisibility,
|
|
133
|
+
HiliteSet: core_frontend_1.HiliteSet,
|
|
134
|
+
SelectionSet: core_frontend_1.SelectionSet,
|
|
135
|
+
SheetViewState: core_frontend_1.SheetViewState,
|
|
136
|
+
SpatialViewState: core_frontend_1.SpatialViewState,
|
|
137
|
+
OrthographicViewState: core_frontend_1.OrthographicViewState,
|
|
138
|
+
Sprite: core_frontend_1.Sprite,
|
|
139
|
+
IconSprites: core_frontend_1.IconSprites,
|
|
140
|
+
SpriteLocation: core_frontend_1.SpriteLocation,
|
|
141
|
+
TentativePoint: core_frontend_1.TentativePoint,
|
|
142
|
+
Tiles: core_frontend_1.Tiles,
|
|
143
|
+
ViewCreator2d: core_frontend_1.ViewCreator2d,
|
|
144
|
+
ViewCreator3d: core_frontend_1.ViewCreator3d,
|
|
145
|
+
queryTerrainElevationOffset: core_frontend_1.queryTerrainElevationOffset,
|
|
146
|
+
ViewManager: core_frontend_1.ViewManager,
|
|
147
|
+
ViewPose: core_frontend_1.ViewPose,
|
|
148
|
+
ViewRect: core_frontend_1.ViewRect,
|
|
149
|
+
ViewState: core_frontend_1.ViewState,
|
|
150
|
+
ViewState3d: core_frontend_1.ViewState3d,
|
|
151
|
+
ViewState2d: core_frontend_1.ViewState2d,
|
|
152
|
+
ViewingSpace: core_frontend_1.ViewingSpace,
|
|
153
|
+
connectViewports: core_frontend_1.connectViewports,
|
|
154
|
+
synchronizeViewportViews: core_frontend_1.synchronizeViewportViews,
|
|
155
|
+
synchronizeViewportFrusta: core_frontend_1.synchronizeViewportFrusta,
|
|
156
|
+
connectViewportFrusta: core_frontend_1.connectViewportFrusta,
|
|
157
|
+
connectViewportViews: core_frontend_1.connectViewportViews,
|
|
158
|
+
TwoWayViewportSync: core_frontend_1.TwoWayViewportSync,
|
|
159
|
+
TwoWayViewportFrustumSync: core_frontend_1.TwoWayViewportFrustumSync,
|
|
133
160
|
Decorations: core_frontend_1.Decorations,
|
|
134
161
|
FeatureSymbology: core_frontend_1.FeatureSymbology,
|
|
135
162
|
GraphicBranch: core_frontend_1.GraphicBranch,
|
|
@@ -140,18 +167,8 @@ const extensionExports = {
|
|
|
140
167
|
RenderGraphicOwner: core_frontend_1.RenderGraphicOwner,
|
|
141
168
|
RenderSystem: core_frontend_1.RenderSystem,
|
|
142
169
|
Scene: core_frontend_1.Scene,
|
|
143
|
-
HiliteSet: core_frontend_1.HiliteSet,
|
|
144
|
-
SelectionSet: core_frontend_1.SelectionSet,
|
|
145
|
-
SheetViewState: core_frontend_1.SheetViewState,
|
|
146
|
-
SpatialViewState: core_frontend_1.SpatialViewState,
|
|
147
|
-
OrthographicViewState: core_frontend_1.OrthographicViewState,
|
|
148
|
-
Sprite: core_frontend_1.Sprite,
|
|
149
|
-
IconSprites: core_frontend_1.IconSprites,
|
|
150
|
-
SpriteLocation: core_frontend_1.SpriteLocation,
|
|
151
|
-
TentativePoint: core_frontend_1.TentativePoint,
|
|
152
170
|
DisclosedTileTreeSet: core_frontend_1.DisclosedTileTreeSet,
|
|
153
171
|
readElementGraphics: core_frontend_1.readElementGraphics,
|
|
154
|
-
BingElevationProvider: core_frontend_1.BingElevationProvider,
|
|
155
172
|
Tile: core_frontend_1.Tile,
|
|
156
173
|
TileAdmin: core_frontend_1.TileAdmin,
|
|
157
174
|
TileDrawArgs: core_frontend_1.TileDrawArgs,
|
|
@@ -162,7 +179,7 @@ const extensionExports = {
|
|
|
162
179
|
TileTree: core_frontend_1.TileTree,
|
|
163
180
|
TileTreeReference: core_frontend_1.TileTreeReference,
|
|
164
181
|
TileUsageMarker: core_frontend_1.TileUsageMarker,
|
|
165
|
-
|
|
182
|
+
BingElevationProvider: core_frontend_1.BingElevationProvider,
|
|
166
183
|
ViewClipTool: core_frontend_1.ViewClipTool,
|
|
167
184
|
ViewClipClearTool: core_frontend_1.ViewClipClearTool,
|
|
168
185
|
ViewClipDecorationProvider: core_frontend_1.ViewClipDecorationProvider,
|
|
@@ -181,16 +198,6 @@ const extensionExports = {
|
|
|
181
198
|
ToolSettings: core_frontend_1.ToolSettings,
|
|
182
199
|
ViewTool: core_frontend_1.ViewTool,
|
|
183
200
|
ViewManip: core_frontend_1.ViewManip,
|
|
184
|
-
ViewCreator2d: core_frontend_1.ViewCreator2d,
|
|
185
|
-
ViewCreator3d: core_frontend_1.ViewCreator3d,
|
|
186
|
-
queryTerrainElevationOffset: core_frontend_1.queryTerrainElevationOffset,
|
|
187
|
-
ViewingSpace: core_frontend_1.ViewingSpace,
|
|
188
|
-
ViewManager: core_frontend_1.ViewManager,
|
|
189
|
-
ViewPose: core_frontend_1.ViewPose,
|
|
190
|
-
ViewRect: core_frontend_1.ViewRect,
|
|
191
|
-
ViewState: core_frontend_1.ViewState,
|
|
192
|
-
ViewState3d: core_frontend_1.ViewState3d,
|
|
193
|
-
ViewState2d: core_frontend_1.ViewState2d,
|
|
194
201
|
BackgroundMapType: core_common_1.BackgroundMapType,
|
|
195
202
|
GlobeMode: core_common_1.GlobeMode,
|
|
196
203
|
BriefcaseIdValue: core_common_1.BriefcaseIdValue,
|
|
@@ -212,8 +219,6 @@ const extensionExports = {
|
|
|
212
219
|
FontType: core_common_1.FontType,
|
|
213
220
|
Npc: core_common_1.Npc,
|
|
214
221
|
GeoCoordStatus: core_common_1.GeoCoordStatus,
|
|
215
|
-
ElementGeometryOpcode: core_common_1.ElementGeometryOpcode,
|
|
216
|
-
GeometryStreamFlags: core_common_1.GeometryStreamFlags,
|
|
217
222
|
FillDisplay: core_common_1.FillDisplay,
|
|
218
223
|
BackgroundFill: core_common_1.BackgroundFill,
|
|
219
224
|
GeometryClass: core_common_1.GeometryClass,
|
|
@@ -237,6 +242,8 @@ const extensionExports = {
|
|
|
237
242
|
TxnAction: core_common_1.TxnAction,
|
|
238
243
|
GridOrientationType: core_common_1.GridOrientationType,
|
|
239
244
|
RenderMode: core_common_1.RenderMode,
|
|
245
|
+
ElementGeometryOpcode: core_common_1.ElementGeometryOpcode,
|
|
246
|
+
GeometryStreamFlags: core_common_1.GeometryStreamFlags,
|
|
240
247
|
ColorByName: core_common_1.ColorByName,
|
|
241
248
|
ColorDef: core_common_1.ColorDef,
|
|
242
249
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionRuntime.js","sourceRoot":"","sources":["../../../src/extension/ExtensionRuntime.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;AAEH,yDAAyD;AACzD,sDAAsD;AACtD,iCAAiC;AAEjC,mDAAgD;AAChD,mDAAgD;AAEhD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAC/D,IAAK,UAAkB,CAAC,YAAY,CAAC;IACnC,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;AAErE,uBAAuB;AACvB,oDA+K0B;AAE1B,oDAmD4B;AAE5B,MAAM,gBAAgB,GAAG;IACvB,iBAAiB,EAAjB,iCAAiB;IACjB,OAAO,EAAP,uBAAO;IACP,iBAAiB,EAAjB,iCAAiB;IACjB,WAAW,EAAX,2BAAW;IACX,YAAY,EAAZ,4BAAY;IACZ,kBAAkB,EAAlB,kCAAkB;IAClB,UAAU,EAAV,0BAAU;IACV,SAAS,EAAT,yBAAS;IACT,sBAAsB,EAAtB,sCAAsB;IACtB,QAAQ,EAAR,wBAAQ;IACR,QAAQ,EAAR,wBAAQ;IACR,SAAS,EAAT,yBAAS;IACT,WAAW,EAAX,2BAAW;IACX,iBAAiB,EAAjB,iCAAiB;IACjB,WAAW,EAAX,2BAAW;IACX,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,iCAAiB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,YAAY,EAAZ,0BAAY;IACZ,iBAAiB,EAAjB,+BAAiB;IACjB,iBAAiB,EAAjB,+BAAiB;IACjB,UAAU,EAAV,wBAAU;IACV,uBAAuB,EAAvB,qCAAuB;IACvB,eAAe,EAAf,6BAAe;IACf,kBAAkB,EAAlB,gCAAkB;IAClB,sBAAsB,EAAtB,oCAAsB;IACtB,eAAe,EAAf,6BAAe;IACf,8BAA8B,EAA9B,4CAA8B;IAC9B,+BAA+B,EAA/B,6CAA+B;IAC/B,uBAAuB,EAAvB,qCAAuB;IACvB,oBAAoB,EAApB,kCAAoB;IACpB,2BAA2B,EAA3B,yCAA2B;IAC3B,mBAAmB,EAAnB,iCAAmB;IACnB,SAAS,EAAT,uBAAS;IACT,mBAAmB,EAAnB,iCAAmB;IACnB,UAAU,EAAV,wBAAU;IACV,WAAW,EAAX,yBAAW;IACX,QAAQ,EAAR,sBAAQ;CACT,CAAC;AAEF,qBAAqB;AAErB,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;IACrC,OAAO;QACL,OAAO,EAAE;YACP,aAAa;YACb,aAAa,EAAb,6BAAa;YACb,YAAY;YACZ,GAAG,gBAAgB;SACpB;QACD,GAAG,EAAE,IAAI,6BAAa,CAAC,EAAE,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC;AAED,UAAkB,CAAC,YAAY,CAAC,GAAG;IAClC,eAAe;CAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Extensions\r\n */\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n/* eslint-disable @itwin/no-internal-barrel-imports */\r\n/* eslint-disable sort-imports */\r\n\r\nimport { ExtensionImpl } from \"./ExtensionImpl\";\r\nimport { ExtensionHost } from \"./ExtensionHost\";\r\n\r\nconst globalSymbol = Symbol.for(\"itwin.core.frontend.globals\");\r\nif ((globalThis as any)[globalSymbol])\r\n throw new Error(\"Multiple @itwin/core-frontend imports detected!\");\r\n\r\n// BEGIN GENERATED CODE\r\nimport {\r\n // @public enum(s) from @itwin/core-frontend\r\n ContextRotationId,\r\n ACSType,\r\n ACSDisplayOptions,\r\n CoordSystem,\r\n LocateAction,\r\n LocateFilterStatus,\r\n SnapStatus,\r\n FlashMode,\r\n FrontendLoggerCategory,\r\n SnapMode,\r\n SnapHeat,\r\n HitSource,\r\n HitGeomType,\r\n HitParentGeomType,\r\n HitPriority,\r\n HitDetailType,\r\n OutputMessageType,\r\n OutputMessagePriority,\r\n OutputMessageAlert,\r\n ActivityMessageEndReason,\r\n MessageBoxType,\r\n MessageBoxIconType,\r\n MessageBoxValue,\r\n GraphicType,\r\n UniformType,\r\n VaryingType,\r\n SelectionSetEventType,\r\n StandardViewId,\r\n TileLoadStatus,\r\n TileVisibility,\r\n TileLoadPriority,\r\n TileBoundingBoxes,\r\n TileTreeLoadStatus,\r\n TileGraphicType,\r\n ClipEventType,\r\n SelectionMethod,\r\n SelectionMode,\r\n SelectionProcessing,\r\n BeButton,\r\n CoordinateLockOverrides,\r\n InputSource,\r\n CoordSource,\r\n BeModifierKeys,\r\n EventHandled,\r\n ParseAndRunResult,\r\n KeyinParseError,\r\n StartOrResume,\r\n ManipulatorToolEvent,\r\n ToolAssistanceImage,\r\n ToolAssistanceInputMethod,\r\n ViewStatus,\r\n // @public real(s) from @itwin/core-frontend\r\n AccuDrawHintBuilder,\r\n AccuSnap,\r\n AuxCoordSystemState,\r\n AuxCoordSystem2dState,\r\n AuxCoordSystem3dState,\r\n AuxCoordSystemSpatialState,\r\n BingLocationProvider,\r\n CategorySelectorState,\r\n ChangeFlags,\r\n ContextRealityModelState,\r\n DisplayStyleState,\r\n DisplayStyle2dState,\r\n DisplayStyle3dState,\r\n DrawingViewState,\r\n LocateOptions,\r\n LocateResponse,\r\n ElementPicker,\r\n ElementLocateManager,\r\n EmphasizeElements,\r\n EntityState,\r\n ElementState,\r\n FlashSettings,\r\n FrustumAnimator,\r\n GlobeAnimator,\r\n HitDetail,\r\n SnapDetail,\r\n IntersectDetail,\r\n HitList,\r\n canvasToResizedCanvasWithBars,\r\n imageBufferToCanvas,\r\n canvasToImageBuffer,\r\n getImageSourceMimeType,\r\n getImageSourceFormatForMimeType,\r\n imageElementFromImageSource,\r\n imageElementFromUrl,\r\n extractImageSourceDimensions,\r\n imageBufferToPngDataUrl,\r\n imageBufferToBase64EncodedPng,\r\n getCompressedJpegFromCanvas,\r\n IModelConnection,\r\n NotificationHandler,\r\n MarginPercent,\r\n Marker,\r\n Cluster,\r\n MarkerSet,\r\n ModelSelectorState,\r\n ModelState,\r\n GeometricModelState,\r\n GeometricModel2dState,\r\n GeometricModel3dState,\r\n SheetModelState,\r\n SpatialModelState,\r\n PhysicalModelState,\r\n SpatialLocationModelState,\r\n DrawingModelState,\r\n SectionDrawingModelState,\r\n NotifyMessageDetails,\r\n ActivityMessageDetails,\r\n NotificationManager,\r\n PerModelCategoryVisibility,\r\n Decorations,\r\n FeatureSymbology,\r\n GraphicBranch,\r\n GraphicBuilder,\r\n Pixel,\r\n RenderClipVolume,\r\n RenderGraphic,\r\n RenderGraphicOwner,\r\n RenderSystem,\r\n Scene,\r\n HiliteSet,\r\n SelectionSet,\r\n SheetViewState,\r\n SpatialViewState,\r\n OrthographicViewState,\r\n Sprite,\r\n IconSprites,\r\n SpriteLocation,\r\n TentativePoint,\r\n DisclosedTileTreeSet,\r\n readElementGraphics,\r\n BingElevationProvider,\r\n Tile,\r\n TileAdmin,\r\n TileDrawArgs,\r\n TileRequest,\r\n TileRequestChannelStatistics,\r\n TileRequestChannel,\r\n TileRequestChannels,\r\n TileTree,\r\n TileTreeReference,\r\n TileUsageMarker,\r\n Tiles,\r\n ViewClipTool,\r\n ViewClipClearTool,\r\n ViewClipDecorationProvider,\r\n EditManipulator,\r\n EventController,\r\n PrimitiveTool,\r\n BeButtonState,\r\n BeButtonEvent,\r\n BeTouchEvent,\r\n BeWheelEvent,\r\n Tool,\r\n InteractiveTool,\r\n InputCollector,\r\n ToolAdmin,\r\n ToolAssistance,\r\n ToolSettings,\r\n ViewTool,\r\n ViewManip,\r\n ViewCreator2d,\r\n ViewCreator3d,\r\n queryTerrainElevationOffset,\r\n ViewingSpace,\r\n ViewManager,\r\n ViewPose,\r\n ViewRect,\r\n ViewState,\r\n ViewState3d,\r\n ViewState2d,\r\n} from \"../core-frontend\";\r\n\r\nimport {\r\n // @public enum(s) from @itwin/core-common\r\n BackgroundMapType,\r\n GlobeMode,\r\n BriefcaseIdValue,\r\n SyncMode,\r\n TypeOfChange,\r\n ChangesetType,\r\n BisCodeSpec,\r\n CommonLoggerCategory,\r\n QueryRowFormat,\r\n MonochromeMode,\r\n ECSqlValueType,\r\n ChangeOpCode,\r\n ChangedValueState,\r\n ECSqlSystemProperty,\r\n SectionType,\r\n Rank,\r\n FeatureOverrideType,\r\n BatchType,\r\n FontType,\r\n Npc,\r\n GeoCoordStatus,\r\n ElementGeometryOpcode,\r\n GeometryStreamFlags,\r\n FillDisplay,\r\n BackgroundFill,\r\n GeometryClass,\r\n GeometrySummaryVerbosity,\r\n FillFlags,\r\n HSVConstants,\r\n ImageBufferFormat,\r\n ImageSourceFormat,\r\n LinePixels,\r\n MassPropertiesOperation,\r\n TextureMapUnits,\r\n PlanarClipMaskMode,\r\n PlanarClipMaskPriority,\r\n SkyBoxImageType,\r\n SpatialClassifierInsideDisplay,\r\n SpatialClassifierOutsideDisplay,\r\n TerrainHeightOriginMode,\r\n ThematicGradientMode,\r\n ThematicGradientColorScheme,\r\n ThematicDisplayMode,\r\n TxnAction,\r\n GridOrientationType,\r\n RenderMode,\r\n // @public real(s) from @itwin/core-common\r\n ColorByName,\r\n ColorDef,\r\n} from \"@itwin/core-common\";\r\n\r\nconst extensionExports = {\r\n ContextRotationId,\r\n ACSType,\r\n ACSDisplayOptions,\r\n CoordSystem,\r\n LocateAction,\r\n LocateFilterStatus,\r\n SnapStatus,\r\n FlashMode,\r\n FrontendLoggerCategory,\r\n SnapMode,\r\n SnapHeat,\r\n HitSource,\r\n HitGeomType,\r\n HitParentGeomType,\r\n HitPriority,\r\n HitDetailType,\r\n OutputMessageType,\r\n OutputMessagePriority,\r\n OutputMessageAlert,\r\n ActivityMessageEndReason,\r\n MessageBoxType,\r\n MessageBoxIconType,\r\n MessageBoxValue,\r\n GraphicType,\r\n UniformType,\r\n VaryingType,\r\n SelectionSetEventType,\r\n StandardViewId,\r\n TileLoadStatus,\r\n TileVisibility,\r\n TileLoadPriority,\r\n TileBoundingBoxes,\r\n TileTreeLoadStatus,\r\n TileGraphicType,\r\n ClipEventType,\r\n SelectionMethod,\r\n SelectionMode,\r\n SelectionProcessing,\r\n BeButton,\r\n CoordinateLockOverrides,\r\n InputSource,\r\n CoordSource,\r\n BeModifierKeys,\r\n EventHandled,\r\n ParseAndRunResult,\r\n KeyinParseError,\r\n StartOrResume,\r\n ManipulatorToolEvent,\r\n ToolAssistanceImage,\r\n ToolAssistanceInputMethod,\r\n ViewStatus,\r\n AccuDrawHintBuilder,\r\n AccuSnap,\r\n AuxCoordSystemState,\r\n AuxCoordSystem2dState,\r\n AuxCoordSystem3dState,\r\n AuxCoordSystemSpatialState,\r\n BingLocationProvider,\r\n CategorySelectorState,\r\n ChangeFlags,\r\n ContextRealityModelState,\r\n DisplayStyleState,\r\n DisplayStyle2dState,\r\n DisplayStyle3dState,\r\n DrawingViewState,\r\n LocateOptions,\r\n LocateResponse,\r\n ElementPicker,\r\n ElementLocateManager,\r\n EmphasizeElements,\r\n EntityState,\r\n ElementState,\r\n FlashSettings,\r\n FrustumAnimator,\r\n GlobeAnimator,\r\n HitDetail,\r\n SnapDetail,\r\n IntersectDetail,\r\n HitList,\r\n canvasToResizedCanvasWithBars,\r\n imageBufferToCanvas,\r\n canvasToImageBuffer,\r\n getImageSourceMimeType,\r\n getImageSourceFormatForMimeType,\r\n imageElementFromImageSource,\r\n imageElementFromUrl,\r\n extractImageSourceDimensions,\r\n imageBufferToPngDataUrl,\r\n imageBufferToBase64EncodedPng,\r\n getCompressedJpegFromCanvas,\r\n IModelConnection,\r\n NotificationHandler,\r\n MarginPercent,\r\n Marker,\r\n Cluster,\r\n MarkerSet,\r\n ModelSelectorState,\r\n ModelState,\r\n GeometricModelState,\r\n GeometricModel2dState,\r\n GeometricModel3dState,\r\n SheetModelState,\r\n SpatialModelState,\r\n PhysicalModelState,\r\n SpatialLocationModelState,\r\n DrawingModelState,\r\n SectionDrawingModelState,\r\n NotifyMessageDetails,\r\n ActivityMessageDetails,\r\n NotificationManager,\r\n PerModelCategoryVisibility,\r\n Decorations,\r\n FeatureSymbology,\r\n GraphicBranch,\r\n GraphicBuilder,\r\n Pixel,\r\n RenderClipVolume,\r\n RenderGraphic,\r\n RenderGraphicOwner,\r\n RenderSystem,\r\n Scene,\r\n HiliteSet,\r\n SelectionSet,\r\n SheetViewState,\r\n SpatialViewState,\r\n OrthographicViewState,\r\n Sprite,\r\n IconSprites,\r\n SpriteLocation,\r\n TentativePoint,\r\n DisclosedTileTreeSet,\r\n readElementGraphics,\r\n BingElevationProvider,\r\n Tile,\r\n TileAdmin,\r\n TileDrawArgs,\r\n TileRequest,\r\n TileRequestChannelStatistics,\r\n TileRequestChannel,\r\n TileRequestChannels,\r\n TileTree,\r\n TileTreeReference,\r\n TileUsageMarker,\r\n Tiles,\r\n ViewClipTool,\r\n ViewClipClearTool,\r\n ViewClipDecorationProvider,\r\n EditManipulator,\r\n EventController,\r\n PrimitiveTool,\r\n BeButtonState,\r\n BeButtonEvent,\r\n BeTouchEvent,\r\n BeWheelEvent,\r\n Tool,\r\n InteractiveTool,\r\n InputCollector,\r\n ToolAdmin,\r\n ToolAssistance,\r\n ToolSettings,\r\n ViewTool,\r\n ViewManip,\r\n ViewCreator2d,\r\n ViewCreator3d,\r\n queryTerrainElevationOffset,\r\n ViewingSpace,\r\n ViewManager,\r\n ViewPose,\r\n ViewRect,\r\n ViewState,\r\n ViewState3d,\r\n ViewState2d,\r\n BackgroundMapType,\r\n GlobeMode,\r\n BriefcaseIdValue,\r\n SyncMode,\r\n TypeOfChange,\r\n ChangesetType,\r\n BisCodeSpec,\r\n CommonLoggerCategory,\r\n QueryRowFormat,\r\n MonochromeMode,\r\n ECSqlValueType,\r\n ChangeOpCode,\r\n ChangedValueState,\r\n ECSqlSystemProperty,\r\n SectionType,\r\n Rank,\r\n FeatureOverrideType,\r\n BatchType,\r\n FontType,\r\n Npc,\r\n GeoCoordStatus,\r\n ElementGeometryOpcode,\r\n GeometryStreamFlags,\r\n FillDisplay,\r\n BackgroundFill,\r\n GeometryClass,\r\n GeometrySummaryVerbosity,\r\n FillFlags,\r\n HSVConstants,\r\n ImageBufferFormat,\r\n ImageSourceFormat,\r\n LinePixels,\r\n MassPropertiesOperation,\r\n TextureMapUnits,\r\n PlanarClipMaskMode,\r\n PlanarClipMaskPriority,\r\n SkyBoxImageType,\r\n SpatialClassifierInsideDisplay,\r\n SpatialClassifierOutsideDisplay,\r\n TerrainHeightOriginMode,\r\n ThematicGradientMode,\r\n ThematicGradientColorScheme,\r\n ThematicDisplayMode,\r\n TxnAction,\r\n GridOrientationType,\r\n RenderMode,\r\n ColorByName,\r\n ColorDef,\r\n};\r\n\r\n// END GENERATED CODE\r\n\r\nconst getExtensionApi = (id: string) => {\r\n return {\r\n exports: {\r\n // exceptions\r\n ExtensionHost,\r\n // automated\r\n ...extensionExports,\r\n },\r\n api: new ExtensionImpl(id),\r\n };\r\n};\r\n\r\n(globalThis as any)[globalSymbol] = {\r\n getExtensionApi,\r\n};\r\n"]}
|
|
1
|
+
{"version":3,"file":"ExtensionRuntime.js","sourceRoot":"","sources":["../../../src/extension/ExtensionRuntime.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;AAEH,yDAAyD;AACzD,sDAAsD;AACtD,iCAAiC;AAEjC,mDAAgD;AAChD,mDAAgD;AAEhD,MAAM,YAAY,GAA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AAmB;IACnB,SAAS,EAAT,uBAAS;IACT,mBAAmB,EAAnB,iCAAmB;IACnB,UAAU,EAAV,wBAAU;IACV,qBAAqB,EAArB,mCAAqB;IACrB,mBAAmB,EAAnB,iCAAmB;IACnB,WAAW,EAAX,yBAAW;IACX,QAAQ,EAAR,sBAAQ;CACT,CAAC;AAEF,qBAAqB;AAErB,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;IACrC,OAAO;QACL,OAAO,EAAE;YACP,aAAa;YACb,aAAa,EAAb,6BAAa;YACb,YAAY;YACZ,GAAG,gBAAgB;SACpB;QACD,GAAG,EAAE,IAAI,6BAAa,CAAC,EAAE,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC;AAED,UAAkB,CAAC,YAAY,CAAC,GAAG;IAClC,eAAe;CAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Extensions\r\n */\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n/* eslint-disable @itwin/no-internal-barrel-imports */\r\n/* eslint-disable sort-imports */\r\n\r\nimport { ExtensionImpl } from \"./ExtensionImpl\";\r\nimport { ExtensionHost } from \"./ExtensionHost\";\r\n\r\nconst globalSymbol = Symbol.for(\"itwin.core.frontend.globals\");\r\nif ((globalThis as any)[globalSymbol])\r\n throw new Error(\"Multiple @itwin/core-frontend imports detected!\");\r\n\r\n// BEGIN GENERATED CODE\r\nimport {\r\n // @public enum(s) from @itwin/core-frontend\r\n ContextRotationId,\r\n ACSType,\r\n ACSDisplayOptions,\r\n CoordSystem,\r\n LocateAction,\r\n LocateFilterStatus,\r\n SnapStatus,\r\n FlashMode,\r\n FrontendLoggerCategory,\r\n SnapMode,\r\n SnapHeat,\r\n HitSource,\r\n HitGeomType,\r\n HitParentGeomType,\r\n HitPriority,\r\n HitDetailType,\r\n OutputMessageType,\r\n OutputMessagePriority,\r\n OutputMessageAlert,\r\n ActivityMessageEndReason,\r\n MessageBoxType,\r\n MessageBoxIconType,\r\n MessageBoxValue,\r\n SelectionSetEventType,\r\n StandardViewId,\r\n ViewStatus,\r\n GraphicType,\r\n UniformType,\r\n VaryingType,\r\n TileLoadStatus,\r\n TileVisibility,\r\n TileLoadPriority,\r\n TileBoundingBoxes,\r\n TileTreeLoadStatus,\r\n TileGraphicType,\r\n ClipEventType,\r\n SelectionMethod,\r\n SelectionMode,\r\n SelectionProcessing,\r\n BeButton,\r\n CoordinateLockOverrides,\r\n InputSource,\r\n CoordSource,\r\n BeModifierKeys,\r\n EventHandled,\r\n ParseAndRunResult,\r\n KeyinParseError,\r\n StartOrResume,\r\n ManipulatorToolEvent,\r\n ToolAssistanceImage,\r\n ToolAssistanceInputMethod,\r\n // @public real(s) from @itwin/core-frontend\r\n AccuDrawHintBuilder,\r\n AccuSnap,\r\n AuxCoordSystemState,\r\n AuxCoordSystem2dState,\r\n AuxCoordSystem3dState,\r\n AuxCoordSystemSpatialState,\r\n BingLocationProvider,\r\n CategorySelectorState,\r\n ChangeFlags,\r\n ContextRealityModelState,\r\n DisplayStyleState,\r\n DisplayStyle2dState,\r\n DisplayStyle3dState,\r\n DrawingViewState,\r\n LocateOptions,\r\n LocateResponse,\r\n ElementPicker,\r\n ElementLocateManager,\r\n EmphasizeElements,\r\n EntityState,\r\n ElementState,\r\n FlashSettings,\r\n FrustumAnimator,\r\n GlobeAnimator,\r\n HitDetail,\r\n SnapDetail,\r\n IntersectDetail,\r\n HitList,\r\n IModelConnection,\r\n canvasToResizedCanvasWithBars,\r\n imageBufferToCanvas,\r\n canvasToImageBuffer,\r\n getImageSourceMimeType,\r\n getImageSourceFormatForMimeType,\r\n imageElementFromImageSource,\r\n imageElementFromUrl,\r\n extractImageSourceDimensions,\r\n imageBufferToPngDataUrl,\r\n imageBufferToBase64EncodedPng,\r\n getCompressedJpegFromCanvas,\r\n NotificationHandler,\r\n MarginPercent,\r\n Marker,\r\n Cluster,\r\n MarkerSet,\r\n ModelSelectorState,\r\n ModelState,\r\n GeometricModelState,\r\n GeometricModel2dState,\r\n GeometricModel3dState,\r\n SheetModelState,\r\n SpatialModelState,\r\n PhysicalModelState,\r\n SpatialLocationModelState,\r\n DrawingModelState,\r\n SectionDrawingModelState,\r\n NotifyMessageDetails,\r\n ActivityMessageDetails,\r\n NotificationManager,\r\n PerModelCategoryVisibility,\r\n HiliteSet,\r\n SelectionSet,\r\n SheetViewState,\r\n SpatialViewState,\r\n OrthographicViewState,\r\n Sprite,\r\n IconSprites,\r\n SpriteLocation,\r\n TentativePoint,\r\n Tiles,\r\n ViewCreator2d,\r\n ViewCreator3d,\r\n queryTerrainElevationOffset,\r\n ViewManager,\r\n ViewPose,\r\n ViewRect,\r\n ViewState,\r\n ViewState3d,\r\n ViewState2d,\r\n ViewingSpace,\r\n connectViewports,\r\n synchronizeViewportViews,\r\n synchronizeViewportFrusta,\r\n connectViewportFrusta,\r\n connectViewportViews,\r\n TwoWayViewportSync,\r\n TwoWayViewportFrustumSync,\r\n Decorations,\r\n FeatureSymbology,\r\n GraphicBranch,\r\n GraphicBuilder,\r\n Pixel,\r\n RenderClipVolume,\r\n RenderGraphic,\r\n RenderGraphicOwner,\r\n RenderSystem,\r\n Scene,\r\n DisclosedTileTreeSet,\r\n readElementGraphics,\r\n Tile,\r\n TileAdmin,\r\n TileDrawArgs,\r\n TileRequest,\r\n TileRequestChannelStatistics,\r\n TileRequestChannel,\r\n TileRequestChannels,\r\n TileTree,\r\n TileTreeReference,\r\n TileUsageMarker,\r\n BingElevationProvider,\r\n ViewClipTool,\r\n ViewClipClearTool,\r\n ViewClipDecorationProvider,\r\n EditManipulator,\r\n EventController,\r\n PrimitiveTool,\r\n BeButtonState,\r\n BeButtonEvent,\r\n BeTouchEvent,\r\n BeWheelEvent,\r\n Tool,\r\n InteractiveTool,\r\n InputCollector,\r\n ToolAdmin,\r\n ToolAssistance,\r\n ToolSettings,\r\n ViewTool,\r\n ViewManip,\r\n} from \"../core-frontend\";\r\n\r\nimport {\r\n // @public enum(s) from @itwin/core-common\r\n BackgroundMapType,\r\n GlobeMode,\r\n BriefcaseIdValue,\r\n SyncMode,\r\n TypeOfChange,\r\n ChangesetType,\r\n BisCodeSpec,\r\n CommonLoggerCategory,\r\n QueryRowFormat,\r\n MonochromeMode,\r\n ECSqlValueType,\r\n ChangeOpCode,\r\n ChangedValueState,\r\n ECSqlSystemProperty,\r\n SectionType,\r\n Rank,\r\n FeatureOverrideType,\r\n BatchType,\r\n FontType,\r\n Npc,\r\n GeoCoordStatus,\r\n FillDisplay,\r\n BackgroundFill,\r\n GeometryClass,\r\n GeometrySummaryVerbosity,\r\n FillFlags,\r\n HSVConstants,\r\n ImageBufferFormat,\r\n ImageSourceFormat,\r\n LinePixels,\r\n MassPropertiesOperation,\r\n TextureMapUnits,\r\n PlanarClipMaskMode,\r\n PlanarClipMaskPriority,\r\n SkyBoxImageType,\r\n SpatialClassifierInsideDisplay,\r\n SpatialClassifierOutsideDisplay,\r\n TerrainHeightOriginMode,\r\n ThematicGradientMode,\r\n ThematicGradientColorScheme,\r\n ThematicDisplayMode,\r\n TxnAction,\r\n GridOrientationType,\r\n RenderMode,\r\n ElementGeometryOpcode,\r\n GeometryStreamFlags,\r\n // @public real(s) from @itwin/core-common\r\n ColorByName,\r\n ColorDef,\r\n} from \"@itwin/core-common\";\r\n\r\nconst extensionExports = {\r\n ContextRotationId,\r\n ACSType,\r\n ACSDisplayOptions,\r\n CoordSystem,\r\n LocateAction,\r\n LocateFilterStatus,\r\n SnapStatus,\r\n FlashMode,\r\n FrontendLoggerCategory,\r\n SnapMode,\r\n SnapHeat,\r\n HitSource,\r\n HitGeomType,\r\n HitParentGeomType,\r\n HitPriority,\r\n HitDetailType,\r\n OutputMessageType,\r\n OutputMessagePriority,\r\n OutputMessageAlert,\r\n ActivityMessageEndReason,\r\n MessageBoxType,\r\n MessageBoxIconType,\r\n MessageBoxValue,\r\n SelectionSetEventType,\r\n StandardViewId,\r\n ViewStatus,\r\n GraphicType,\r\n UniformType,\r\n VaryingType,\r\n TileLoadStatus,\r\n TileVisibility,\r\n TileLoadPriority,\r\n TileBoundingBoxes,\r\n TileTreeLoadStatus,\r\n TileGraphicType,\r\n ClipEventType,\r\n SelectionMethod,\r\n SelectionMode,\r\n SelectionProcessing,\r\n BeButton,\r\n CoordinateLockOverrides,\r\n InputSource,\r\n CoordSource,\r\n BeModifierKeys,\r\n EventHandled,\r\n ParseAndRunResult,\r\n KeyinParseError,\r\n StartOrResume,\r\n ManipulatorToolEvent,\r\n ToolAssistanceImage,\r\n ToolAssistanceInputMethod,\r\n AccuDrawHintBuilder,\r\n AccuSnap,\r\n AuxCoordSystemState,\r\n AuxCoordSystem2dState,\r\n AuxCoordSystem3dState,\r\n AuxCoordSystemSpatialState,\r\n BingLocationProvider,\r\n CategorySelectorState,\r\n ChangeFlags,\r\n ContextRealityModelState,\r\n DisplayStyleState,\r\n DisplayStyle2dState,\r\n DisplayStyle3dState,\r\n DrawingViewState,\r\n LocateOptions,\r\n LocateResponse,\r\n ElementPicker,\r\n ElementLocateManager,\r\n EmphasizeElements,\r\n EntityState,\r\n ElementState,\r\n FlashSettings,\r\n FrustumAnimator,\r\n GlobeAnimator,\r\n HitDetail,\r\n SnapDetail,\r\n IntersectDetail,\r\n HitList,\r\n IModelConnection,\r\n canvasToResizedCanvasWithBars,\r\n imageBufferToCanvas,\r\n canvasToImageBuffer,\r\n getImageSourceMimeType,\r\n getImageSourceFormatForMimeType,\r\n imageElementFromImageSource,\r\n imageElementFromUrl,\r\n extractImageSourceDimensions,\r\n imageBufferToPngDataUrl,\r\n imageBufferToBase64EncodedPng,\r\n getCompressedJpegFromCanvas,\r\n NotificationHandler,\r\n MarginPercent,\r\n Marker,\r\n Cluster,\r\n MarkerSet,\r\n ModelSelectorState,\r\n ModelState,\r\n GeometricModelState,\r\n GeometricModel2dState,\r\n GeometricModel3dState,\r\n SheetModelState,\r\n SpatialModelState,\r\n PhysicalModelState,\r\n SpatialLocationModelState,\r\n DrawingModelState,\r\n SectionDrawingModelState,\r\n NotifyMessageDetails,\r\n ActivityMessageDetails,\r\n NotificationManager,\r\n PerModelCategoryVisibility,\r\n HiliteSet,\r\n SelectionSet,\r\n SheetViewState,\r\n SpatialViewState,\r\n OrthographicViewState,\r\n Sprite,\r\n IconSprites,\r\n SpriteLocation,\r\n TentativePoint,\r\n Tiles,\r\n ViewCreator2d,\r\n ViewCreator3d,\r\n queryTerrainElevationOffset,\r\n ViewManager,\r\n ViewPose,\r\n ViewRect,\r\n ViewState,\r\n ViewState3d,\r\n ViewState2d,\r\n ViewingSpace,\r\n connectViewports,\r\n synchronizeViewportViews,\r\n synchronizeViewportFrusta,\r\n connectViewportFrusta,\r\n connectViewportViews,\r\n TwoWayViewportSync,\r\n TwoWayViewportFrustumSync,\r\n Decorations,\r\n FeatureSymbology,\r\n GraphicBranch,\r\n GraphicBuilder,\r\n Pixel,\r\n RenderClipVolume,\r\n RenderGraphic,\r\n RenderGraphicOwner,\r\n RenderSystem,\r\n Scene,\r\n DisclosedTileTreeSet,\r\n readElementGraphics,\r\n Tile,\r\n TileAdmin,\r\n TileDrawArgs,\r\n TileRequest,\r\n TileRequestChannelStatistics,\r\n TileRequestChannel,\r\n TileRequestChannels,\r\n TileTree,\r\n TileTreeReference,\r\n TileUsageMarker,\r\n BingElevationProvider,\r\n ViewClipTool,\r\n ViewClipClearTool,\r\n ViewClipDecorationProvider,\r\n EditManipulator,\r\n EventController,\r\n PrimitiveTool,\r\n BeButtonState,\r\n BeButtonEvent,\r\n BeTouchEvent,\r\n BeWheelEvent,\r\n Tool,\r\n InteractiveTool,\r\n InputCollector,\r\n ToolAdmin,\r\n ToolAssistance,\r\n ToolSettings,\r\n ViewTool,\r\n ViewManip,\r\n BackgroundMapType,\r\n GlobeMode,\r\n BriefcaseIdValue,\r\n SyncMode,\r\n TypeOfChange,\r\n ChangesetType,\r\n BisCodeSpec,\r\n CommonLoggerCategory,\r\n QueryRowFormat,\r\n MonochromeMode,\r\n ECSqlValueType,\r\n ChangeOpCode,\r\n ChangedValueState,\r\n ECSqlSystemProperty,\r\n SectionType,\r\n Rank,\r\n FeatureOverrideType,\r\n BatchType,\r\n FontType,\r\n Npc,\r\n GeoCoordStatus,\r\n FillDisplay,\r\n BackgroundFill,\r\n GeometryClass,\r\n GeometrySummaryVerbosity,\r\n FillFlags,\r\n HSVConstants,\r\n ImageBufferFormat,\r\n ImageSourceFormat,\r\n LinePixels,\r\n MassPropertiesOperation,\r\n TextureMapUnits,\r\n PlanarClipMaskMode,\r\n PlanarClipMaskPriority,\r\n SkyBoxImageType,\r\n SpatialClassifierInsideDisplay,\r\n SpatialClassifierOutsideDisplay,\r\n TerrainHeightOriginMode,\r\n ThematicGradientMode,\r\n ThematicGradientColorScheme,\r\n ThematicDisplayMode,\r\n TxnAction,\r\n GridOrientationType,\r\n RenderMode,\r\n ElementGeometryOpcode,\r\n GeometryStreamFlags,\r\n ColorByName,\r\n ColorDef,\r\n};\r\n\r\n// END GENERATED CODE\r\n\r\nconst getExtensionApi = (id: string) => {\r\n return {\r\n exports: {\r\n // exceptions\r\n ExtensionHost,\r\n // automated\r\n ...extensionExports,\r\n },\r\n api: new ExtensionImpl(id),\r\n };\r\n};\r\n\r\n(globalThis as any)[globalSymbol] = {\r\n getExtensionApi,\r\n};\r\n"]}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* First attempts an ES6 dynamic import,
|
|
4
|
-
* second attempts a dynamic import via a script element as a fallback.
|
|
2
|
+
* Imports and executes a bundled javascript (esm) module.
|
|
5
3
|
* Used by remote and service Extensions.
|
|
6
|
-
* Throws an error if
|
|
4
|
+
* Throws an error if no function is found to execute.
|
|
5
|
+
* Looks for a function in the following order:
|
|
6
|
+
* - the module itself.
|
|
7
|
+
* - the module's main export.
|
|
8
|
+
* - the module's default export.
|
|
7
9
|
* @internal
|
|
8
10
|
*/
|
|
9
11
|
export declare function loadScript(jsUrl: string): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionLoadScript.d.ts","sourceRoot":"","sources":["../../../../src/extension/providers/ExtensionLoadScript.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExtensionLoadScript.d.ts","sourceRoot":"","sources":["../../../../src/extension/providers/ExtensionLoadScript.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAQ5D"}
|
|
@@ -1,48 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loadScript = void 0;
|
|
4
2
|
/*---------------------------------------------------------------------------------------------
|
|
5
3
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
6
4
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.loadScript = void 0;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* First attempts an ES6 dynamic import,
|
|
11
|
-
* second attempts a dynamic import via a script element as a fallback.
|
|
9
|
+
* Imports and executes a bundled javascript (esm) module.
|
|
12
10
|
* Used by remote and service Extensions.
|
|
13
|
-
* Throws an error if
|
|
11
|
+
* Throws an error if no function is found to execute.
|
|
12
|
+
* Looks for a function in the following order:
|
|
13
|
+
* - the module itself.
|
|
14
|
+
* - the module's main export.
|
|
15
|
+
* - the module's default export.
|
|
14
16
|
* @internal
|
|
15
17
|
*/
|
|
16
18
|
async function loadScript(jsUrl) {
|
|
17
|
-
// Warning "Critical dependency: the request of a dependency is an expression"
|
|
18
|
-
// until that is resolved, leave code commented:
|
|
19
19
|
// const module = await import(/* webpackIgnore: true */jsUrl);
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const tempGlobal = `__tempModuleLoadingVariable${Math.random().toString(32).substring(2)}`;
|
|
27
|
-
function cleanup() {
|
|
28
|
-
delete window[tempGlobal];
|
|
29
|
-
scriptElement.remove();
|
|
30
|
-
}
|
|
31
|
-
window[tempGlobal] = async function (module) {
|
|
32
|
-
await execute(module);
|
|
33
|
-
cleanup();
|
|
34
|
-
resolve(module);
|
|
35
|
-
};
|
|
36
|
-
scriptElement.type = "module";
|
|
37
|
-
scriptElement.textContent = `import * as m from "${jsUrl}";window.${tempGlobal}(m);`;
|
|
38
|
-
scriptElement.onerror = () => {
|
|
39
|
-
reject(new Error(`Failed to load extension with URL ${jsUrl}`));
|
|
40
|
-
cleanup();
|
|
41
|
-
};
|
|
42
|
-
head.insertBefore(scriptElement, head.lastChild);
|
|
43
|
-
});
|
|
20
|
+
// Webpack gives a warning:
|
|
21
|
+
// "Critical dependency: the request of a dependency is an expression"
|
|
22
|
+
// Because tsc transpiles "await import" to "require" (when compiled to is CommonJS).
|
|
23
|
+
// So use FunctionConstructor to avoid tsc.
|
|
24
|
+
const module = await Function("x", "return import(x)")(jsUrl);
|
|
25
|
+
return execute(module);
|
|
44
26
|
}
|
|
45
27
|
exports.loadScript = loadScript;
|
|
28
|
+
/** attempts to execute an extension module */
|
|
46
29
|
function execute(m) {
|
|
47
30
|
if (typeof m === "function")
|
|
48
31
|
return m();
|
|
@@ -50,6 +33,6 @@ function execute(m) {
|
|
|
50
33
|
return m.main();
|
|
51
34
|
if (m.default && typeof m.default === "function")
|
|
52
35
|
return m.default();
|
|
53
|
-
throw new Error(`Failed to
|
|
36
|
+
throw new Error(`Failed to execute extension. No default function was found to execute.`);
|
|
54
37
|
}
|
|
55
38
|
//# sourceMappingURL=ExtensionLoadScript.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionLoadScript.js","sourceRoot":"","sources":["../../../../src/extension/providers/ExtensionLoadScript.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExtensionLoadScript.js","sourceRoot":"","sources":["../../../../src/extension/providers/ExtensionLoadScript.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;;;;;;;;GASG;AACI,KAAK,UAAU,UAAU,CAAC,KAAa;IAC5C,+DAA+D;IAC/D,2BAA2B;IAC3B,sEAAsE;IACtE,qFAAqF;IACrF,2CAA2C;IAC3C,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,GAAG,EAAC,kBAAkB,CAAC,CAAC,KAAK,CAAC,CAAC;IAC7D,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC;AARD,gCAQC;AAED,8CAA8C;AAC9C,SAAS,OAAO,CAAC,CAAM;IACrB,IAAI,OAAO,CAAC,KAAK,UAAU;QACzB,OAAO,CAAC,EAAE,CAAC;IACb,IAAI,CAAC,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,UAAU;QACxC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK,UAAU;QAC9C,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;IACrB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/**\r\n * Imports and executes a bundled javascript (esm) module.\r\n * Used by remote and service Extensions.\r\n * Throws an error if no function is found to execute.\r\n * Looks for a function in the following order:\r\n * - the module itself.\r\n * - the module's main export.\r\n * - the module's default export.\r\n * @internal\r\n */\r\nexport async function loadScript(jsUrl: string): Promise<any> {\r\n // const module = await import(/* webpackIgnore: true */jsUrl);\r\n // Webpack gives a warning:\r\n // \"Critical dependency: the request of a dependency is an expression\"\r\n // Because tsc transpiles \"await import\" to \"require\" (when compiled to is CommonJS).\r\n // So use FunctionConstructor to avoid tsc.\r\n const module = await Function(\"x\",\"return import(x)\")(jsUrl);\r\n return execute(module);\r\n}\r\n\r\n/** attempts to execute an extension module */\r\nfunction execute(m: any) {\r\n if (typeof m === \"function\")\r\n return m();\r\n if (m.main && typeof m.main === \"function\")\r\n return m.main();\r\n if (m.default && typeof m.default === \"function\")\r\n return m.default();\r\n throw new Error(\r\n `Failed to execute extension. No default function was found to execute.`\r\n );\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccuSnap.d.ts","sourceRoot":"","sources":["../../src/AccuSnap.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAA8E,OAAO,EAAuB,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAEvJ,OAAO,EAAwB,aAAa,EAAoC,cAAc,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC3I,OAAO,EAAE,SAAS,EAA8B,OAAO,EAA0B,eAAe,EAAE,UAAU,EAAY,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEtJ,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAuB,cAAc,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAY,aAAa,EAAE,YAAY,EAAe,MAAM,cAAc,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAItD;;GAEG;AACH,qBAAa,WAAY,YAAW,gBAAgB;IAC3C,QAAQ,UAAiB;IACzB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oBAAoB;IAK5B,gBAAgB;IACT,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAS7C;;OAEG;IACI,YAAY,CAAC,KAAK,EAAE,OAAO;IAQlC;;OAEG;IACI,WAAW,IAAI,IAAI;IAO1B;;;;;OAKG;IACU,UAAU;CAOxB;AAED,gBAAgB;AAChB,qBAAa,mBAAmB;IAC9B,WAAkB,KAAK,IAAI,OAAO,CAA2E;WAE/F,cAAc,CAAC,UAAU,GAAE,OAAc,GAAG,UAAU,GAAG,SAAS;WAWlE,eAAe,IAAI,OAAO;WAU1B,cAAc,IAAI,cAAc,GAAG,SAAS;CAI3D;AAED,cAAc;AACd,yBAAiB,QAAQ,CAAC;IACxB,MAAa,SAAS;QACb,OAAO,UAAS;QAChB,MAAM,UAAS;QACf,SAAS,SAAK;QACd,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;QAK/B,KAAK,IAAI,SAAS;KAC1B;IAED,MAAa,QAAQ;QACZ,iBAAiB,SAAO;QACxB,YAAY,SAAO;QACnB,cAAc,SAAO;QACrB,cAAc,UAAQ;QACtB,UAAU,UAAQ;QAClB,OAAO,UAAQ;QACf,YAAY,aAA8B;KAClD;CACF"}
|
package/lib/esm/AccuSnap.js
CHANGED
|
@@ -592,56 +592,63 @@ export class AccuSnap {
|
|
|
592
592
|
return undefined; // Don't make back end request when only doing intersection snap when we don't have another hit to intersect with...
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
out
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
595
|
+
try {
|
|
596
|
+
const result = await thisHit.iModel.requestSnap(requestProps);
|
|
597
|
+
if (out)
|
|
598
|
+
out.snapStatus = result.status;
|
|
599
|
+
if (result.status !== SnapStatus.Success)
|
|
600
|
+
return undefined;
|
|
601
|
+
const parseCurve = (json) => {
|
|
602
|
+
const parsed = undefined !== json ? GeomJson.Reader.parse(json) : undefined;
|
|
603
|
+
return parsed instanceof GeometryQuery && "curvePrimitive" === parsed.geometryCategory ? parsed : undefined;
|
|
604
|
+
};
|
|
605
|
+
// If this hit is from a plan projection model, apply the model's elevation to the snap point for display.
|
|
606
|
+
// Likewise, if it is a hit on a model with a display transform, apply the model's transform to the snap point.
|
|
607
|
+
let snapPoint = result.snapPoint;
|
|
608
|
+
const elevation = undefined !== thisHit.modelId ? thisHit.viewport.view.getModelElevation(thisHit.modelId) : 0;
|
|
609
|
+
if (0 !== elevation || undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
|
|
610
|
+
const adjustedSnapPoint = Point3d.fromJSON(snapPoint);
|
|
611
|
+
thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, adjustedSnapPoint, false);
|
|
612
|
+
adjustedSnapPoint.z += elevation;
|
|
613
|
+
snapPoint = adjustedSnapPoint;
|
|
614
|
+
}
|
|
615
|
+
const snap = new SnapDetail(thisHit, result.snapMode, result.heat, snapPoint);
|
|
616
|
+
// Apply model's elevation and display transform to curve for display.
|
|
617
|
+
let transform;
|
|
618
|
+
if (undefined !== thisHit.modelId && undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
|
|
619
|
+
transform = thisHit.viewport.view.getModelDisplayTransform(thisHit.modelId, Transform.createIdentity());
|
|
620
|
+
if (0 !== elevation)
|
|
621
|
+
transform.origin.set(0, 0, elevation);
|
|
622
|
+
}
|
|
623
|
+
else if (0 !== elevation) {
|
|
624
|
+
transform = Transform.createTranslationXYZ(0, 0, elevation);
|
|
625
|
+
}
|
|
626
|
+
snap.setCurvePrimitive(parseCurve(result.curve), transform, result.geomType);
|
|
627
|
+
if (undefined !== result.parentGeomType)
|
|
628
|
+
snap.parentGeomType = result.parentGeomType;
|
|
629
|
+
if (undefined !== result.hitPoint) {
|
|
630
|
+
snap.hitPoint.setFromJSON(result.hitPoint); // Update hitPoint from readPixels with exact point location corrected to surface/edge geometry...
|
|
631
|
+
thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, snap.hitPoint, false);
|
|
632
|
+
}
|
|
633
|
+
if (undefined !== result.normal) {
|
|
634
|
+
snap.normal = Vector3d.fromJSON(result.normal);
|
|
635
|
+
thisHit.viewport.view.transformNormalByModelDisplayTransform(thisHit.modelId, snap.normal);
|
|
636
|
+
}
|
|
637
|
+
if (SnapMode.Intersection !== snap.snapMode)
|
|
638
|
+
return snap;
|
|
639
|
+
if (undefined === result.intersectId)
|
|
640
|
+
return undefined;
|
|
641
|
+
const otherPrimitive = parseCurve(result.intersectCurve);
|
|
642
|
+
if (undefined === otherPrimitive)
|
|
643
|
+
return undefined;
|
|
644
|
+
const intersect = new IntersectDetail(snap, snap.heat, snap.snapPoint, otherPrimitive, result.intersectId);
|
|
645
|
+
return intersect;
|
|
646
|
+
}
|
|
647
|
+
catch (_err) {
|
|
648
|
+
if (out)
|
|
649
|
+
out.snapStatus = SnapStatus.Aborted;
|
|
642
650
|
return undefined;
|
|
643
|
-
|
|
644
|
-
return intersect;
|
|
651
|
+
}
|
|
645
652
|
}
|
|
646
653
|
async getAccuSnapDetail(hitList, out) {
|
|
647
654
|
const thisHit = hitList.getNextHit();
|