@itwin/core-frontend 3.3.0-dev.2 → 3.3.0-dev.5

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.
@@ -16,235 +16,242 @@ if (globalThis[globalSymbol])
16
16
  // BEGIN GENERATED CODE
17
17
  import {
18
18
  // @public enum(s) from @itwin/core-frontend
19
- ContextRotationId, ACSType, ACSDisplayOptions, CoordSystem, LocateAction, LocateFilterStatus, SnapStatus, FlashMode, FrontendLoggerCategory, SnapMode, SnapHeat, HitSource, HitGeomType, HitParentGeomType, HitPriority, HitDetailType, OutputMessageType, OutputMessagePriority, OutputMessageAlert, ActivityMessageEndReason, MessageBoxType, MessageBoxIconType, MessageBoxValue, GraphicType, UniformType, VaryingType, SelectionSetEventType, StandardViewId, TileLoadStatus, TileVisibility, TileLoadPriority, TileBoundingBoxes, TileTreeLoadStatus, TileGraphicType, ClipEventType, SelectionMethod, SelectionMode, SelectionProcessing, BeButton, CoordinateLockOverrides, InputSource, CoordSource, BeModifierKeys, EventHandled, ParseAndRunResult, KeyinParseError, StartOrResume, ManipulatorToolEvent, ToolAssistanceImage, ToolAssistanceInputMethod, ViewStatus,
19
+ ACSDisplayOptions, ACSType, ActivityMessageEndReason, BeButton, BeModifierKeys, ClipEventType, ContextRotationId, CoordSource, CoordSystem, CoordinateLockOverrides, EventHandled, FlashMode, FrontendLoggerCategory, GraphicType, HitDetailType, HitGeomType, HitParentGeomType, HitPriority, HitSource, InputSource, KeyinParseError, LocateAction, LocateFilterStatus, ManipulatorToolEvent, MessageBoxIconType, MessageBoxType, MessageBoxValue, OutputMessageAlert, OutputMessagePriority, OutputMessageType, ParseAndRunResult, SelectionMethod, SelectionMode, SelectionProcessing, SelectionSetEventType, SnapHeat, SnapMode, SnapStatus, StandardViewId, StartOrResume, TileBoundingBoxes, TileGraphicType, TileLoadPriority, TileLoadStatus, TileTreeLoadStatus, TileVisibility, ToolAssistanceImage, ToolAssistanceInputMethod, UniformType, VaryingType, ViewStatus,
20
20
  // @public real(s) from @itwin/core-frontend
21
- AccuDrawHintBuilder, AccuSnap, AuxCoordSystemState, AuxCoordSystem2dState, AuxCoordSystem3dState, AuxCoordSystemSpatialState, BingLocationProvider, CategorySelectorState, ChangeFlags, ContextRealityModelState, DisplayStyleState, DisplayStyle2dState, DisplayStyle3dState, DrawingViewState, LocateOptions, LocateResponse, ElementPicker, ElementLocateManager, EmphasizeElements, EntityState, ElementState, FlashSettings, FrustumAnimator, GlobeAnimator, HitDetail, SnapDetail, IntersectDetail, HitList, canvasToResizedCanvasWithBars, imageBufferToCanvas, canvasToImageBuffer, getImageSourceMimeType, getImageSourceFormatForMimeType, imageElementFromImageSource, imageElementFromUrl, extractImageSourceDimensions, imageBufferToPngDataUrl, imageBufferToBase64EncodedPng, getCompressedJpegFromCanvas, IModelConnection, NotificationHandler, MarginPercent, Marker, Cluster, MarkerSet, ModelSelectorState, ModelState, GeometricModelState, GeometricModel2dState, GeometricModel3dState, SheetModelState, SpatialModelState, PhysicalModelState, SpatialLocationModelState, DrawingModelState, SectionDrawingModelState, NotifyMessageDetails, ActivityMessageDetails, NotificationManager, PerModelCategoryVisibility, Decorations, FeatureSymbology, GraphicBranch, GraphicBuilder, Pixel, RenderClipVolume, RenderGraphic, RenderGraphicOwner, RenderSystem, Scene, HiliteSet, SelectionSet, SheetViewState, SpatialViewState, OrthographicViewState, Sprite, IconSprites, SpriteLocation, TentativePoint, DisclosedTileTreeSet, readElementGraphics, BingElevationProvider, Tile, TileAdmin, TileDrawArgs, TileRequest, TileRequestChannelStatistics, TileRequestChannel, TileRequestChannels, TileTree, TileTreeReference, TileUsageMarker, Tiles, ViewClipTool, ViewClipClearTool, ViewClipDecorationProvider, EditManipulator, EventController, PrimitiveTool, BeButtonState, BeButtonEvent, BeTouchEvent, BeWheelEvent, Tool, InteractiveTool, InputCollector, ToolAdmin, ToolAssistance, ToolSettings, ViewTool, ViewManip, ViewCreator2d, ViewCreator3d, queryTerrainElevationOffset, ViewingSpace, ViewManager, ViewPose, ViewRect, ViewState, ViewState3d, ViewState2d, } from "../core-frontend";
21
+ AccuDrawHintBuilder, AccuSnap, ActivityMessageDetails, AuxCoordSystem2dState, AuxCoordSystem3dState, AuxCoordSystemSpatialState, AuxCoordSystemState, BeButtonEvent, BeButtonState, BeTouchEvent, BeWheelEvent, BingElevationProvider, BingLocationProvider, CategorySelectorState, ChangeFlags, Cluster, ContextRealityModelState, Decorations, DisclosedTileTreeSet, DisplayStyle2dState, DisplayStyle3dState, DisplayStyleState, DrawingModelState, DrawingViewState, EditManipulator, ElementLocateManager, ElementPicker, ElementState, EmphasizeElements, EntityState, EventController, FeatureSymbology, FlashSettings, FrustumAnimator, GeometricModel2dState, GeometricModel3dState, GeometricModelState, GlobeAnimator, GraphicBranch, GraphicBuilder, HiliteSet, HitDetail, HitList, IModelConnection, IconSprites, InputCollector, InteractiveTool, IntersectDetail, LocateOptions, LocateResponse, MarginPercent, Marker, MarkerSet, ModelSelectorState, ModelState, NotificationHandler, NotificationManager, NotifyMessageDetails, OrthographicViewState, PerModelCategoryVisibility, PhysicalModelState, Pixel, PrimitiveTool, RenderClipVolume, RenderGraphic, RenderGraphicOwner, RenderSystem, Scene, SectionDrawingModelState, SelectionSet, SheetModelState, SheetViewState, SnapDetail, SpatialLocationModelState, SpatialModelState, SpatialViewState, Sprite, SpriteLocation, TentativePoint, Tile, TileAdmin, TileDrawArgs, TileRequest, TileRequestChannel, TileRequestChannelStatistics, TileRequestChannels, TileTree, TileTreeReference, TileUsageMarker, Tiles, Tool, ToolAdmin, ToolAssistance, ToolSettings, TwoWayViewportFrustumSync, TwoWayViewportSync, ViewClipClearTool, ViewClipDecorationProvider, ViewClipTool, ViewCreator2d, ViewCreator3d, ViewManager, ViewManip, ViewPose, ViewRect, ViewState, ViewState2d, ViewState3d, ViewTool, ViewingSpace, canvasToImageBuffer, canvasToResizedCanvasWithBars, connectViewportFrusta, connectViewportViews, connectViewports, extractImageSourceDimensions, getCompressedJpegFromCanvas, getImageSourceFormatForMimeType, getImageSourceMimeType, imageBufferToBase64EncodedPng, imageBufferToCanvas, imageBufferToPngDataUrl, imageElementFromImageSource, imageElementFromUrl, queryTerrainElevationOffset, readElementGraphics, synchronizeViewportFrusta, synchronizeViewportViews, } from "../core-frontend";
22
22
  import {
23
23
  // @public enum(s) from @itwin/core-common
24
- BackgroundMapType, GlobeMode, BriefcaseIdValue, SyncMode, TypeOfChange, ChangesetType, BisCodeSpec, CommonLoggerCategory, QueryRowFormat, MonochromeMode, ECSqlValueType, ChangeOpCode, ChangedValueState, ECSqlSystemProperty, SectionType, Rank, FeatureOverrideType, BatchType, FontType, Npc, GeoCoordStatus, ElementGeometryOpcode, GeometryStreamFlags, FillDisplay, BackgroundFill, GeometryClass, GeometrySummaryVerbosity, FillFlags, HSVConstants, ImageBufferFormat, ImageSourceFormat, LinePixels, MassPropertiesOperation, TextureMapUnits, PlanarClipMaskMode, PlanarClipMaskPriority, SkyBoxImageType, SpatialClassifierInsideDisplay, SpatialClassifierOutsideDisplay, TerrainHeightOriginMode, ThematicGradientMode, ThematicGradientColorScheme, ThematicDisplayMode, TxnAction, GridOrientationType, RenderMode,
24
+ BackgroundFill, BackgroundMapType, BatchType, BisCodeSpec, BriefcaseIdValue, ChangeOpCode, ChangedValueState, ChangesetType, CommonLoggerCategory, ECSqlSystemProperty, ECSqlValueType, ElementGeometryOpcode, FeatureOverrideType, FillDisplay, FillFlags, FontType, GeoCoordStatus, GeometryClass, GeometryStreamFlags, GeometrySummaryVerbosity, GlobeMode, GridOrientationType, HSVConstants, ImageBufferFormat, ImageSourceFormat, LinePixels, MassPropertiesOperation, MonochromeMode, Npc, PlanarClipMaskMode, PlanarClipMaskPriority, QueryRowFormat, Rank, RenderMode, SectionType, SkyBoxImageType, SpatialClassifierInsideDisplay, SpatialClassifierOutsideDisplay, SyncMode, TerrainHeightOriginMode, TextureMapUnits, ThematicDisplayMode, ThematicGradientColorScheme, ThematicGradientMode, TxnAction, TypeOfChange,
25
25
  // @public real(s) from @itwin/core-common
26
26
  ColorByName, ColorDef, } from "@itwin/core-common";
