@itwin/core-frontend 3.3.0-dev.4 → 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.
@@ -19,226 +19,233 @@ if (globalThis[globalSymbol])
19
19
  const core_frontend_1 = require("../core-frontend");
20
20
  const core_common_1 = require("@itwin/core-common");
21
21
  const extensionExports = {
22
- ContextRotationId: core_frontend_1.ContextRotationId,
23
- ACSType: core_frontend_1.ACSType,
24
22
  ACSDisplayOptions: core_frontend_1.ACSDisplayOptions,
25
- CoordSystem: core_frontend_1.CoordSystem,
26
- LocateAction: core_frontend_1.LocateAction,
27
- LocateFilterStatus: core_frontend_1.LocateFilterStatus,
28
- SnapStatus: core_frontend_1.SnapStatus,
29
- FlashMode: core_frontend_1.FlashMode,
30
- FrontendLoggerCategory: core_frontend_1.FrontendLoggerCategory,
31
- SnapMode: core_frontend_1.SnapMode,
32
- SnapHeat: core_frontend_1.SnapHeat,
33
- HitSource: core_frontend_1.HitSource,
34
- HitGeomType: core_frontend_1.HitGeomType,
35
- HitParentGeomType: core_frontend_1.HitParentGeomType,
36
- HitPriority: core_frontend_1.HitPriority,
37
- HitDetailType: core_frontend_1.HitDetailType,
38
- OutputMessageType: core_frontend_1.OutputMessageType,
39
- OutputMessagePriority: core_frontend_1.OutputMessagePriority,
40
- OutputMessageAlert: core_frontend_1.OutputMessageAlert,
41
- ActivityMessageEndReason: core_frontend_1.ActivityMessageEndReason,
42
- MessageBoxType: core_frontend_1.MessageBoxType,
43
- MessageBoxIconType: core_frontend_1.MessageBoxIconType,
44
- MessageBoxValue: core_frontend_1.MessageBoxValue,
45
- GraphicType: core_frontend_1.GraphicType,
46
- UniformType: core_frontend_1.UniformType,
47
- VaryingType: core_frontend_1.VaryingType,
48
- SelectionSetEventType: core_frontend_1.SelectionSetEventType,
49
- StandardViewId: core_frontend_1.StandardViewId,
50
- TileLoadStatus: core_frontend_1.TileLoadStatus,
51
- TileVisibility: core_frontend_1.TileVisibility,
52
- TileLoadPriority: core_frontend_1.TileLoadPriority,
53
- TileBoundingBoxes: core_frontend_1.TileBoundingBoxes,
54
- TileTreeLoadStatus: core_frontend_1.TileTreeLoadStatus,
55
- TileGraphicType: core_frontend_1.TileGraphicType,
56
- ClipEventType: core_frontend_1.ClipEventType,
57
- SelectionMethod: core_frontend_1.SelectionMethod,
58
- SelectionMode: core_frontend_1.SelectionMode,
59
- SelectionProcessing: core_frontend_1.SelectionProcessing,
60
- BeButton: core_frontend_1.BeButton,
61
- CoordinateLockOverrides: core_frontend_1.CoordinateLockOverrides,
62
- InputSource: core_frontend_1.InputSource,
63
- CoordSource: core_frontend_1.CoordSource,
64
- BeModifierKeys: core_frontend_1.BeModifierKeys,
65
- EventHandled: core_frontend_1.EventHandled,
66
- ParseAndRunResult: core_frontend_1.ParseAndRunResult,
67
- KeyinParseError: core_frontend_1.KeyinParseError,
68
- StartOrResume: core_frontend_1.StartOrResume,
69
- ManipulatorToolEvent: core_frontend_1.ManipulatorToolEvent,
70
- ToolAssistanceImage: core_frontend_1.ToolAssistanceImage,
71
- ToolAssistanceInputMethod: core_frontend_1.ToolAssistanceInputMethod,
72
- ViewStatus: core_frontend_1.ViewStatus,
23
+ ACSType: core_frontend_1.ACSType,
73
24
  AccuDrawHintBuilder: core_frontend_1.AccuDrawHintBuilder,
74
25
  AccuSnap: core_frontend_1.AccuSnap,
75
- AuxCoordSystemState: core_frontend_1.AuxCoordSystemState,
26
+ ActivityMessageDetails: core_frontend_1.ActivityMessageDetails,
27
+ ActivityMessageEndReason: core_frontend_1.ActivityMessageEndReason,
76
28
  AuxCoordSystem2dState: core_frontend_1.AuxCoordSystem2dState,
77
29
  AuxCoordSystem3dState: core_frontend_1.AuxCoordSystem3dState,
78
30
  AuxCoordSystemSpatialState: core_frontend_1.AuxCoordSystemSpatialState,
31
+ AuxCoordSystemState: core_frontend_1.AuxCoordSystemState,
32
+ BackgroundFill: core_common_1.BackgroundFill,
33
+ BackgroundMapType: core_common_1.BackgroundMapType,
34
+ BatchType: core_common_1.BatchType,
35
+ BeButton: core_frontend_1.BeButton,
36
+ BeButtonEvent: core_frontend_1.BeButtonEvent,
37
+ BeButtonState: core_frontend_1.BeButtonState,
38
+ BeModifierKeys: core_frontend_1.BeModifierKeys,
39
+ BeTouchEvent: core_frontend_1.BeTouchEvent,
40
+ BeWheelEvent: core_frontend_1.BeWheelEvent,
41
+ BingElevationProvider: core_frontend_1.BingElevationProvider,
79
42
  BingLocationProvider: core_frontend_1.BingLocationProvider,
43
+ BisCodeSpec: core_common_1.BisCodeSpec,
44
+ BriefcaseIdValue: core_common_1.BriefcaseIdValue,
80
45
  CategorySelectorState: core_frontend_1.CategorySelectorState,
81
46
  ChangeFlags: core_frontend_1.ChangeFlags,
47
+ ChangeOpCode: core_common_1.ChangeOpCode,
48
+ ChangedValueState: core_common_1.ChangedValueState,
49
+ ChangesetType: core_common_1.ChangesetType,
50
+ ClipEventType: core_frontend_1.ClipEventType,
51
+ Cluster: core_frontend_1.Cluster,
52
+ ColorByName: core_common_1.ColorByName,
53
+ ColorDef: core_common_1.ColorDef,
54
+ CommonLoggerCategory: core_common_1.CommonLoggerCategory,
82
55
  ContextRealityModelState: core_frontend_1.ContextRealityModelState,
83
- DisplayStyleState: core_frontend_1.DisplayStyleState,
56
+ ContextRotationId: core_frontend_1.ContextRotationId,
57
+ CoordSource: core_frontend_1.CoordSource,
58
+ CoordSystem: core_frontend_1.CoordSystem,
59
+ CoordinateLockOverrides: core_frontend_1.CoordinateLockOverrides,
60
+ Decorations: core_frontend_1.Decorations,
61
+ DisclosedTileTreeSet: core_frontend_1.DisclosedTileTreeSet,
84
62
  DisplayStyle2dState: core_frontend_1.DisplayStyle2dState,
85
63
  DisplayStyle3dState: core_frontend_1.DisplayStyle3dState,
64
+ DisplayStyleState: core_frontend_1.DisplayStyleState,
65
+ DrawingModelState: core_frontend_1.DrawingModelState,
86
66
  DrawingViewState: core_frontend_1.DrawingViewState,
87
- LocateOptions: core_frontend_1.LocateOptions,
88
- LocateResponse: core_frontend_1.LocateResponse,
89
- ElementPicker: core_frontend_1.ElementPicker,
67
+ ECSqlSystemProperty: core_common_1.ECSqlSystemProperty,
68
+ ECSqlValueType: core_common_1.ECSqlValueType,
69
+ EditManipulator: core_frontend_1.EditManipulator,
70
+ ElementGeometryOpcode: core_common_1.ElementGeometryOpcode,
90
71
  ElementLocateManager: core_frontend_1.ElementLocateManager,
72
+ ElementPicker: core_frontend_1.ElementPicker,
73
+ ElementState: core_frontend_1.ElementState,
91
74
  EmphasizeElements: core_frontend_1.EmphasizeElements,
92
75
  EntityState: core_frontend_1.EntityState,
93
- ElementState: core_frontend_1.ElementState,
76
+ EventController: core_frontend_1.EventController,
77
+ EventHandled: core_frontend_1.EventHandled,
78
+ FeatureOverrideType: core_common_1.FeatureOverrideType,
79
+ FeatureSymbology: core_frontend_1.FeatureSymbology,
80
+ FillDisplay: core_common_1.FillDisplay,
81
+ FillFlags: core_common_1.FillFlags,
82
+ FlashMode: core_frontend_1.FlashMode,
94
83
  FlashSettings: core_frontend_1.FlashSettings,
84
+ FontType: core_common_1.FontType,
85
+ FrontendLoggerCategory: core_frontend_1.FrontendLoggerCategory,
95
86
  FrustumAnimator: core_frontend_1.FrustumAnimator,
87
+ GeoCoordStatus: core_common_1.GeoCoordStatus,
88
+ GeometricModel2dState: core_frontend_1.GeometricModel2dState,
89
+ GeometricModel3dState: core_frontend_1.GeometricModel3dState,
90
+ GeometricModelState: core_frontend_1.GeometricModelState,
91
+ GeometryClass: core_common_1.GeometryClass,
92
+ GeometryStreamFlags: core_common_1.GeometryStreamFlags,
93
+ GeometrySummaryVerbosity: core_common_1.GeometrySummaryVerbosity,
96
94
  GlobeAnimator: core_frontend_1.GlobeAnimator,
95
+ GlobeMode: core_common_1.GlobeMode,
96
+ GraphicBranch: core_frontend_1.GraphicBranch,
97
+ GraphicBuilder: core_frontend_1.GraphicBuilder,
98
+ GraphicType: core_frontend_1.GraphicType,
99
+ GridOrientationType: core_common_1.GridOrientationType,
100
+ HSVConstants: core_common_1.HSVConstants,
101
+ HiliteSet: core_frontend_1.HiliteSet,
97
102
  HitDetail: core_frontend_1.HitDetail,
98
- SnapDetail: core_frontend_1.SnapDetail,
99
- IntersectDetail: core_frontend_1.IntersectDetail,
103
+ HitDetailType: core_frontend_1.HitDetailType,
104
+ HitGeomType: core_frontend_1.HitGeomType,
100
105
  HitList: core_frontend_1.HitList,
101
- canvasToResizedCanvasWithBars: core_frontend_1.canvasToResizedCanvasWithBars,
102
- imageBufferToCanvas: core_frontend_1.imageBufferToCanvas,
103
- canvasToImageBuffer: core_frontend_1.canvasToImageBuffer,
104
- getImageSourceMimeType: core_frontend_1.getImageSourceMimeType,
105
- getImageSourceFormatForMimeType: core_frontend_1.getImageSourceFormatForMimeType,
106
- imageElementFromImageSource: core_frontend_1.imageElementFromImageSource,
107
- imageElementFromUrl: core_frontend_1.imageElementFromUrl,
108
- extractImageSourceDimensions: core_frontend_1.extractImageSourceDimensions,
109
- imageBufferToPngDataUrl: core_frontend_1.imageBufferToPngDataUrl,
110
- imageBufferToBase64EncodedPng: core_frontend_1.imageBufferToBase64EncodedPng,
111
- getCompressedJpegFromCanvas: core_frontend_1.getCompressedJpegFromCanvas,
106
+ HitParentGeomType: core_frontend_1.HitParentGeomType,
107
+ HitPriority: core_frontend_1.HitPriority,
108
+ HitSource: core_frontend_1.HitSource,
112
109
  IModelConnection: core_frontend_1.IModelConnection,
113
- NotificationHandler: core_frontend_1.NotificationHandler,
110
+ IconSprites: core_frontend_1.IconSprites,
111
+ ImageBufferFormat: core_common_1.ImageBufferFormat,
112
+ ImageSourceFormat: core_common_1.ImageSourceFormat,
113
+ InputCollector: core_frontend_1.InputCollector,
114
+ InputSource: core_frontend_1.InputSource,
115
+ InteractiveTool: core_frontend_1.InteractiveTool,
116
+ IntersectDetail: core_frontend_1.IntersectDetail,
117
+ KeyinParseError: core_frontend_1.KeyinParseError,
118
+ LinePixels: core_common_1.LinePixels,
119
+ LocateAction: core_frontend_1.LocateAction,
120
+ LocateFilterStatus: core_frontend_1.LocateFilterStatus,
121
+ LocateOptions: core_frontend_1.LocateOptions,
122
+ LocateResponse: core_frontend_1.LocateResponse,
123
+ ManipulatorToolEvent: core_frontend_1.ManipulatorToolEvent,
114
124
  MarginPercent: core_frontend_1.MarginPercent,
115
125
  Marker: core_frontend_1.Marker,
116
- Cluster: core_frontend_1.Cluster,
117
126
  MarkerSet: core_frontend_1.MarkerSet,
127
+ MassPropertiesOperation: core_common_1.MassPropertiesOperation,
128
+ MessageBoxIconType: core_frontend_1.MessageBoxIconType,
129
+ MessageBoxType: core_frontend_1.MessageBoxType,
130
+ MessageBoxValue: core_frontend_1.MessageBoxValue,
118
131
  ModelSelectorState: core_frontend_1.ModelSelectorState,
119
132
  ModelState: core_frontend_1.ModelState,
120
- GeometricModelState: core_frontend_1.GeometricModelState,
121
- GeometricModel2dState: core_frontend_1.GeometricModel2dState,
122
- GeometricModel3dState: core_frontend_1.GeometricModel3dState,
123
- SheetModelState: core_frontend_1.SheetModelState,
124
- SpatialModelState: core_frontend_1.SpatialModelState,
125
- PhysicalModelState: core_frontend_1.PhysicalModelState,
126
- SpatialLocationModelState: core_frontend_1.SpatialLocationModelState,
127
- DrawingModelState: core_frontend_1.DrawingModelState,
128
- SectionDrawingModelState: core_frontend_1.SectionDrawingModelState,
129
- NotifyMessageDetails: core_frontend_1.NotifyMessageDetails,
130
- ActivityMessageDetails: core_frontend_1.ActivityMessageDetails,
133
+ MonochromeMode: core_common_1.MonochromeMode,
134
+ NotificationHandler: core_frontend_1.NotificationHandler,
131
135
  NotificationManager: core_frontend_1.NotificationManager,
136
+ NotifyMessageDetails: core_frontend_1.NotifyMessageDetails,
137
+ Npc: core_common_1.Npc,
138
+ OrthographicViewState: core_frontend_1.OrthographicViewState,
139
+ OutputMessageAlert: core_frontend_1.OutputMessageAlert,
140
+ OutputMessagePriority: core_frontend_1.OutputMessagePriority,
141
+ OutputMessageType: core_frontend_1.OutputMessageType,
142
+ ParseAndRunResult: core_frontend_1.ParseAndRunResult,
132
143
  PerModelCategoryVisibility: core_frontend_1.PerModelCategoryVisibility,
133
- Decorations: core_frontend_1.Decorations,
134
- FeatureSymbology: core_frontend_1.FeatureSymbology,
135
- GraphicBranch: core_frontend_1.GraphicBranch,
136
- GraphicBuilder: core_frontend_1.GraphicBuilder,
144
+ PhysicalModelState: core_frontend_1.PhysicalModelState,
137
145
  Pixel: core_frontend_1.Pixel,
146
+ PlanarClipMaskMode: core_common_1.PlanarClipMaskMode,
147
+ PlanarClipMaskPriority: core_common_1.PlanarClipMaskPriority,
148
+ PrimitiveTool: core_frontend_1.PrimitiveTool,
149
+ QueryRowFormat: core_common_1.QueryRowFormat,
150
+ Rank: core_common_1.Rank,
138
151
  RenderClipVolume: core_frontend_1.RenderClipVolume,
139
152
  RenderGraphic: core_frontend_1.RenderGraphic,
140
153
  RenderGraphicOwner: core_frontend_1.RenderGraphicOwner,
154
+ RenderMode: core_common_1.RenderMode,
141
155
  RenderSystem: core_frontend_1.RenderSystem,
142
156
  Scene: core_frontend_1.Scene,
143
- HiliteSet: core_frontend_1.HiliteSet,
157
+ SectionDrawingModelState: core_frontend_1.SectionDrawingModelState,
158
+ SectionType: core_common_1.SectionType,
159
+ SelectionMethod: core_frontend_1.SelectionMethod,
160
+ SelectionMode: core_frontend_1.SelectionMode,
161
+ SelectionProcessing: core_frontend_1.SelectionProcessing,
144
162
  SelectionSet: core_frontend_1.SelectionSet,
163
+ SelectionSetEventType: core_frontend_1.SelectionSetEventType,
164
+ SheetModelState: core_frontend_1.SheetModelState,
145
165
  SheetViewState: core_frontend_1.SheetViewState,
166
+ SkyBoxImageType: core_common_1.SkyBoxImageType,
167
+ SnapDetail: core_frontend_1.SnapDetail,
168
+ SnapHeat: core_frontend_1.SnapHeat,
169
+ SnapMode: core_frontend_1.SnapMode,
170
+ SnapStatus: core_frontend_1.SnapStatus,
171
+ SpatialClassifierInsideDisplay: core_common_1.SpatialClassifierInsideDisplay,
172
+ SpatialClassifierOutsideDisplay: core_common_1.SpatialClassifierOutsideDisplay,
173
+ SpatialLocationModelState: core_frontend_1.SpatialLocationModelState,
174
+ SpatialModelState: core_frontend_1.SpatialModelState,
146
175
  SpatialViewState: core_frontend_1.SpatialViewState,
147
- OrthographicViewState: core_frontend_1.OrthographicViewState,
148
176
  Sprite: core_frontend_1.Sprite,
149
- IconSprites: core_frontend_1.IconSprites,
150
177
  SpriteLocation: core_frontend_1.SpriteLocation,
178
+ StandardViewId: core_frontend_1.StandardViewId,
179
+ StartOrResume: core_frontend_1.StartOrResume,
180
+ SyncMode: core_common_1.SyncMode,
151
181
  TentativePoint: core_frontend_1.TentativePoint,
152
- DisclosedTileTreeSet: core_frontend_1.DisclosedTileTreeSet,
153
- readElementGraphics: core_frontend_1.readElementGraphics,
154
- BingElevationProvider: core_frontend_1.BingElevationProvider,
182
+ TerrainHeightOriginMode: core_common_1.TerrainHeightOriginMode,
183
+ TextureMapUnits: core_common_1.TextureMapUnits,
184
+ ThematicDisplayMode: core_common_1.ThematicDisplayMode,
185
+ ThematicGradientColorScheme: core_common_1.ThematicGradientColorScheme,
186
+ ThematicGradientMode: core_common_1.ThematicGradientMode,
155
187
  Tile: core_frontend_1.Tile,
156
188
  TileAdmin: core_frontend_1.TileAdmin,
189
+ TileBoundingBoxes: core_frontend_1.TileBoundingBoxes,
157
190
  TileDrawArgs: core_frontend_1.TileDrawArgs,
191
+ TileGraphicType: core_frontend_1.TileGraphicType,
192
+ TileLoadPriority: core_frontend_1.TileLoadPriority,
193
+ TileLoadStatus: core_frontend_1.TileLoadStatus,
158
194
  TileRequest: core_frontend_1.TileRequest,
159
- TileRequestChannelStatistics: core_frontend_1.TileRequestChannelStatistics,
160
195
  TileRequestChannel: core_frontend_1.TileRequestChannel,
196
+ TileRequestChannelStatistics: core_frontend_1.TileRequestChannelStatistics,
161
197
  TileRequestChannels: core_frontend_1.TileRequestChannels,
162
198
  TileTree: core_frontend_1.TileTree,
199
+ TileTreeLoadStatus: core_frontend_1.TileTreeLoadStatus,
163
200
  TileTreeReference: core_frontend_1.TileTreeReference,
164
201
  TileUsageMarker: core_frontend_1.TileUsageMarker,
202
+ TileVisibility: core_frontend_1.TileVisibility,
165
203
  Tiles: core_frontend_1.Tiles,
166
- ViewClipTool: core_frontend_1.ViewClipTool,
167
- ViewClipClearTool: core_frontend_1.ViewClipClearTool,
168
- ViewClipDecorationProvider: core_frontend_1.ViewClipDecorationProvider,
169
- EditManipulator: core_frontend_1.EditManipulator,
170
- EventController: core_frontend_1.EventController,
171
- PrimitiveTool: core_frontend_1.PrimitiveTool,
172
- BeButtonState: core_frontend_1.BeButtonState,
173
- BeButtonEvent: core_frontend_1.BeButtonEvent,
174
- BeTouchEvent: core_frontend_1.BeTouchEvent,
175
- BeWheelEvent: core_frontend_1.BeWheelEvent,
176
204
  Tool: core_frontend_1.Tool,
177
- InteractiveTool: core_frontend_1.InteractiveTool,
178
- InputCollector: core_frontend_1.InputCollector,
179
205
  ToolAdmin: core_frontend_1.ToolAdmin,
180
206
  ToolAssistance: core_frontend_1.ToolAssistance,
207
+ ToolAssistanceImage: core_frontend_1.ToolAssistanceImage,
208
+ ToolAssistanceInputMethod: core_frontend_1.ToolAssistanceInputMethod,
181
209
  ToolSettings: core_frontend_1.ToolSettings,
182
- ViewTool: core_frontend_1.ViewTool,
183
- ViewManip: core_frontend_1.ViewManip,
210
+ TwoWayViewportFrustumSync: core_frontend_1.TwoWayViewportFrustumSync,
211
+ TwoWayViewportSync: core_frontend_1.TwoWayViewportSync,
212
+ TxnAction: core_common_1.TxnAction,
213
+ TypeOfChange: core_common_1.TypeOfChange,
214
+ UniformType: core_frontend_1.UniformType,
215
+ VaryingType: core_frontend_1.VaryingType,
216
+ ViewClipClearTool: core_frontend_1.ViewClipClearTool,
217
+ ViewClipDecorationProvider: core_frontend_1.ViewClipDecorationProvider,
218
+ ViewClipTool: core_frontend_1.ViewClipTool,
184
219
  ViewCreator2d: core_frontend_1.ViewCreator2d,
185
220
  ViewCreator3d: core_frontend_1.ViewCreator3d,
186
- queryTerrainElevationOffset: core_frontend_1.queryTerrainElevationOffset,
187
- ViewingSpace: core_frontend_1.ViewingSpace,
188
221
  ViewManager: core_frontend_1.ViewManager,
222
+ ViewManip: core_frontend_1.ViewManip,
189
223
  ViewPose: core_frontend_1.ViewPose,
190
224
  ViewRect: core_frontend_1.ViewRect,
191
225
  ViewState: core_frontend_1.ViewState,
192
- ViewState3d: core_frontend_1.ViewState3d,
193
226
  ViewState2d: core_frontend_1.ViewState2d,
194
- BackgroundMapType: core_common_1.BackgroundMapType,
195
- GlobeMode: core_common_1.GlobeMode,
196
- BriefcaseIdValue: core_common_1.BriefcaseIdValue,
197
- SyncMode: core_common_1.SyncMode,
198
- TypeOfChange: core_common_1.TypeOfChange,
199
- ChangesetType: core_common_1.ChangesetType,
200
- BisCodeSpec: core_common_1.BisCodeSpec,
201
- CommonLoggerCategory: core_common_1.CommonLoggerCategory,
202
- QueryRowFormat: core_common_1.QueryRowFormat,
203
- MonochromeMode: core_common_1.MonochromeMode,
204
- ECSqlValueType: core_common_1.ECSqlValueType,
205
- ChangeOpCode: core_common_1.ChangeOpCode,
206
- ChangedValueState: core_common_1.ChangedValueState,
207
- ECSqlSystemProperty: core_common_1.ECSqlSystemProperty,
208
- SectionType: core_common_1.SectionType,
209
- Rank: core_common_1.Rank,
210
- FeatureOverrideType: core_common_1.FeatureOverrideType,
211
- BatchType: core_common_1.BatchType,
212
- FontType: core_common_1.FontType,
213
- Npc: core_common_1.Npc,
214
- GeoCoordStatus: core_common_1.GeoCoordStatus,
215
- ElementGeometryOpcode: core_common_1.ElementGeometryOpcode,
216
- GeometryStreamFlags: core_common_1.GeometryStreamFlags,
217
- FillDisplay: core_common_1.FillDisplay,
218
- BackgroundFill: core_common_1.BackgroundFill,
219
- GeometryClass: core_common_1.GeometryClass,
220
- GeometrySummaryVerbosity: core_common_1.GeometrySummaryVerbosity,
221
- FillFlags: core_common_1.FillFlags,
222
- HSVConstants: core_common_1.HSVConstants,
223
- ImageBufferFormat: core_common_1.ImageBufferFormat,
224
- ImageSourceFormat: core_common_1.ImageSourceFormat,
225
- LinePixels: core_common_1.LinePixels,
226
- MassPropertiesOperation: core_common_1.MassPropertiesOperation,
227
- TextureMapUnits: core_common_1.TextureMapUnits,
228
- PlanarClipMaskMode: core_common_1.PlanarClipMaskMode,
229
- PlanarClipMaskPriority: core_common_1.PlanarClipMaskPriority,
230
- SkyBoxImageType: core_common_1.SkyBoxImageType,
231
- SpatialClassifierInsideDisplay: core_common_1.SpatialClassifierInsideDisplay,
232
- SpatialClassifierOutsideDisplay: core_common_1.SpatialClassifierOutsideDisplay,
233
- TerrainHeightOriginMode: core_common_1.TerrainHeightOriginMode,
234
- ThematicGradientMode: core_common_1.ThematicGradientMode,
235
- ThematicGradientColorScheme: core_common_1.ThematicGradientColorScheme,
236
- ThematicDisplayMode: core_common_1.ThematicDisplayMode,
237
- TxnAction: core_common_1.TxnAction,
238
- GridOrientationType: core_common_1.GridOrientationType,
239
- RenderMode: core_common_1.RenderMode,
240
- ColorByName: core_common_1.ColorByName,
241
- ColorDef: core_common_1.ColorDef,
227
+ ViewState3d: core_frontend_1.ViewState3d,
228
+ ViewStatus: core_frontend_1.ViewStatus,
229
+ ViewTool: core_frontend_1.ViewTool,
230
+ ViewingSpace: core_frontend_1.ViewingSpace,
231
+ canvasToImageBuffer: core_frontend_1.canvasToImageBuffer,
232
+ canvasToResizedCanvasWithBars: core_frontend_1.canvasToResizedCanvasWithBars,
233
+ connectViewportFrusta: core_frontend_1.connectViewportFrusta,
234
+ connectViewportViews: core_frontend_1.connectViewportViews,
235
+ connectViewports: core_frontend_1.connectViewports,
236
+ extractImageSourceDimensions: core_frontend_1.extractImageSourceDimensions,
237
+ getCompressedJpegFromCanvas: core_frontend_1.getCompressedJpegFromCanvas,
238
+ getImageSourceFormatForMimeType: core_frontend_1.getImageSourceFormatForMimeType,
239
+ getImageSourceMimeType: core_frontend_1.getImageSourceMimeType,
240
+ imageBufferToBase64EncodedPng: core_frontend_1.imageBufferToBase64EncodedPng,
241
+ imageBufferToCanvas: core_frontend_1.imageBufferToCanvas,
242
+ imageBufferToPngDataUrl: core_frontend_1.imageBufferToPngDataUrl,
243
+ imageElementFromImageSource: core_frontend_1.imageElementFromImageSource,
244
+ imageElementFromUrl: core_frontend_1.imageElementFromUrl,
245
+ queryTerrainElevationOffset: core_frontend_1.queryTerrainElevationOffset,
246
+ readElementGraphics: core_frontend_1.readElementGraphics,
247
+ synchronizeViewportFrusta: core_frontend_1.synchronizeViewportFrusta,
248
+ synchronizeViewportViews: core_frontend_1.synchronizeViewportViews,
242
249
  };
