@itwin/core-extension 3.2.0-dev.9 → 3.2.2

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