27
27
  const extensionExports = {
28
- ContextRotationId,
29
- ACSType,
30
28
  ACSDisplayOptions,
31
- CoordSystem,
32
- LocateAction,
33
- LocateFilterStatus,
34
- SnapStatus,
35
- FlashMode,
36
- FrontendLoggerCategory,
37
- SnapMode,
38
- SnapHeat,
39
- HitSource,
40
- HitGeomType,
41
- HitParentGeomType,
42
- HitPriority,
43
- HitDetailType,
44
- OutputMessageType,
45
- OutputMessagePriority,
46
- OutputMessageAlert,
47
- ActivityMessageEndReason,
48
- MessageBoxType,
49
- MessageBoxIconType,
50
- MessageBoxValue,
51
- GraphicType,
52
- UniformType,
53
- VaryingType,
54
- SelectionSetEventType,
55
- StandardViewId,
56
- TileLoadStatus,
57
- TileVisibility,
58
- TileLoadPriority,
59
- TileBoundingBoxes,
60
- TileTreeLoadStatus,
61
- TileGraphicType,
62
- ClipEventType,
63
- SelectionMethod,
64
- SelectionMode,
65
- SelectionProcessing,
66
- BeButton,
67
- CoordinateLockOverrides,
68
- InputSource,
69
- CoordSource,
70
- BeModifierKeys,
71
- EventHandled,
72
- ParseAndRunResult,
73
- KeyinParseError,
74
- StartOrResume,
75
- ManipulatorToolEvent,
76
- ToolAssistanceImage,
77
- ToolAssistanceInputMethod,
78
- ViewStatus,
29
+ ACSType,
79
30
  AccuDrawHintBuilder,
80
31
  AccuSnap,
81
- AuxCoordSystemState,
32
+ ActivityMessageDetails,
33
+ ActivityMessageEndReason,
82
34
  AuxCoordSystem2dState,
83
35
  AuxCoordSystem3dState,
84
36
  AuxCoordSystemSpatialState,
37
+ AuxCoordSystemState,
38
+ BackgroundFill,
39
+ BackgroundMapType,
40
+ BatchType,
41
+ BeButton,
42
+ BeButtonEvent,
43
+ BeButtonState,
44
+ BeModifierKeys,
45
+ BeTouchEvent,
46
+ BeWheelEvent,
47
+ BingElevationProvider,
85
48
  BingLocationProvider,
49
+ BisCodeSpec,
50
+ BriefcaseIdValue,
86
51
  CategorySelectorState,
87
52
  ChangeFlags,
53
+ ChangeOpCode,
54
+ ChangedValueState,
55
+ ChangesetType,
56
+ ClipEventType,
57
+ Cluster,
58
+ ColorByName,
59
+ ColorDef,
60
+ CommonLoggerCategory,
88
61
  ContextRealityModelState,
89
- DisplayStyleState,
62
+ ContextRotationId,
63
+ CoordSource,
64
+ CoordSystem,
65
+ CoordinateLockOverrides,
66
+ Decorations,
67
+ DisclosedTileTreeSet,
90
68
  DisplayStyle2dState,
91
69
  DisplayStyle3dState,
70
+ DisplayStyleState,
71
+ DrawingModelState,
92
72
  DrawingViewState,
93
- LocateOptions,
94
- LocateResponse,
95
- ElementPicker,
73
+ ECSqlSystemProperty,
74
+ ECSqlValueType,
75
+ EditManipulator,
76
+ ElementGeometryOpcode,
96
77
  ElementLocateManager,
78
+ ElementPicker,
79
+ ElementState,
97
80
  EmphasizeElements,
98
81
  EntityState,
99
- ElementState,
82
+ EventController,
83
+ EventHandled,
84
+ FeatureOverrideType,
85
+ FeatureSymbology,
86
+ FillDisplay,
87
+ FillFlags,
88
+ FlashMode,
100
89
  FlashSettings,
90
+ FontType,
91
+ FrontendLoggerCategory,
101
92
  FrustumAnimator,
93
+ GeoCoordStatus,
94
+ GeometricModel2dState,
95
+ GeometricModel3dState,
96
+ GeometricModelState,
97
+ GeometryClass,
98
+ GeometryStreamFlags,
99
+ GeometrySummaryVerbosity,
102
100
  GlobeAnimator,
101
+ GlobeMode,
102
+ GraphicBranch,
103
+ GraphicBuilder,
104
+ GraphicType,
105
+ GridOrientationType,
106
+ HSVConstants,
107
+ HiliteSet,
103
108
  HitDetail,
104
- SnapDetail,
105
- IntersectDetail,
109
+ HitDetailType,
110
+ HitGeomType,
106
111
  HitList,
107
- canvasToResizedCanvasWithBars,
108
- imageBufferToCanvas,
109
- canvasToImageBuffer,
110
- getImageSourceMimeType,
111
- getImageSourceFormatForMimeType,
112
- imageElementFromImageSource,
113
- imageElementFromUrl,
114
- extractImageSourceDimensions,
115
- imageBufferToPngDataUrl,
116
- imageBufferToBase64EncodedPng,
117
- getCompressedJpegFromCanvas,
112
+ HitParentGeomType,
113
+ HitPriority,
114
+ HitSource,
118
115
  IModelConnection,
119
- NotificationHandler,
116
+ IconSprites,
117
+ ImageBufferFormat,
118
+ ImageSourceFormat,
119
+ InputCollector,
120
+ InputSource,
121
+ InteractiveTool,
122
+ IntersectDetail,
123
+ KeyinParseError,
124
+ LinePixels,
125
+ LocateAction,
126
+ LocateFilterStatus,
127
+ LocateOptions,
128
+ LocateResponse,
129
+ ManipulatorToolEvent,
120
130
  MarginPercent,
121
131
  Marker,
122
- Cluster,
123
132
  MarkerSet,
133
+ MassPropertiesOperation,
134
+ MessageBoxIconType,
135
+ MessageBoxType,
136
+ MessageBoxValue,
124
137
  ModelSelectorState,
125
138
  ModelState,
126
- GeometricModelState,
127
- GeometricModel2dState,
128
- GeometricModel3dState,
129
- SheetModelState,
130
- SpatialModelState,
131
- PhysicalModelState,
132
- SpatialLocationModelState,
133
- DrawingModelState,
134
- SectionDrawingModelState,
135
- NotifyMessageDetails,
136
- ActivityMessageDetails,
139
+ MonochromeMode,
140
+ NotificationHandler,
137
141
  NotificationManager,
142
+ NotifyMessageDetails,
143
+ Npc,
144
+ OrthographicViewState,
145
+ OutputMessageAlert,
146
+ OutputMessagePriority,
147
+ OutputMessageType,
148
+ ParseAndRunResult,
138
149
  PerModelCategoryVisibility,
139
- Decorations,
140
- FeatureSymbology,
141
- GraphicBranch,
142
- GraphicBuilder,
150
+ PhysicalModelState,
143
151
  Pixel,
152
+ PlanarClipMaskMode,
153
+ PlanarClipMaskPriority,
154
+ PrimitiveTool,
155
+ QueryRowFormat,
156
+ Rank,
144
157
  RenderClipVolume,
145
158
  RenderGraphic,
146
159
  RenderGraphicOwner,
160
+ RenderMode,
147
161
  RenderSystem,
148
162
  Scene,
149
- HiliteSet,
163
+ SectionDrawingModelState,
164
+ SectionType,
165
+ SelectionMethod,
166
+ SelectionMode,
167
+ SelectionProcessing,
150
168
  SelectionSet,
169
+ SelectionSetEventType,
170
+ SheetModelState,
151
171
  SheetViewState,
172
+ SkyBoxImageType,
173
+ SnapDetail,
174
+ SnapHeat,
175
+ SnapMode,
176
+ SnapStatus,
177
+ SpatialClassifierInsideDisplay,
178
+ SpatialClassifierOutsideDisplay,
179
+ SpatialLocationModelState,
180
+ SpatialModelState,
152
181
  SpatialViewState,
153
- OrthographicViewState,
154
182
  Sprite,
155
- IconSprites,
156
183
  SpriteLocation,
184
+ StandardViewId,
185
+ StartOrResume,
186
+ SyncMode,
157
187
  TentativePoint,
158
- DisclosedTileTreeSet,
159
- readElementGraphics,
160
- BingElevationProvider,
188
+ TerrainHeightOriginMode,
189
+ TextureMapUnits,
190
+ ThematicDisplayMode,
191
+ ThematicGradientColorScheme,
192
+ ThematicGradientMode,
161
193
  Tile,
162
194
  TileAdmin,
195
+ TileBoundingBoxes,
163
196
  TileDrawArgs,
197
+ TileGraphicType,
198
+ TileLoadPriority,
199
+ TileLoadStatus,
164
200
  TileRequest,
165
- TileRequestChannelStatistics,
166
201
  TileRequestChannel,
202
+ TileRequestChannelStatistics,
167
203
  TileRequestChannels,
168
204
  TileTree,
205
+ TileTreeLoadStatus,
169
206
  TileTreeReference,
170
207
  TileUsageMarker,
208
+ TileVisibility,
171
209
  Tiles,
172
- ViewClipTool,
173
- ViewClipClearTool,
174
- ViewClipDecorationProvider,
175
- EditManipulator,
176
- EventController,
177
- PrimitiveTool,
178
- BeButtonState,
179
- BeButtonEvent,
180
- BeTouchEvent,
181
- BeWheelEvent,
182
210
  Tool,
183
- InteractiveTool,
184
- InputCollector,
185
211
  ToolAdmin,
186
212
  ToolAssistance,
213
+ ToolAssistanceImage,
214
+ ToolAssistanceInputMethod,
187
215
  ToolSettings,
188
- ViewTool,
189
- ViewManip,
216
+ TwoWayViewportFrustumSync,
217
+ TwoWayViewportSync,
218
+ TxnAction,
219
+ TypeOfChange,
220
+ UniformType,
221
+ VaryingType,
222
+ ViewClipClearTool,
223
+ ViewClipDecorationProvider,
224
+ ViewClipTool,
190
225
  ViewCreator2d,
191
226
  ViewCreator3d,
192
- queryTerrainElevationOffset,
193
- ViewingSpace,
194
227
  ViewManager,
228
+ ViewManip,
195
229
  ViewPose,
196
230
  ViewRect,
197
231
  ViewState,
198
- ViewState3d,
199
232
  ViewState2d,
200
- BackgroundMapType,
201
- GlobeMode,
202
- BriefcaseIdValue,
203
- SyncMode,
204
- TypeOfChange,
205
- ChangesetType,
206
- BisCodeSpec,
207
- CommonLoggerCategory,
208
- QueryRowFormat,
209
- MonochromeMode,
210
- ECSqlValueType,
211
- ChangeOpCode,
212
- ChangedValueState,
213
- ECSqlSystemProperty,
214
- SectionType,
215
- Rank,
216
- FeatureOverrideType,
217
- BatchType,
218
- FontType,
219
- Npc,
220
- GeoCoordStatus,
221
- ElementGeometryOpcode,
222
- GeometryStreamFlags,
223
- FillDisplay,
224
- BackgroundFill,
225
- GeometryClass,
226
- GeometrySummaryVerbosity,
227
- FillFlags,
228
- HSVConstants,
229
- ImageBufferFormat,
230
- ImageSourceFormat,
231
- LinePixels,
232
- MassPropertiesOperation,
233
- TextureMapUnits,
234
- PlanarClipMaskMode,
235
- PlanarClipMaskPriority,
236
- SkyBoxImageType,
237
- SpatialClassifierInsideDisplay,
238
- SpatialClassifierOutsideDisplay,
239
- TerrainHeightOriginMode,
240
- ThematicGradientMode,
241
- ThematicGradientColorScheme,
242
- ThematicDisplayMode,
243
- TxnAction,
244
- GridOrientationType,
245
- RenderMode,
246
- ColorByName,
247
- ColorDef,
233
+ ViewState3d,
234
+ ViewStatus,
235
+ ViewTool,
236
+ ViewingSpace,
237
+ canvasToImageBuffer,
238
+ canvasToResizedCanvasWithBars,
239
+ connectViewportFrusta,
240
+ connectViewportViews,
241
+ connectViewports,
242
+ extractImageSourceDimensions,
243
+ getCompressedJpegFromCanvas,
244
+ getImageSourceFormatForMimeType,
245
+ getImageSourceMimeType,
246
+ imageBufferToBase64EncodedPng,
247
+ imageBufferToCanvas,
248
+ imageBufferToPngDataUrl,
249
+ imageElementFromImageSource,
250
+ imageElementFromUrl,
251
+ queryTerrainElevationOffset,
252
+ readElementGraphics,
253
+ synchronizeViewportFrusta,
254
+ synchronizeViewportViews,
248
255
  };
