@itwin/core-extension 3.2.0-dev.8 → 3.3.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,26 @@
1
+ # Change Log - @itwin/core-extension
2
+
3
+ This log was last generated on Fri, 15 Apr 2022 13:49:25 GMT and should not be manually modified.
4
+
5
+ ## 3.1.3
6
+ Fri, 15 Apr 2022 13:49:25 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.1.2
11
+ Wed, 06 Apr 2022 22:27:56 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 3.1.1
16
+ Thu, 31 Mar 2022 15:55:48 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 3.1.0
21
+ Tue, 29 Mar 2022 20:53:47 GMT
22
+
23
+ ### Updates
24
+
25
+ - Switched to more flexible extension api
26
+
package/index.d.ts CHANGED
@@ -3,51 +3,583 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
 
6
- // Export all types here.
7
- export * from "./common_types";
8
- export * from "./frontend_types";
6
+ // manually curated section
7
+ export function registerTool(t: typeof import("@itwin/core-frontend").Tool): Promise<void>
8
+ // these types are needed for ExtensionHost
9
+ import type {
10
+ ToolAdmin,
11
+ NotificationManager,
12
+ ViewManager,
13
+ ElementLocateManager,
14
+ AccuSnap,
15
+ RenderSystem
16
+ } from "@itwin/core-frontend";
17
+ // ExtensionHost must always be in the API
18
+ export declare class ExtensionHost {
19
+ public static get toolAdmin(): ToolAdmin;
20
+ public static get notifications(): NotificationManager;
21
+ public static get viewManager(): ViewManager;
22
+ public static get locateManager(): ElementLocateManager;
23
+ public static get accuSnap(): AccuSnap;
24
+ public static get renderSystem(): RenderSystem;
25
+ }
9
26
 