243
250
  // END GENERATED CODE
244
251
  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,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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,WAAW,EAAX,yBAAW;IACX,cAAc,EAAd,4BAAc;IACd,aAAa,EAAb,2BAAa;IACb,wBAAwB,EAAxB,sCAAwB;IACxB,SAAS,EAAT,uBAAS;IACT,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;;;+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CAA+B;IAC/B,sBAAsB,EAAtB,sCAAsB;IACtB,6BAA6B,EAA7B,6CAA6B;IAC7B,mBAAmB,EAAnB,mCAAmB;IACnB,uBAAuB,EAAvB,uCAAuB;IACvB,2BAA2B,EAA3B,2CAA2B;IAC3B,mBAAmB,EAAnB,mCAAmB;IACnB,2BAA2B,EAA3B,2CAA2B;IAC3B,mBAAmB,EAAnB,mCAAmB;IACnB,yBAAyB,EAAzB,yCAAyB;IACzB,wBAAwB,EAAxB,wCAAwB;CACzB,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 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 +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;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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"}
@@ -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
- const result = await thisHit.iModel.requestSnap(requestProps);
596
- if (out)
597
- out.snapStatus = result.status;
598
- if (result.status !== SnapStatus.Success)
599
- return undefined;
600
- const parseCurve = (json) => {
601
- const parsed = undefined !== json ? GeomJson.Reader.parse(json) : undefined;
602
- return parsed instanceof GeometryQuery && "curvePrimitive" === parsed.geometryCategory ? parsed : undefined;
603
- };
604
- // If this hit is from a plan projection model, apply the model's elevation to the snap point for display.
605
- // Likewise, if it is a hit on a model with a display transform, apply the model's transform to the snap point.
606
- let snapPoint = result.snapPoint;
607
- const elevation = undefined !== thisHit.modelId ? thisHit.viewport.view.getModelElevation(thisHit.modelId) : 0;
608
- if (0 !== elevation || undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
609
- const adjustedSnapPoint = Point3d.fromJSON(snapPoint);
610
- thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, adjustedSnapPoint, false);
611
- adjustedSnapPoint.z += elevation;
612
- snapPoint = adjustedSnapPoint;
613
- }
614
- const snap = new SnapDetail(thisHit, result.snapMode, result.heat, snapPoint);
615
- // Apply model's elevation and display transform to curve for display.
616
- let transform;
617
- if (undefined !== thisHit.modelId && undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
618
- transform = thisHit.viewport.view.getModelDisplayTransform(thisHit.modelId, Transform.createIdentity());
619
- if (0 !== elevation)
620
- transform.origin.set(0, 0, elevation);
621
- }
622
- else if (0 !== elevation) {
623
- transform = Transform.createTranslationXYZ(0, 0, elevation);
624
- }
625
- snap.setCurvePrimitive(parseCurve(result.curve), transform, result.geomType);
626
- if (undefined !== result.parentGeomType)
627
- snap.parentGeomType = result.parentGeomType;
628
- if (undefined !== result.hitPoint) {
629
- snap.hitPoint.setFromJSON(result.hitPoint); // Update hitPoint from readPixels with exact point location corrected to surface/edge geometry...
630
- thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, snap.hitPoint, false);
631
- }
632
- if (undefined !== result.normal) {
633
- snap.normal = Vector3d.fromJSON(result.normal);
634
- thisHit.viewport.view.transformNormalByModelDisplayTransform(thisHit.modelId, snap.normal);
635
- }
636
- if (SnapMode.Intersection !== snap.snapMode)
637
- return snap;
638
- if (undefined === result.intersectId)
639
- return undefined;
640
- const otherPrimitive = parseCurve(result.intersectCurve);
641
- if (undefined === otherPrimitive)
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
- const intersect = new IntersectDetail(snap, snap.heat, snap.snapPoint, otherPrimitive, result.intersectId);
644
- return intersect;
651
+ }
645
652
  }
646
653
  async getAccuSnapDetail(hitList, out) {
647
654
  const thisHit = hitList.getNextHit();