249
256
  // END GENERATED CODE
250
257
  const getExtensionApi = (id) => {
@@ -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,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;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,OAAO;AACL,4CAA4C;AAC5C,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,sBAAsB,EACtB,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,WAAW,EACX,WAAW,EACX,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,QAAQ,EACR,uBAAuB,EACvB,WAAW,EACX,WAAW,EACX,cAAc,EACd,YAAY,EACZ,iBAAi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UAAU;IACV,uBAAuB;IACvB,eAAe;IACf,kBAAkB;IAClB,sBAAsB;IACtB,eAAe;IACf,8BAA8B;IAC9B,+BAA+B;IAC/B,uBAAuB;IACvB,oBAAoB;IACpB,2BAA2B;IAC3B,mBAAmB;IACnB,SAAS;IACT,mBAAmB;IACnB,UAAU;IACV,WAAW;IACX,QAAQ;CACT,CAAC;AAEF,qBAAqB;AAErB,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;IACrC,OAAO;QACL,OAAO,EAAE;YACP,aAAa;YACb,aAAa;YACb,YAAY;YACZ,GAAG,gBAAgB;SACpB;QACD,GAAG,EAAE,IAAI,aAAa,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,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;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,OAAO;AACL,4CAA4C;AAC5C,iBAAiB,EACjB,OAAO,EACP,wBAAwB,EACxB,QAAQ,EACR,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,WAAW,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ACvB,eAAe;IACf,mBAAmB;IACnB,2BAA2B;IAC3B,oBAAoB;IACpB,IAAI;IACJ,SAAS;IACT,iBAAiB;IACjB,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,kBAAkB;IAClB,4BAA4B;IAC5B,mBAAmB;IACnB,QAAQ;IACR,kBAAkB;IAClB,iBAAiB;IACjB,eAAe;IACf,cAAc;IACd,KAAK;IACL,IAAI;IACJ,SAAS;IACT,cAAc;IACd,mBAAmB;IACnB,yBAAyB;IACzB,YAAY;IACZ,yBAAyB;IACzB,kBAAkB;IAClB,SAAS;IACT,YAAY;IACZ,WAAW;IACX,WAAW;IACX,iBAAiB;IACjB,0BAA0B;IAC1B,YAAY;IACZ,aAAa;IACb,aAAa;IACb,WAAW;IACX,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,WAAW;IACX,WAAW;IACX,UAAU;IACV,QAAQ;IACR,YAAY;IACZ,mBAAmB;IACnB,6BAA6B;IAC7B,qBAAqB;IACrB,oBAAoB;IACpB,gBAAgB;IAChB,4BAA4B;IAC5B,2BAA2B;IAC3B,+BAA+B;IAC/B,sBAAsB;IACtB,6BAA6B;IAC7B,mBAAmB;IACnB,uBAAuB;IACvB,2BAA2B;IAC3B,mBAAmB;IACnB,2BAA2B;IAC3B,mBAAmB;IACnB,yBAAyB;IACzB,wBAAwB;CACzB,CAAC;AAEF,qBAAqB;AAErB,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;IACrC,OAAO;QACL,OAAO,EAAE;YACP,aAAa;YACb,aAAa;YACb,YAAY;YACZ,GAAG,gBAAgB;SACpB;QACD,GAAG,EAAE,IAAI,aAAa,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 ACSDisplayOptions,\r\n ACSType,\r\n ActivityMessageEndReason,\r\n BeButton,\r\n BeModifierKeys,\r\n ClipEventType,\r\n ContextRotationId,\r\n CoordSource,\r\n CoordSystem,\r\n CoordinateLockOverrides,\r\n EventHandled,\r\n FlashMode,\r\n FrontendLoggerCategory,\r\n GraphicType,\r\n HitDetailType,\r\n HitGeomType,\r\n HitParentGeomType,\r\n HitPriority,\r\n HitSource,\r\n InputSource,\r\n KeyinParseError,\r\n LocateAction,\r\n LocateFilterStatus,\r\n ManipulatorToolEvent,\r\n MessageBoxIconType,\r\n MessageBoxType,\r\n MessageBoxValue,\r\n OutputMessageAlert,\r\n OutputMessagePriority,\r\n OutputMessageType,\r\n ParseAndRunResult,\r\n SelectionMethod,\r\n SelectionMode,\r\n SelectionProcessing,\r\n SelectionSetEventType,\r\n SnapHeat,\r\n SnapMode,\r\n SnapStatus,\r\n StandardViewId,\r\n StartOrResume,\r\n TileBoundingBoxes,\r\n TileGraphicType,\r\n TileLoadPriority,\r\n TileLoadStatus,\r\n TileTreeLoadStatus,\r\n TileVisibility,\r\n ToolAssistanceImage,\r\n ToolAssistanceInputMethod,\r\n UniformType,\r\n VaryingType,\r\n ViewStatus,\r\n // @public real(s) from @itwin/core-frontend\r\n AccuDrawHintBuilder,\r\n AccuSnap,\r\n ActivityMessageDetails,\r\n AuxCoordSystem2dState,\r\n AuxCoordSystem3dState,\r\n AuxCoordSystemSpatialState,\r\n AuxCoordSystemState,\r\n BeButtonEvent,\r\n BeButtonState,\r\n BeTouchEvent,\r\n BeWheelEvent,\r\n BingElevationProvider,\r\n BingLocationProvider,\r\n CategorySelectorState,\r\n ChangeFlags,\r\n Cluster,\r\n ContextRealityModelState,\r\n Decorations,\r\n DisclosedTileTreeSet,\r\n DisplayStyle2dState,\r\n DisplayStyle3dState,\r\n DisplayStyleState,\r\n DrawingModelState,\r\n DrawingViewState,\r\n EditManipulator,\r\n ElementLocateManager,\r\n ElementPicker,\r\n ElementState,\r\n EmphasizeElements,\r\n EntityState,\r\n EventController,\r\n FeatureSymbology,\r\n FlashSettings,\r\n FrustumAnimator,\r\n GeometricModel2dState,\r\n GeometricModel3dState,\r\n GeometricModelState,\r\n GlobeAnimator,\r\n GraphicBranch,\r\n GraphicBuilder,\r\n HiliteSet,\r\n HitDetail,\r\n HitList,\r\n IModelConnection,\r\n IconSprites,\r\n InputCollector,\r\n InteractiveTool,\r\n IntersectDetail,\r\n LocateOptions,\r\n LocateResponse,\r\n MarginPercent,\r\n Marker,\r\n MarkerSet,\r\n ModelSelectorState,\r\n ModelState,\r\n NotificationHandler,\r\n NotificationManager,\r\n NotifyMessageDetails,\r\n OrthographicViewState,\r\n PerModelCategoryVisibility,\r\n PhysicalModelState,\r\n Pixel,\r\n PrimitiveTool,\r\n RenderClipVolume,\r\n RenderGraphic,\r\n RenderGraphicOwner,\r\n RenderSystem,\r\n Scene,\r\n SectionDrawingModelState,\r\n SelectionSet,\r\n SheetModelState,\r\n SheetViewState,\r\n SnapDetail,\r\n SpatialLocationModelState,\r\n SpatialModelState,\r\n SpatialViewState,\r\n Sprite,\r\n SpriteLocation,\r\n TentativePoint,\r\n Tile,\r\n TileAdmin,\r\n TileDrawArgs,\r\n TileRequest,\r\n TileRequestChannel,\r\n TileRequestChannelStatistics,\r\n TileRequestChannels,\r\n TileTree,\r\n TileTreeReference,\r\n TileUsageMarker,\r\n Tiles,\r\n Tool,\r\n ToolAdmin,\r\n ToolAssistance,\r\n ToolSettings,\r\n TwoWayViewportFrustumSync,\r\n TwoWayViewportSync,\r\n ViewClipClearTool,\r\n ViewClipDecorationProvider,\r\n ViewClipTool,\r\n ViewCreator2d,\r\n ViewCreator3d,\r\n ViewManager,\r\n ViewManip,\r\n ViewPose,\r\n ViewRect,\r\n ViewState,\r\n ViewState2d,\r\n ViewState3d,\r\n ViewTool,\r\n ViewingSpace,\r\n canvasToImageBuffer,\r\n canvasToResizedCanvasWithBars,\r\n connectViewportFrusta,\r\n connectViewportViews,\r\n connectViewports,\r\n extractImageSourceDimensions,\r\n getCompressedJpegFromCanvas,\r\n getImageSourceFormatForMimeType,\r\n getImageSourceMimeType,\r\n imageBufferToBase64EncodedPng,\r\n imageBufferToCanvas,\r\n imageBufferToPngDataUrl,\r\n imageElementFromImageSource,\r\n imageElementFromUrl,\r\n queryTerrainElevationOffset,\r\n readElementGraphics,\r\n synchronizeViewportFrusta,\r\n synchronizeViewportViews,\r\n} from \"../core-frontend\";\r\n\r\nimport {\r\n // @public enum(s) from @itwin/core-common\r\n BackgroundFill,\r\n BackgroundMapType,\r\n BatchType,\r\n BisCodeSpec,\r\n BriefcaseIdValue,\r\n ChangeOpCode,\r\n ChangedValueState,\r\n ChangesetType,\r\n CommonLoggerCategory,\r\n ECSqlSystemProperty,\r\n ECSqlValueType,\r\n ElementGeometryOpcode,\r\n FeatureOverrideType,\r\n FillDisplay,\r\n FillFlags,\r\n FontType,\r\n GeoCoordStatus,\r\n GeometryClass,\r\n GeometryStreamFlags,\r\n GeometrySummaryVerbosity,\r\n GlobeMode,\r\n GridOrientationType,\r\n HSVConstants,\r\n ImageBufferFormat,\r\n ImageSourceFormat,\r\n LinePixels,\r\n MassPropertiesOperation,\r\n MonochromeMode,\r\n Npc,\r\n PlanarClipMaskMode,\r\n PlanarClipMaskPriority,\r\n QueryRowFormat,\r\n Rank,\r\n RenderMode,\r\n SectionType,\r\n SkyBoxImageType,\r\n SpatialClassifierInsideDisplay,\r\n SpatialClassifierOutsideDisplay,\r\n SyncMode,\r\n TerrainHeightOriginMode,\r\n TextureMapUnits,\r\n ThematicDisplayMode,\r\n ThematicGradientColorScheme,\r\n ThematicGradientMode,\r\n TxnAction,\r\n TypeOfChange,\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 ACSDisplayOptions,\r\n ACSType,\r\n AccuDrawHintBuilder,\r\n AccuSnap,\r\n ActivityMessageDetails,\r\n ActivityMessageEndReason,\r\n AuxCoordSystem2dState,\r\n AuxCoordSystem3dState,\r\n AuxCoordSystemSpatialState,\r\n AuxCoordSystemState,\r\n BackgroundFill,\r\n BackgroundMapType,\r\n BatchType,\r\n BeButton,\r\n BeButtonEvent,\r\n BeButtonState,\r\n BeModifierKeys,\r\n BeTouchEvent,\r\n BeWheelEvent,\r\n BingElevationProvider,\r\n BingLocationProvider,\r\n BisCodeSpec,\r\n BriefcaseIdValue,\r\n CategorySelectorState,\r\n ChangeFlags,\r\n ChangeOpCode,\r\n ChangedValueState,\r\n ChangesetType,\r\n ClipEventType,\r\n Cluster,\r\n ColorByName,\r\n ColorDef,\r\n CommonLoggerCategory,\r\n ContextRealityModelState,\r\n ContextRotationId,\r\n CoordSource,\r\n CoordSystem,\r\n CoordinateLockOverrides,\r\n Decorations,\r\n DisclosedTileTreeSet,\r\n DisplayStyle2dState,\r\n DisplayStyle3dState,\r\n DisplayStyleState,\r\n DrawingModelState,\r\n DrawingViewState,\r\n ECSqlSystemProperty,\r\n ECSqlValueType,\r\n EditManipulator,\r\n ElementGeometryOpcode,\r\n ElementLocateManager,\r\n ElementPicker,\r\n ElementState,\r\n EmphasizeElements,\r\n EntityState,\r\n EventController,\r\n EventHandled,\r\n FeatureOverrideType,\r\n FeatureSymbology,\r\n FillDisplay,\r\n FillFlags,\r\n FlashMode,\r\n FlashSettings,\r\n FontType,\r\n FrontendLoggerCategory,\r\n FrustumAnimator,\r\n GeoCoordStatus,\r\n GeometricModel2dState,\r\n GeometricModel3dState,\r\n GeometricModelState,\r\n GeometryClass,\r\n GeometryStreamFlags,\r\n GeometrySummaryVerbosity,\r\n GlobeAnimator,\r\n GlobeMode,\r\n GraphicBranch,\r\n GraphicBuilder,\r\n GraphicType,\r\n GridOrientationType,\r\n HSVConstants,\r\n HiliteSet,\r\n HitDetail,\r\n HitDetailType,\r\n HitGeomType,\r\n HitList,\r\n HitParentGeomType,\r\n HitPriority,\r\n HitSource,\r\n IModelConnection,\r\n IconSprites,\r\n ImageBufferFormat,\r\n ImageSourceFormat,\r\n InputCollector,\r\n InputSource,\r\n InteractiveTool,\r\n IntersectDetail,\r\n KeyinParseError,\r\n LinePixels,\r\n LocateAction,\r\n LocateFilterStatus,\r\n LocateOptions,\r\n LocateResponse,\r\n ManipulatorToolEvent,\r\n MarginPercent,\r\n Marker,\r\n MarkerSet,\r\n MassPropertiesOperation,\r\n MessageBoxIconType,\r\n MessageBoxType,\r\n MessageBoxValue,\r\n ModelSelectorState,\r\n ModelState,\r\n MonochromeMode,\r\n NotificationHandler,\r\n NotificationManager,\r\n NotifyMessageDetails,\r\n Npc,\r\n OrthographicViewState,\r\n OutputMessageAlert,\r\n OutputMessagePriority,\r\n OutputMessageType,\r\n ParseAndRunResult,\r\n PerModelCategoryVisibility,\r\n PhysicalModelState,\r\n Pixel,\r\n PlanarClipMaskMode,\r\n PlanarClipMaskPriority,\r\n PrimitiveTool,\r\n QueryRowFormat,\r\n Rank,\r\n RenderClipVolume,\r\n RenderGraphic,\r\n RenderGraphicOwner,\r\n RenderMode,\r\n RenderSystem,\r\n Scene,\r\n SectionDrawingModelState,\r\n SectionType,\r\n SelectionMethod,\r\n SelectionMode,\r\n SelectionProcessing,\r\n SelectionSet,\r\n SelectionSetEventType,\r\n SheetModelState,\r\n SheetViewState,\r\n SkyBoxImageType,\r\n SnapDetail,\r\n SnapHeat,\r\n SnapMode,\r\n SnapStatus,\r\n SpatialClassifierInsideDisplay,\r\n SpatialClassifierOutsideDisplay,\r\n SpatialLocationModelState,\r\n SpatialModelState,\r\n SpatialViewState,\r\n Sprite,\r\n SpriteLocation,\r\n StandardViewId,\r\n StartOrResume,\r\n SyncMode,\r\n TentativePoint,\r\n TerrainHeightOriginMode,\r\n TextureMapUnits,\r\n ThematicDisplayMode,\r\n ThematicGradientColorScheme,\r\n ThematicGradientMode,\r\n Tile,\r\n TileAdmin,\r\n TileBoundingBoxes,\r\n TileDrawArgs,\r\n TileGraphicType,\r\n TileLoadPriority,\r\n TileLoadStatus,\r\n TileRequest,\r\n TileRequestChannel,\r\n TileRequestChannelStatistics,\r\n TileRequestChannels,\r\n TileTree,\r\n TileTreeLoadStatus,\r\n TileTreeReference,\r\n TileUsageMarker,\r\n TileVisibility,\r\n Tiles,\r\n Tool,\r\n ToolAdmin,\r\n ToolAssistance,\r\n ToolAssistanceImage,\r\n ToolAssistanceInputMethod,\r\n ToolSettings,\r\n TwoWayViewportFrustumSync,\r\n TwoWayViewportSync,\r\n TxnAction,\r\n TypeOfChange,\r\n UniformType,\r\n VaryingType,\r\n ViewClipClearTool,\r\n ViewClipDecorationProvider,\r\n ViewClipTool,\r\n ViewCreator2d,\r\n ViewCreator3d,\r\n ViewManager,\r\n ViewManip,\r\n ViewPose,\r\n ViewRect,\r\n ViewState,\r\n ViewState2d,\r\n ViewState3d,\r\n ViewStatus,\r\n ViewTool,\r\n ViewingSpace,\r\n canvasToImageBuffer,\r\n canvasToResizedCanvasWithBars,\r\n connectViewportFrusta,\r\n connectViewportViews,\r\n connectViewports,\r\n extractImageSourceDimensions,\r\n getCompressedJpegFromCanvas,\r\n getImageSourceFormatForMimeType,\r\n getImageSourceMimeType,\r\n imageBufferToBase64EncodedPng,\r\n imageBufferToCanvas,\r\n imageBufferToPngDataUrl,\r\n imageElementFromImageSource,\r\n imageElementFromUrl,\r\n queryTerrainElevationOffset,\r\n readElementGraphics,\r\n synchronizeViewportFrusta,\r\n synchronizeViewportViews,\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
- * Executes an extension's bundled javascript module.
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 the module does not have a default or main function to execute.
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":"AAIA;;;;;;;GAOG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAiC5D"}
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"}
@@ -3,42 +3,25 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Executes an extension's bundled javascript module.
7
- * First attempts an ES6 dynamic import,
8
- * second attempts a dynamic import via a script element as a fallback.
6
+ * Imports and executes a bundled javascript (esm) module.
9
7
  * Used by remote and service Extensions.
10
- * Throws an error if the module does not have a default or main function to execute.
8
+ * Throws an error if no function is found to execute.
9
+ * Looks for a function in the following order:
10
+ * - the module itself.
11
+ * - the module's main export.
12
+ * - the module's default export.
11
13
  * @internal
12
14
  */
13
15
  export async function loadScript(jsUrl) {
14
- // Warning "Critical dependency: the request of a dependency is an expression"
15
- // until that is resolved, leave code commented:
16
16
  // const module = await import(/* webpackIgnore: true */jsUrl);
17
- // return execute(module);
18
- return new Promise((resolve, reject) => {
19
- const head = document.getElementsByTagName("head")[0];
20
- if (!head)
21
- reject(new Error("No head element found"));
22
- const scriptElement = document.createElement("script");
23
- const tempGlobal = `__tempModuleLoadingVariable${Math.random().toString(32).substring(2)}`;
24
- function cleanup() {
25
- delete window[tempGlobal];
26
- scriptElement.remove();
27
- }
28
- window[tempGlobal] = async function (module) {
29
- await execute(module);
30
- cleanup();
31
- resolve(module);
32
- };
33
- scriptElement.type = "module";
34
- scriptElement.textContent = `import * as m from "${jsUrl}";window.${tempGlobal}(m);`;
35
- scriptElement.onerror = () => {
36
- reject(new Error(`Failed to load extension with URL ${jsUrl}`));
37
- cleanup();
38
- };
39
- head.insertBefore(scriptElement, head.lastChild);
40
- });
17
+ // Webpack gives a warning:
18
+ // "Critical dependency: the request of a dependency is an expression"
19
+ // Because tsc transpiles "await import" to "require" (when compiled to is CommonJS).
20
+ // So use FunctionConstructor to avoid tsc.
21
+ const module = await Function("x", "return import(x)")(jsUrl);
22
+ return execute(module);
41
23
  }
24
+ /** attempts to execute an extension module */
42
25
  function execute(m) {
43
26
  if (typeof m === "function")
44
27
  return m();
@@ -46,6 +29,6 @@ function execute(m) {
46
29
  return m.main();
47
30
  if (m.default && typeof m.default === "function")
48
31
  return m.default();
49
- throw new Error(`Failed to load extension. No default function was found to execute.`);
32
+ throw new Error(`Failed to execute extension. No default function was found to execute.`);
50
33
  }
51
34
  //# sourceMappingURL=ExtensionLo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,CAAC;QACZ,CAAC,CAAC;QAEF,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,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,CAAC,qEAAqE,CAAC,CAAC;AACzF,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 * Executes an extension's bundled javascript module.\r\n * First attempts an ES6 dynamic import,\r\n * second attempts a dynamic import via a script element as a fallback.\r\n * Used by remote and service Extensions.\r\n * Throws an error if the module does not have a default or main function to execute.\r\n * @internal\r\n */\r\nexport async function loadScript(jsUrl: string): Promise<any> {\r\n // Warning \"Critical dependency: the request of a dependency is an expression\"\r\n // until that is resolved, leave code commented:\r\n // const module = await import(/* webpackIgnore: true */jsUrl);\r\n // return execute(module);\r\n return new Promise((resolve, reject) => {\r\n const head = document.getElementsByTagName(\"head\")[0];\r\n if (!head)\r\n reject(new Error(\"No head element found\"));\r\n\r\n const scriptElement = document.createElement(\"script\");\r\n const tempGlobal: string = `__tempModuleLoadingVariable${Math.random().toString(32).substring(2)}`;\r\n\r\n function cleanup() {\r\n delete (window as any)[tempGlobal];\r\n scriptElement.remove();\r\n }\r\n\r\n (window as any)[tempGlobal] = async function (module: any) {\r\n await execute(module);\r\n cleanup();\r\n resolve(module);\r\n };\r\n scriptElement.type = \"module\";\r\n scriptElement.textContent = `import * as m from \"${jsUrl}\";window.${tempGlobal}(m);`;\r\n\r\n scriptElement.onerror = () => {\r\n reject(new Error(`Failed to load extension with URL ${jsUrl}`));\r\n cleanup();\r\n };\r\n\r\n head.insertBefore(scriptElement, head.lastChild);\r\n });\r\n}\r\n\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(`Failed to load extension. No default function was found to execute.`);\r\n}\r\n"]}
1
+ {"version":3,"file":"ExtensionLoadScript.js","sourceRoot":"","sources":["../../../../src/extension/providers/ExtensionLoadScript.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;;;;;;;;GASG;AACH,MAAM,CAAC,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;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"]}