10
- // Export all real values here.
27
+ // BEGIN GENERATED CODE
11
28
  export {
12
- InteractiveTool,
13
- PrimitiveTool,
14
- ViewTool,
15
- Tool,
16
- ToolAssistance,
17
- BeButtonEvent,
18
- ViewRect,
19
- Pixel,
20
- LocateResponse,
21
- EditManipulator,
22
- AccuDrawHintBuilder,
23
- EmphasizeElements,
24
- FeatureSymbology,
25
- GraphicBranch,
26
- NotifyMessageDetails,
27
- ExtensionHost,
28
- BingElevationProvider,
29
- BingLocationProvider,
30
- InputCollector,
31
- FrustumAnimator,
32
- GlobeAnimator,
33
- MarginPercent,
34
- Marker,
35
- Cluster,
36
- getCompressedJpegFromCanvas,
37
- getImageSourceFormatForMimeType,
38
- getImageSourceMimeType,
39
- imageBufferToBase64EncodedPng,
40
- imageBufferToCanvas,
41
- imageBufferToPngDataUrl,
42
- imageElementFromImageSource,
43
- imageElementFromUrl,
44
- queryTerrainElevationOffset,
45
- readElementGraphics,
46
- canvasToImageBuffer,
47
- canvasToResizedCanvasWithBars,
48
- extractImageSourceDimensions,
29
+ ContextRotationId,
30
+ ACSType,
31
+ ACSDisplayOptions,
32
+ CoordSystem,
33
+ LocateAction,
34
+ LocateFilterStatus,
35
+ SnapStatus,
36
+ FlashMode,
37
+ FrontendLoggerCategory,
38
+ SnapMode,
39
+ SnapHeat,
40
+ HitSource,
41
+ HitGeomType,
42
+ HitParentGeomType,
43
+ HitPriority,
44
+ HitDetailType,
45
+ OutputMessageType,
46
+ OutputMessagePriority,
47
+ OutputMessageAlert,
48
+ ActivityMessageEndReason,
49
+ MessageBoxType,
50
+ MessageBoxIconType,
51
+ MessageBoxValue,
52
+ GraphicType,
53
+ UniformType,
54
+ VaryingType,
55
+ SelectionSetEventType,
56
+ StandardViewId,
57
+ TileLoadStatus,
58
+ TileVisibility,
59
+ TileLoadPriority,
60
+ TileBoundingBoxes,
61
+ TileTreeLoadStatus,
62
+ TileGraphicType,
63
+ ClipEventType,
64
+ SelectionMethod,
65
+ SelectionMode,
66
+ SelectionProcessing,
67
+ BeButton,
68
+ CoordinateLockOverrides,
69
+ InputSource,
70
+ CoordSource,
71
+ BeModifierKeys,
72
+ EventHandled,
73
+ ParseAndRunResult,
74
+ KeyinParseError,
75
+ StartOrResume,
76
+ ManipulatorToolEvent,
77
+ ToolAssistanceImage,
78
+ ToolAssistanceInputMethod,
79
+ ViewStatus,
80
+ AccuDrawHintBuilder,
81
+ AccuSnap,
82
+ AuxCoordSystemState,
83
+ AuxCoordSystem2dState,
84
+ AuxCoordSystem3dState,
85
+ AuxCoordSystemSpatialState,
86
+ BingLocationProvider,
87
+ CategorySelectorState,
88
+ ChangeFlags,
89
+ ContextRealityModelState,
90
+ DisplayStyleState,
91
+ DisplayStyle2dState,
92
+ DisplayStyle3dState,
93
+ DrawingViewState,
94
+ LocateOptions,
95
+ LocateResponse,
96
+ ElementPicker,
97
+ ElementLocateManager,
98
+ EmphasizeElements,
99
+ EntityState,
100
+ ElementState,
101
+ FlashSettings,
102
+ FrustumAnimator,
103
+ GlobeAnimator,
104
+ HitDetail,
105
+ SnapDetail,
106
+ IntersectDetail,
107
+ HitList,
108
+ canvasToResizedCanvasWithBars,
109
+ imageBufferToCanvas,
110
+ canvasToImageBuffer,
111
+ getImageSourceMimeType,
112
+ getImageSourceFormatForMimeType,
113
+ imageElementFromImageSource,
114
+ imageElementFromUrl,
115
+ extractImageSourceDimensions,
116
+ imageBufferToPngDataUrl,
117
+ imageBufferToBase64EncodedPng,
118
+ getCompressedJpegFromCanvas,
119
+ IModelConnection,
120
+ NotificationHandler,
121
+ MarginPercent,
122
+ Marker,
123
+ Cluster,
124
+ MarkerSet,
125
+ ModelSelectorState,
126
+ ModelState,
127
+ GeometricModelState,
128
+ GeometricModel2dState,
129
+ GeometricModel3dState,
130
+ SheetModelState,
131
+ SpatialModelState,
132
+ PhysicalModelState,
133
+ SpatialLocationModelState,
134
+ DrawingModelState,
135
+ SectionDrawingModelState,
136
+ NotifyMessageDetails,
137
+ ActivityMessageDetails,
138
+ NotificationManager,
139
+ PerModelCategoryVisibility,
140
+ Decorations,
141
+ FeatureSymbology,
142
+ GraphicBranch,
143
+ GraphicBuilder,
144
+ Pixel,
145
+ RenderClipVolume,
146
+ RenderGraphic,
147
+ RenderGraphicOwner,
148
+ RenderSystem,
149
+ Scene,
150
+ HiliteSet,
151
+ SelectionSet,
152
+ SheetViewState,
153
+ SpatialViewState,
154
+ OrthographicViewState,
155
+ Sprite,
156
+ IconSprites,
157
+ SpriteLocation,
158
+ TentativePoint,
159
+ DisclosedTileTreeSet,
160
+ readElementGraphics,
161
+ BingElevationProvider,
162
+ Tile,
163
+ TileAdmin,
164
+ TileDrawArgs,
165
+ TileRequest,
166
+ TileRequestChannelStatistics,
167
+ TileRequestChannel,
168
+ TileRequestChannels,
169
+ TileTree,
170
+ TileTreeReference,
171
+ TileUsageMarker,
172
+ Tiles,
173
+ ViewClipTool,
174
+ ViewClipClearTool,
175
+ ViewClipDecorationProvider,
176
+ EditManipulator,
177
+ EventController,
178
+ PrimitiveTool,
179
+ BeButtonState,
180
+ BeButtonEvent,
181
+ BeTouchEvent,
182
+ BeWheelEvent,
183
+ Tool,
184
+ InteractiveTool,
185
+ InputCollector,
186
+ ToolAdmin,
187
+ ToolAssistance,
188
+ ToolSettings,
189
+ ViewTool,
190
+ ViewManip,
191
+ ViewCreator2d,
192
+ ViewCreator3d,
193
+ queryTerrainElevationOffset,
194
+ ViewingSpace,
195
+ ViewManager,
196
+ ViewPose,
197
+ ViewRect,
198
+ ViewState,
199
+ ViewState3d,
200
+ ViewState2d,
49
201
  } from "@itwin/core-frontend";
50
202
 
51
- export { ColorDef } from "@itwin/core-common";
203
+ export type {
204
+ OsmBuildingDisplayOptions,
205
+ HitListHolder,
206
+ FeatureOverrideProvider,
207
+ IModelIdArg,
208
+ FuzzySearchResult,
209
+ FrontendSecurityOptions,
210
+ ToolTipOptions,
211
+ CanvasDecoration,
212
+ GraphicBranchOptions,
213
+ BatchOptions,
214
+ PickableGraphicOptions,
215
+ GraphicBuilderOptions,
216
+ ViewportGraphicBuilderOptions,
217
+ ComputeChordToleranceArgs,
218
+ CustomGraphicBuilderOptions,
219
+ GraphicPrimitive2d,
220
+ GraphicLineString,
221
+ GraphicLineString2d,
222
+ GraphicPointString,
223
+ GraphicPointString2d,
224
+ GraphicShape,
225
+ GraphicShape2d,
226
+ GraphicArc,
227
+ GraphicArc2d,
228
+ GraphicPath,
229
+ GraphicLoop,
230
+ GraphicPolyface,
231
+ GraphicSolidPrimitive,
232
+ ParticleCollectionBuilderParams,
233
+ ParticleProps,
234
+ ParticleCollectionBuilder,
235
+ TextureCacheOwnership,
236
+ TextureImage,
237
+ CreateTextureArgs,
238
+ CreateTextureFromSourceArgs,
239
+ Uniform,
240
+ UniformContext,
241
+ UniformParams,
242
+ UniformArrayParams,
243
+ ScreenSpaceEffectSource,
244
+ ScreenSpaceEffectBuilderParams,
245
+ ScreenSpaceEffectContext,
246
+ ScreenSpaceEffectBuilder,
247
+ SelectAddEvent,
248
+ SelectRemoveEvent,
249
+ SelectReplaceEvent,
250
+ TileTreeDiscloser,
251
+ GpuMemoryLimits,
252
+ TileContent,
253
+ TiledGraphicsProvider,
254
+ TileDrawArgParams,
255
+ TileParams,
256
+ TileTreeOwner,
257
+ TileTreeParams,
258
+ TileTreeSupplier,
259
+ ViewClipEventHandler,
260
+ BeButtonEventProps,
261
+ BeTouchEventProps,
262
+ BeWheelEventProps,
263
+ ParseKeyinError,
264
+ ParsedKeyin,
265
+ ToolAssistanceKeyboardInfo,
266
+ ToolAssistanceInstruction,
267
+ ToolAssistanceSection,
268
+ ToolAssistanceInstructions,
269
+ Animator,
270
+ ViewAnimationOptions,
271
+ GlobalAlignmentOptions,
272
+ OnViewExtentsError,
273
+ MarginOptions,
274
+ ViewChangeOptions,
275
+ ViewCreator2dOptions,
276
+ ViewCreator3dOptions,
277
+ GlobalLocationArea,
278
+ GlobalLocation,
279
+ Decorator,
280
+ SelectedViewportChangedArgs,
281
+ ExtentLimits,
282
+ FlashSettingsOptions,
283
+ MarkerImage,
284
+ MarkerFillStyle,
285
+ MarkerTextAlign,
286
+ MarkerTextBaseline,
287
+ CanvasDecorationList,
288
+ GraphicPrimitive,
289
+ GraphicList,
290
+ TextureCacheKey,
291
+ TextureOwnership,
292
+ TextureImageSource,
293
+ SelectionSetEvent,
294
+ GpuMemoryLimit,
295
+ ToolType,
296
+ ToolList,
297
+ ParseKeyinResult,
298
+ } from "@itwin/core-frontend";
52
299
 
53
- export function registerTool(t: typeof import("@itwin/core-frontend").Tool): Promise<void>
300
+ export {
301
+ BackgroundMapType,
302
+ GlobeMode,
303
+ BriefcaseIdValue,
304
+ SyncMode,
305
+ TypeOfChange,
306
+ ChangesetType,
307
+ BisCodeSpec,
308
+ CommonLoggerCategory,
309
+ QueryRowFormat,
310
+ MonochromeMode,
311
+ ECSqlValueType,
312
+ ChangeOpCode,
313
+ ChangedValueState,
314
+ ECSqlSystemProperty,
315
+ SectionType,
316
+ Rank,
317
+ FeatureOverrideType,
318
+ BatchType,
319
+ FontType,
320
+ Npc,
321
+ GeoCoordStatus,
322
+ ElementGeometryOpcode,
323
+ GeometryStreamFlags,
324
+ FillDisplay,
325
+ BackgroundFill,
326
+ GeometryClass,
327
+ GeometrySummaryVerbosity,
328
+ FillFlags,
329
+ HSVConstants,
330
+ ImageBufferFormat,
331
+ ImageSourceFormat,
332
+ LinePixels,
333
+ MassPropertiesOperation,
334
+ TextureMapUnits,
335
+ PlanarClipMaskMode,
336
+ PlanarClipMaskPriority,
337
+ SkyBoxImageType,
338
+ SpatialClassifierInsideDisplay,
339
+ SpatialClassifierOutsideDisplay,
340
+ TerrainHeightOriginMode,
341
+ ThematicGradientMode,
342
+ ThematicGradientColorScheme,
343
+ ThematicDisplayMode,
344
+ TxnAction,
345
+ GridOrientationType,
346
+ RenderMode,
347
+ ColorByName,
348
+ ColorDef,
349
+ } from "@itwin/core-common";
350
+
351
+ export type {
352
+ AnalysisStyleDisplacementProps,
353
+ AnalysisStyleThematicProps,
354
+ AnalysisStyleProps,
355
+ BackgroundMapProps,
356
+ DeprecatedBackgroundMapProps,
357
+ LocalBriefcaseProps,
358
+ RequestNewBriefcaseProps,
359
+ CameraProps,
360
+ ChangedElements,
361
+ EntityIdAndClassId,
362
+ ChangedEntities,
363
+ ChangesetIndexAndId,
364
+ ChangesetIdWithIndex,
365
+ ChangesetRange,
366
+ CutStyleProps,
367
+ ClipStyleProps,
368
+ CodeProps,
369
+ QueryLimit,
370
+ QueryQuota,
371
+ BaseReaderOptions,
372
+ QueryOptions,
373
+ ContextRealityModelProps,
374
+ ContextRealityModelsContainer,
375
+ DisplayStyleSubCategoryProps,
376
+ DisplayStyleModelAppearanceProps,
377
+ DisplayStylePlanarClipMaskProps,
378
+ DisplayStyleSettingsProps,
379
+ DisplayStyle3dSettingsProps,
380
+ DisplayStyleProps,
381
+ DisplayStyle3dProps,
382
+ DisplayStyleOverridesOptions,
383
+ DisplayStyleSettingsOptions,
384
+ FunctionalElementProps,
385
+ ViewAttachmentLabelProps,
386
+ CalloutProps,
387
+ NavigationValue,
388
+ NavigationBindingValue,
389
+ RelatedElementProps,
390
+ ElementProps,
391
+ GeometricElementProps,
392
+ Placement3dProps,
393
+ Placement2dProps,
394
+ GeometricElement3dProps,
395
+ PhysicalElementProps,
396
+ SectionDrawingProps,
397
+ SectionDrawingLocationProps,
398
+ GeometricElement2dProps,
399
+ GeometryPartProps,
400
+ ViewAttachmentProps,
401
+ SubjectProps,
402
+ SheetProps,
403
+ DefinitionElementProps,
404
+ TypeDefinitionElementProps,
405
+ PhysicalTypeProps,
406
+ InformationPartitionElementProps,
407
+ DisplayStyleLoadProps,
408
+ RenderTimelineLoadProps,
409
+ ElementLoadOptions,
410
+ ElementLoadProps,
411
+ ElementAspectProps,
412
+ ExternalSourceAspectProps,
413
+ ChannelRootAspectProps,
414
+ LineStyleProps,
415
+ CategoryProps,
416
+ SubCategoryProps,
417
+ UrlLinkProps,
418
+ RepositoryLinkProps,
419
+ RenderTimelineProps,
420
+ AppearanceOverrideProps,
421
+ EmphasizeElementsProps,
422
+ EntityProps,
423
+ SourceAndTarget,
424
+ RelationshipProps,
425
+ EntityQueryParams,
426
+ EnvironmentProps,
427
+ FeatureAppearanceProps,
428
+ FeatureAppearanceSource,
429
+ FeatureAppearanceProvider,
430
+ FontMapProps,
431
+ Helmert2DWithZOffsetProps,
432
+ AdditionalTransformProps,
433
+ CartographicProps,
434
+ HorizontalCRSExtentProps,
435
+ HorizontalCRSProps,
436
+ VerticalCRSProps,
437
+ GeographicCRSProps,
438
+ ElementGeometryDataEntry,
439
+ XyzRotationProps,
440
+ GeocentricTransformProps,
441
+ PositionalVectorTransformProps,
442
+ GridFileDefinitionProps,
443
+ GridFileTransformProps,
444
+ GeodeticTransformProps,
445
+ GeodeticDatumProps,
446
+ GeodeticEllipsoidProps,
447
+ GeometryAppearanceProps,
448
+ AreaFillProps,
449
+ MaterialProps,
450
+ GeometryPartInstanceProps,
451
+ GeometryStreamHeaderProps,
452
+ GeometryStreamEntryProps,
453
+ TextStringPrimitive,
454
+ ImagePrimitive,
455
+ PartReference,
456
+ BRepPrimitive,
457
+ GeometryPrimitive,
458
+ GeometryStreamIteratorEntry,
459
+ ImageGraphicProps,
460
+ AffineTransformProps,
461
+ ProjectionProps,
462
+ Carto2DDegreesProps,
463
+ TextStringProps,
464
+ GeometryContainmentRequestProps,
465
+ GeometryContainmentResponseProps,
466
+ GeometrySummaryOptions,
467
+ GeometrySummaryRequestProps,
468
+ GroundPlaneProps,
469
+ EcefLocationProps,
470
+ RootSubjectProps,
471
+ FilePropertyProps,
472
+ ModelIdAndGeometryGuid,
473
+ SolarLightProps,
474
+ AmbientLightProps,
475
+ HemisphereLightsProps,
476
+ FresnelSettingsProps,
477
+ LightSettingsProps,
478
+ Localization,
479
+ MassPropertiesRequestProps,
480
+ MassPropertiesResponseProps,
481
+ TextureMapProps,
482
+ RenderMaterialAssetProps,
483
+ RenderMaterialProps,
484
+ ModelClipGroupProps,
485
+ ElementIdsAndRangesProps,
486
+ ModelGeometryChangesProps,
487
+ ExtantElementGeometryChange,
488
+ DeletedElementGeometryChange,
489
+ ModelGeometryChanges,
490
+ ModelProps,
491
+ ModelLoadProps,
492
+ ModelQueryParams,
493
+ GeometricModelProps,
494
+ GeometricModel2dProps,
495
+ GeometricModel3dProps,
496
+ PlanarClipMaskProps,
497
+ PlanProjectionSettingsProps,
498
+ RgbColorProps,
499
+ RpcActivity,
500
+ SessionProps,
501
+ SkyCubeProps,
502
+ SkyBoxProps,
503
+ SolarShadowSettingsProps,
504
+ SpatialClassifierFlagsProps,
505
+ SpatialClassifierProps,
506
+ SpatialClassifiersContainer,
507
+ TerrainProps,
508
+ TextureProps,
509
+ TextureLoadProps,
510
+ TextureData,
511
+ ThematicGradientSettingsProps,
512
+ ThematicDisplaySensorProps,
513
+ ThematicDisplaySensorSettingsProps,
514
+ ThematicDisplayProps,
515
+ ThumbnailFormatProps,
516
+ ThumbnailProps,
517
+ GraphicsRequestProps,
518
+ PersistentGraphicsRequestProps,
519
+ JsonGeometryStream,
520
+ FlatBufferGeometryStream,
521
+ DynamicGraphicsRequestProps,
522
+ DynamicGraphicsRequest2dProps,
523
+ DynamicGraphicsRequest3dProps,
524
+ TileVersionInfo,
525
+ ViewDetailsProps,
526
+ ViewDetails3dProps,
527
+ ViewFlagProps,
528
+ SectionDrawingViewProps,
529
+ ViewStateProps,
530
+ ViewStateLoadProps,
531
+ ModelSelectorProps,
532
+ CategorySelectorProps,
533
+ ViewQueryParams,
534
+ ViewDefinitionProps,
535
+ ViewDefinition3dProps,
536
+ SpatialViewDefinitionProps,
537
+ ViewDefinition2dProps,
538
+ AuxCoordSystemProps,
539
+ AuxCoordSystem2dProps,
540
+ AuxCoordSystem3dProps,
541
+ WhiteOnWhiteReversalProps,
542
+ BackgroundMapProviderName,
543
+ PersistentBackgroundMapProps,
544
+ Base64EncodedString,
545
+ BriefcaseId,
546
+ EntityIdAndClassIdIterable,
547
+ ChangesetId,
548
+ ChangesetIndex,
549
+ ChangesetIndexOrId,
550
+ CodeScopeProps,
551
+ ColorDefProps,
552
+ PlacementProps,
553
+ FontId,
554
+ UnitType,
555
+ GeodeticTransformMethod,
556
+ GridFileFormat,
557
+ GridFileDirection,
558
+ GeometryStreamProps,
559
+ GeometryStreamPrimitive,
560
+ ImageGraphicCornersProps,
561
+ AxisAlignedBox3d,
562
+ AxisAlignedBox3dProps,
563
+ ElementAlignedBox3d,
564
+ ElementAlignedBox2d,
565
+ LocalAlignedBox3d,
566
+ Placement,
567
+ ProjectionMethod,
568
+ HemisphereEnum,
569
+ DanishSystem34Region,
570
+ RemoveFunction,
571
+ RgbFactorProps,
572
+ Point2dProps,
573
+ ElementGeometryChange,
574
+ SkyBoxImageProps,
575
+ TerrainProviderName,
576
+ ElementGraphicsRequestProps,
577
+ TweenCallback,
578
+ UpdateCallback,
579
+ EasingFunction,
580
+ InterpolationFunction,
581
+ ViewFlagsProperties,
582
+ ViewFlagOverrides,
583
+ } from "@itwin/core-common";
584
+
585
+ // END GENERATED CODE