@itwin/core-extension 3.0.0-extension.0 → 3.1.0-dev.37

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/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ # MIT License
2
+
3
+ Copyright © 2022 Bentley Systems, Incorporated. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # @itwin/core-extension
2
+
3
+ Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.
4
+
5
+ ## Description
6
+
7
+ The **@itwin/core-extension** package defines all of the types and apis that can be used by an extension.
8
+
9
+ ## Documentation
10
+
11
+ See the [iTwin.js](https://www.itwinjs.org) documentation for more information.
@@ -0,0 +1,290 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ // Enums (note these are all real!)
6
+ export {
7
+ BackgroundFill,
8
+ BackgroundMapType,
9
+ BatchType,
10
+ BisCodeSpec,
11
+ ChangedValueState,
12
+ ChangeOpCode,
13
+ ColorByName,
14
+ CommonLoggerCategory,
15
+ ECSqlSystemProperty,
16
+ ECSqlValueType,
17
+ ElementGeometryOpcode,
18
+ FeatureOverrideType,
19
+ FillDisplay,
20
+ FillFlags,
21
+ FontType,
22
+ GeoCoordStatus,
23
+ GeometryClass,
24
+ GeometryStreamFlags,
25
+ GeometrySummaryVerbosity,
26
+ GlobeMode,
27
+ GridOrientationType,
28
+ HSVConstants,
29
+ ImageBufferFormat,
30
+ ImageSourceFormat,
31
+ LinePixels,
32
+ MassPropertiesOperation,
33
+ MonochromeMode,
34
+ Npc,
35
+ PlanarClipMaskMode,
36
+ PlanarClipMaskPriority,
37
+ QueryRowFormat,
38
+ Rank,
39
+ RenderMode,
40
+ SectionType,
41
+ SkyBoxImageType,
42
+ SpatialClassifierInsideDisplay,
43
+ SpatialClassifierOutsideDisplay,
44
+ TerrainHeightOriginMode,
45
+ TextureMapUnits,
46
+ ThematicDisplayMode,
47
+ ThematicGradientColorScheme,
48
+ ThematicGradientMode,
49
+ TxnAction,
50
+ TypeOfChange,
51
+ } from "@itwin/core-common";
52
+
53
+ // Interfaces
54
+ export type {
55
+ AdditionalTransformProps,
56
+ AffineTransformProps,
57
+ AmbientLightProps,
58
+ AnalysisStyleDisplacementProps,
59
+ AnalysisStyleProps,
60
+ AnalysisStyleThematicProps,
61
+ AppearanceOverrideProps,
62
+ AreaFillProps,
63
+ AuxCoordSystem2dProps,
64
+ AuxCoordSystem3dProps,
65
+ AuxCoordSystemProps,
66
+ BackgroundMapProps,
67
+ BaseReaderOptions,
68
+ BRepPrimitive,
69
+ CalloutProps,
70
+ CameraProps,
71
+ Carto2DDegreesProps,
72
+ CartographicProps,
73
+ CategoryProps,
74
+ CategorySelectorProps,
75
+ ChangedElements,
76
+ ChangedEntities,
77
+ ChangesetIdWithIndex,
78
+ ChangesetIndexAndId,
79
+ ChangesetRange,
80
+ ChannelRootAspectProps,
81
+ ClipStyleProps,
82
+ CodeProps,
83
+ ContextRealityModelProps,
84
+ ContextRealityModelsContainer,
85
+ CutStyleProps,
86
+ DefinitionElementProps,
87
+ DeletedElementGeometryChange,
88
+ DeprecatedBackgroundMapProps,
89
+ DisplayStyle3dProps,
90
+ DisplayStyle3dSettingsProps,
91
+ DisplayStyleLoadProps,
92
+ DisplayStyleModelAppearanceProps,
93
+ DisplayStyleOverridesOptions,
94
+ DisplayStylePlanarClipMaskProps,
95
+ DisplayStyleProps,
96
+ DisplayStyleSettingsOptions,
97
+ DisplayStyleSettingsProps,
98
+ DisplayStyleSubCategoryProps,
99
+ DynamicGraphicsRequest2dProps,
100
+ DynamicGraphicsRequest3dProps,
101
+ DynamicGraphicsRequestProps,
102
+ EcefLocationProps,
103
+ ElementAspectProps,
104
+ ElementGeometryDataEntry,
105
+ ElementIdsAndRangesProps,
106
+ ElementLoadOptions,
107
+ ElementLoadProps,
108
+ ElementProps,
109
+ EmphasizeElementsProps,
110
+ EntityIdAndClassId,
111
+ EntityProps,
112
+ EntityQueryParams,
113
+ EnvironmentProps,
114
+ ExtantElementGeometryChange,
115
+ ExternalSourceAspectProps,
116
+ FeatureAppearanceProps,
117
+ FeatureAppearanceProvider,
118
+ FeatureAppearanceSource,
119
+ FilePropertyProps,
120
+ FlatBufferGeometryStream,
121
+ FontMapProps,
122
+ FontProps,
123
+ FresnelSettingsProps,
124
+ FunctionalElementProps,
125
+ GeocentricTransformProps,
126
+ GeodeticDatumProps,
127
+ GeodeticEllipsoidProps,
128
+ GeodeticTransformProps,
129
+ GeographicCRSProps,
130
+ GeometricElement2dProps,
131
+ GeometricElement3dProps,
132
+ GeometricElementProps,
133
+ GeometricModel2dProps,
134
+ GeometricModel3dProps,
135
+ GeometricModelProps,
136
+ GeometryAppearanceProps,
137
+ GeometryContainmentRequestProps,
138
+ GeometryContainmentResponseProps,
139
+ GeometryPartInstanceProps,
140
+ GeometryPartProps,
141
+ GeometryPrimitive,
142
+ GeometryStreamEntryProps,
143
+ GeometryStreamHeaderProps,
144
+ GeometryStreamIteratorEntry,
145
+ GeometrySummaryOptions,
146
+ GeometrySummaryRequestProps,
147
+ GraphicsRequestProps,
148
+ GridFileDefinitionProps,
149
+ GridFileTransformProps,
150
+ GroundPlaneProps,
151
+ Helmert2DWithZOffsetProps,
152
+ HemisphereLightsProps,
153
+ HorizontalCRSExtentProps,
154
+ HorizontalCRSProps,
155
+ ImageGraphicProps,
156
+ ImagePrimitive,
157
+ InformationPartitionElementProps,
158
+ JsonGeometryStream,
159
+ LightSettingsProps,
160
+ LineStyleProps,
161
+ LocalBriefcaseProps,
162
+ Localization,
163
+ MassPropertiesRequestProps,
164
+ MassPropertiesResponseProps,
165
+ MaterialProps,
166
+ ModelClipGroupProps,
167
+ ModelGeometryChanges,
168
+ ModelGeometryChangesProps,
169
+ ModelIdAndGeometryGuid,
170
+ ModelLoadProps,
171
+ ModelProps,
172
+ ModelQueryParams,
173
+ ModelSelectorProps,
174
+ NavigationBindingValue,
175
+ NavigationValue,
176
+ PartReference,
177
+ PersistentGraphicsRequestProps,
178
+ PhysicalElementProps,
179
+ PhysicalTypeProps,
180
+ Placement2dProps,
181
+ Placement3dProps,
182
+ PlanarClipMaskProps,
183
+ PlanProjectionSettingsProps,
184
+ PositionalVectorTransformProps,
185
+ ProjectionProps,
186
+ QueryLimit,
187
+ QueryOptions,
188
+ QueryQuota,
189
+ RelatedElementProps,
190
+ RelationshipProps,
191
+ RenderMaterialAssetProps,
192
+ RenderMaterialProps,
193
+ RenderTimelineLoadProps,
194
+ RenderTimelineProps,
195
+ RepositoryLinkProps,
196
+ RequestNewBriefcaseProps,
197
+ RgbColorProps,
198
+ RootSubjectProps,
199
+ RpcActivity,
200
+ SectionDrawingLocationProps,
201
+ SectionDrawingProps,
202
+ SectionDrawingViewProps,
203
+ SessionProps,
204
+ SheetProps,
205
+ SkyBoxImageProps,
206
+ SkyBoxProps,
207
+ SkyCubeProps,
208
+ SolarLightProps,
209
+ SolarShadowSettingsProps,
210
+ SourceAndTarget,
211
+ SpatialClassifierFlagsProps,
212
+ SpatialClassifierProps,
213
+ SpatialClassifiersContainer,
214
+ SpatialViewDefinitionProps,
215
+ SubCategoryProps,
216
+ SubjectProps,
217
+ TerrainProps,
218
+ TextStringPrimitive,
219
+ TextStringProps,
220
+ TextureData,
221
+ TextureLoadProps,
222
+ TextureMapProps,
223
+ TextureProps,
224
+ ThematicDisplayProps,
225
+ ThematicDisplaySensorProps,
226
+ ThematicDisplaySensorSettingsProps,
227
+ ThematicGradientSettingsProps,
228
+ ThumbnailFormatProps,
229
+ ThumbnailProps,
230
+ TileVersionInfo,
231
+ TypeDefinitionElementProps,
232
+ UrlLinkProps,
233
+ VerticalCRSProps,
234
+ ViewAttachmentLabelProps,
235
+ ViewAttachmentProps,
236
+ ViewDefinition2dProps,
237
+ ViewDefinition3dProps,
238
+ ViewDefinitionProps,
239
+ ViewDetails3dProps,
240
+ ViewDetailsProps,
241
+ ViewFlagProps,
242
+ ViewQueryParams,
243
+ ViewStateLoadProps,
244
+ ViewStateProps,
245
+ WhiteOnWhiteReversalProps,
246
+ XyzRotationProps,
247
+ } from "@itwin/core-common"
248
+
249
+ // Types
250
+ export {
251
+ AxisAlignedBox3d,
252
+ AxisAlignedBox3dProps,
253
+ BackgroundMapProviderName,
254
+ Base64EncodedString,
255
+ BriefcaseId,
256
+ ChangesetId,
257
+ ChangesetIndex,
258
+ ChangesetIndexOrId,
259
+ CodeScopeProps,
260
+ ColorDefProps,
261
+ DanishSystem34Region,
262
+ EasingFunction,
263
+ ElementAlignedBox2d,
264
+ ElementAlignedBox3d,
265
+ ElementGeometryChange,
266
+ ElementGraphicsRequestProps,
267
+ EntityIdAndClassIdIterable,
268
+ GeodeticTransformMethod,
269
+ GeometryStreamPrimitive,
270
+ GeometryStreamProps,
271
+ GridFileDirection,
272
+ GridFileFormat,
273
+ HemisphereEnum,
274
+ ImageGraphicCornersProps,
275
+ InterpolationFunction,
276
+ LocalAlignedBox3d,
277
+ PersistentBackgroundMapProps,
278
+ Placement,
279
+ PlacementProps,
280
+ Point2dProps,
281
+ ProjectionMethod,
282
+ RemoveFunction,
283
+ RgbFactorProps,
284
+ TerrainProviderName,
285
+ TweenCallback,
286
+ UnitType,
287
+ UpdateCallback,
288
+ ViewFlagOverrides,
289
+ ViewFlagsProperties,
290
+ } from "@itwin/core-common"
@@ -9,7 +9,6 @@ export type {
9
9
  BeButtonEventProps,
10
10
  BeTouchEventProps,
11
11
  BeWheelEventProps,
12
- BlankConnectionProps,
13
12
  CanvasDecoration,
14
13
  ChangeViewedModel2dOptions,
15
14
  ComputeChordToleranceArgs,
@@ -21,7 +20,6 @@ export type {
21
20
  DepthRangeNpc,
22
21
  ExtentLimits,
23
22
  FeatureOverrideProvider,
24
- FrontendHubAccess,
25
23
  FrontendSecurityOptions,
26
24
  FuzzySearchResult,
27
25
  GlobalAlignmentOptions,
@@ -44,11 +42,8 @@ export type {
44
42
  GraphicShape2d,
45
43
  GraphicSolidPrimitive,
46
44
  HitListHolder,
47
- IModelAppOptions,
48
45
  IModelIdArg,
49
- IpcAppOptions,
50
46
  MarginOptions,
51
- NativeAppOpts,
52
47
  OffScreenViewportOptions,
53
48
  OnViewExtentsError,
54
49
  OsmBuildingDisplayOptions,
@@ -98,8 +93,6 @@ export type {
98
93
  // Types
99
94
  export type {
100
95
  CanvasDecorationList,
101
- DownloadBriefcaseId,
102
- DownloadBriefcaseOptions,
103
96
  FlashSettingsOptions,
104
97
  GpuMemoryLimit,
105
98
  GraphicList,
@@ -133,7 +126,6 @@ export {
133
126
  DepthPointSource,
134
127
  EventHandled,
135
128
  FlashMode,
136
- FrontendLoggerCategory,
137
129
  GraphicType,
138
130
  HitDetailType,
139
131
  HitGeomType,
@@ -179,22 +171,19 @@ export {
179
171
  // Abstract Classes
180
172
  export type {
181
173
  AuxCoordSystemState,
182
- BriefcaseNotificationHandler,
183
174
  DisplayStyleState,
184
175
  GeometricModelState,
185
176
  GraphicBuilder,
186
177
  IModelConnection,
187
- InputCollector,
178
+ // InputCollector, @REAL
188
179
  // InteractiveTool, @REAL
189
180
  MarkerSet,
190
- // MeasureElementTool, @TOOL-IMPL
191
181
  NotificationHandler,
192
182
  // PrimitiveTool, @REAL
193
183
  RenderClipVolume,
194
184
  RenderGraphic,
195
185
  RenderGraphicOwner,
196
186
  RenderSystem,
197
- SkyBox,
198
187
  Tile,
199
188
  TileTree,
200
189
  TileTreeReference,
@@ -204,12 +193,12 @@ export type {
204
193
  ViewState,
205
194
  ViewState2d,
206
195
  ViewState3d,
207
- } from // ViewTool @REAL
208
- "@itwin/core-frontend";
196
+ // ViewTool @REAL
197
+ } from "@itwin/core-frontend";
209
198
 
210
199
  // Classes
211
200
  export type {
212
- AccuDrawHintBuilder,
201
+ // AccuDrawHintBuilder, @REAL
213
202
  AccuSnap,
214
203
  ActivityMessageDetails,
215
204
  AuxCoordSystem2dState,
@@ -219,15 +208,11 @@ export type {
219
208
  BeButtonState,
220
209
  BeTouchEvent,
221
210
  BeWheelEvent,
222
- BingElevationProvider,
223
- BingLocationProvider,
224
- BlankConnection,
225
- BriefcaseConnection,
226
- BriefcaseTxns,
211
+ // BingElevationProvider, @REAL
212
+ // BingLocationProvider, @REAL
227
213
  CategorySelectorState,
228
214
  ChangeFlags,
229
- CheckpointConnection,
230
- Cluster,
215
+ // Cluster, @REAL
231
216
  ContextRealityModelState,
232
217
  DecorateContext,
233
218
  Decorations,
@@ -240,78 +225,47 @@ export type {
240
225
  ElementLocateManager,
241
226
  ElementPicker,
242
227
  ElementState,
243
- EmphasizeElements,
228
+ // EmphasizeElements, @REAL
244
229
  EntityState,
245
- Environment,
246
230
  EventController,
247
- // FitViewTool, @TOOL-IMPL
248
231
  FlashSettings,
249
- // FlyViewTool, @TOOL-IMPL
250
- FrustumAnimator,
251
- FuzzySearch,
252
- FuzzySearchResults,
232
+ // FrustumAnimator, @REAL
253
233
  GeometricModel2dState,
254
234
  GeometricModel3dState,
255
- GlobeAnimator,
256
- GraphicalEditingScope,
257
- GraphicBranch,
235
+ // GlobeAnimator, @REAL
236
+ // GraphicBranch, @REAL
258
237
  HiliteSet,
259
238
  HitDetail,
260
239
  HitList,
261
240
  IconSprites,
262
- // IdleTool, @TOOL-IMPL
263
241
  // IModelApp, @BANNED
264
- IModelRoutingContext,
265
242
  IntersectDetail,
266
243
  // IpcApp, @BANNED
267
244
  LocateOptions,
268
245
  // LocateResponse, @REAL
269
- // LookAndMoveTool, @TOOL-IMPL
270
- // LookViewTool, @TOOL-IMPL
271
- MarginPercent,
272
- Marker,
273
- // MeasureAreaByPointsTool, @TOOL-IMPL
274
- // MeasureAreaTool, @TOOL-IMPL
275
- // MeasureDistanceTool, @TOOL-IMPL
276
- // MeasureLengthTool, @TOOL-IMPL
277
- // MeasureLocationTool, @TOOL-IMPL
278
- // MeasureVolumeTool, @TOOL-IMPL
246
+ // MarginPercent, @REAL
247
+ // Marker, @REAL
279
248
  ModelSelectorState,
280
249
  ModelState,
281
- NativeApp,
282
- NativeAppAuthorization,
283
250
  NotificationManager,
284
- NotifyMessageDetails,
251
+ // NotifyMessageDetails, @REAL
285
252
  OffScreenViewport,
286
253
  OrthographicViewState,
287
- // PanViewTool, @TOOL-IMPL
288
254
  PhysicalModelState,
289
255
  RenderContext,
290
- // RotateViewTool, @TOOL-IMPL
291
256
  Scene,
292
257
  SceneContext,
293
258
  ScreenViewport,
294
- // ScrollViewTool, @TOOL-IMPL
295
259
  SectionDrawingModelState,
296
260
  SelectionSet,
297
- // SelectionTool, @TOOL-IMPL
298
- // SetupCameraTool, @TOOL-IMPL
299
- // SetupWalkCameraTool, @TOOL-IMPL
300
261
  SheetModelState,
301
262
  SheetViewState,
302
- SkyCube,
303
- SkyGradient,
304
- SkySphere,
305
263
  SnapDetail,
306
- SnapshotConnection,
307
264
  SpatialLocationModelState,
308
265
  SpatialModelState,
309
266
  SpatialViewState,
310
267
  Sprite,
311
268
  SpriteLocation,
312
- StandardView,
313
- // StandardViewTool, @TOOL-IMPL
314
- Storage,
315
269
  TentativePoint,
316
270
  TileAdmin,
317
271
  TileDrawArgs,
@@ -324,38 +278,18 @@ export type {
324
278
  // Tool, @REAL
325
279
  ToolAdmin,
326
280
  // ToolAssistance, @REAL
327
- ToolRegistry,
328
281
  ToolSettings,
329
- TwoWayViewportSync,
330
- // ViewClipByElementTool, @TOOL-IMPL
331
- // ViewClipByPlaneTool, @TOOL-IMPL
332
- // ViewClipByRangeTool, @TOOL-IMPL
333
- // ViewClipByShapeTool, @TOOL-IMPL
334
- // ViewClipClearTool, @TOOL-IMPL
335
- ViewClipDecorationProvider,
336
- // ViewClipTool, @TOOL-IMPL
337
282
  ViewCreator2d,
338
283
  ViewCreator3d,
339
- // ViewGlobeBirdTool, @TOOL-IMPL
340
- // ViewGlobeIModelTool, @TOOL-IMPL
341
- // ViewGlobeLocationTool, @TOOL-IMPL
342
- // ViewGlobeSatelliteTool, @TOOL-IMPL
343
284
  ViewingSpace,
344
285
  ViewManager,
345
- } from // ViewRect, @REAL
346
- // ViewRedoTool, @TOOL-IMPL
347
- // ViewToggleCameraTool, @TOOL-IMPL
348
- // ViewUndoTool, @TOOL-IMPL
349
- // WalkViewTool, @TOOL-IMPL
350
- // WindowAreaTool, @TOOL-IMPL
351
- // ZoomViewTool @TOOL-IMPL
352
- "@itwin/core-frontend";
286
+ // ViewRect, @REAL
287
+ } from "@itwin/core-frontend";
353
288
 
354
289
  // namespaces (minus conflicts)
355
290
  export type {
356
- EditManipulator,
357
- FeatureSymbology,
358
- Frustum2d,
291
+ // EditManipulator, @REAL
292
+ // FeatureSymbology, @REAL
359
293
  PerModelCategoryVisibility,
360
- } from // Pixel @REAL
361
- "@itwin/core-frontend";
294
+ // Pixel @REAL
295
+ } from "@itwin/core-frontend";
package/index.d.ts CHANGED
@@ -2,7 +2,12 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
+
6
+ // Export all types here.
7
+ export * from "./common_types";
5
8
  export * from "./frontend_types";
9
+
10
+ // Export all real values here.
6
11
  export {
7
12
  InteractiveTool,
8
13
  PrimitiveTool,
@@ -13,7 +18,34 @@ export {
13
18
  ViewRect,
14
19
  Pixel,
15
20
  LocateResponse,
21
+ EditManipulator,
22
+ AccuDrawHintBuilder,
23
+ EmphasizeElements,
24
+ FeatureSymbology,
25
+ GraphicBranch,
26
+ NotifyMessageDetails,
16
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,
17
49
  } from "@itwin/core-frontend";
18
50
 
19
51
  export { ColorDef } from "@itwin/core-common";
package/index.js CHANGED
@@ -1,7 +1,13 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
1
7
  const globalSymbol = Symbol.for("itwin.core.frontend.globals");
2
8
  const ext = globalThis[globalSymbol].getExtensionApi("import.meta.url");
3
9
 
4
- // re-export tool stuff
10
+ // re-export tool
5
11
  export const {
6
12
  InteractiveTool,
7
13
  PrimitiveTool,
@@ -13,13 +19,48 @@ export const {
13
19
  ViewRect,
14
20
  Pixel,
15
21
  LocateResponse,
22
+ EditManipulator,
23
+ AccuDrawHintBuilder,
24
+ EmphasizeElements,
25
+ FeatureSymbology,
26
+ GraphicBranch,
27
+ NotifyMessageDetails,
16
28
 
17
- // FIXME
18
29
  ExtensionHost,
19
30
  } = ext.exports;
20
31
 
32
+ // re-export frontend items
33
+ export const {
34
+ BingElevationProvider,
35
+ BingLocationProvider,
36
+ InputCollector,
37
+ FrustumAnimator,
38
+ GlobeAnimator,
39
+ MarginPercent,
40
+ Marker,
41
+ Cluster
42
+ } = ext.exports;
43
+
44
+ // re-export functions
45
+ export const {
46
+ getCompressedJpegFromCanvas,
47
+ getImageSourceFormatForMimeType,
48
+ getImageSourceMimeType,
49
+ imageBufferToBase64EncodedPng,
50
+ imageBufferToCanvas,
51
+ imageBufferToPngDataUrl,
52
+ imageElementFromImageSource,
53
+ imageElementFromUrl,
54
+ queryTerrainElevationOffset,
55
+ readElementGraphics,
56
+ canvasToImageBuffer,
57
+ canvasToResizedCanvasWithBars,
58
+ extractImageSourceDimensions
59
+ } = ext.exports;
60
+
21
61
  // re-export enums
22
62
  export const {
63
+ // core-frontend:
23
64
  ACSDisplayOptions,
24
65
  ACSType,
25
66
  ActivityMessageEndReason,
@@ -74,6 +115,53 @@ export const {
74
115
  VaryingType,
75
116
  ViewStatus,
76
117
  ViewUndoEvent,
118
+ // core-common:
119
+ BackgroundFill,
120
+ BackgroundMapType,
121
+ BatchType,
122
+ BisCodeSpec,
123
+ BriefcaseIdValue,
124
+ ChangedValueState,
125
+ ChangeOpCode,
126
+ ChangesetType,
127
+ ColorByName,
128
+ CommonLoggerCategory,
129
+ ECSqlSystemProperty,
130
+ ECSqlValueType,
131
+ ElementGeometryOpcode,
132
+ FeatureOverrideType,
133
+ FillDisplay,
134
+ FillFlags,
135
+ FontType,
136
+ GeoCoordStatus,
137
+ GeometryClass,
138
+ GeometryStreamFlags,
139
+ GeometrySummaryVerbosity,
140
+ GlobeMode,
141
+ GridOrientationType,
142
+ HSVConstants,
143
+ ImageBufferFormat,
144
+ ImageSourceFormat,
145
+ LinePixels,
146
+ MassPropertiesOperation,
147
+ MonochromeMode,
148
+ Npc,
149
+ PlanarClipMaskMode,
150
+ PlanarClipMaskPriority,
151
+ QueryRowFormat,
152
+ Rank,
153
+ RenderMode,
154
+ SectionType,
155
+ SpatialClassifierInsideDisplay,
156
+ SpatialClassifierOutsideDisplay,
157
+ SyncMode,
158
+ TerrainHeightOriginMode,
159
+ TextureMapUnits,
160
+ ThematicDisplayMode,
161
+ ThematicGradientColorScheme,
162
+ ThematicGradientMode,
163
+ TxnAction,
164
+ TypeOfChange,
77
165
  } = ext.exports;
78
166
 
79
167
  // re-export commmon
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@itwin/core-extension",
3
- "version": "3.0.0-extension.0",
4
- "description": "",
3
+ "version": "3.1.0-dev.37",
4
+ "description": "iTwin.js Extension API",
5
5
  "typings": "index.d.ts",
6
6
  "license": "MIT",
7
7
  "repository": {
8
- "type": "git"
8
+ "type": "git",
9
+ "url": "https://github.com/iTwin/itwinjs-core/tree/master/core/extension"
9
10
  },
10
11
  "keywords": [
11
12
  "Bentley",
@@ -19,29 +20,20 @@
19
20
  "url": "http://www.bentley.com"
20
21
  },
21
22
  "dependencies": {
22
- "@itwin/core-frontend": "3.0.0-extension.0",
23
- "@itwin/core-bentley": "3.0.0-extension.0",
24
- "@itwin/core-geometry": "3.0.0-extension.0",
25
- "@itwin/core-common": "3.0.0-extension.0",
26
- "@itwin/core-quantity": "3.0.0-extension.0",
27
- "@bentley/itwin-client": "3.0.0-extension.0",
28
- "@itwin/core-orbitgt": "3.0.0-extension.0",
29
- "@bentley/product-settings-client": "3.0.0-extension.0",
30
- "@itwin/appui-abstract": "3.0.0-extension.0",
31
- "@itwin/webgl-compatibility": "3.0.0-extension.0"
23
+ "@itwin/core-frontend": "3.1.0-dev.37",
24
+ "@itwin/core-common": "3.1.0-dev.37"
32
25
  },
33
26
  "devDependencies": {
34
- "@itwin/build-tools": "3.0.0-extension.0",
35
- "@itwin/eslint-plugin": "3.0.0-extension.0",
27
+ "@itwin/build-tools": "3.1.0-dev.37",
28
+ "@itwin/eslint-plugin": "3.1.0-dev.37",
36
29
  "eslint": "^7.11.0",
37
- "rimraf": "^3.0.2",
38
- "typescript": "~4.4.0"
30
+ "rimraf": "^3.0.2"
39
31
  },
40
32
  "eslintConfig": {
41
33
  "plugins": [
42
- "@bentley"
34
+ "@itwin"
43
35
  ],
44
- "extends": "plugin:@bentley/imodeljs-recommended"
36
+ "extends": "plugin:@itwin/itwinjs-recommended"
45
37
  },
46
38
  "scripts": {
47
39
  "compile": "",
@@ -51,7 +43,7 @@
51
43
  "cover": "",
52
44
  "docs": "",
53
45
  "lint": "",
54
- "// lint": "eslint -f visualstudio \"./src/**/*.ts\" 1>&2",
55
46
  "test": ""
56
- }
47
+ },
48
+ "readme": "# @itwin/core-extension\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.\r\n\r\n## Description\r\n\r\nThe **@itwin/core-extension** package defines all of the types and apis that can be used by an extension.\r\n\r\n## Documentation\r\n\r\nSee the [iTwin.js](https://www.itwinjs.org) documentation for more information.\r\n"
57
49
  }
File without changes
@@ -1,12 +0,0 @@
1
- {
2
- "files": {
3
- "core/extension/frontend_types.d.ts": "4a5fe6dbe5edb36b3989d19edfc23e3ab81fd647",
4
- "core/extension/index.d.ts": "3d5f90506bf8115e4de3bef840f6f5a66ad1cf68",
5
- "core/extension/index.js": "291a456ca44ee4ba4c362cb8bb297a5d57944bf5",
6
- "core/extension/itwin-extension.d.ts": "faf3c2224a3eabe147f8a5371edb5fcd141ab846",
7
- "core/extension/package.json": "53bc851ce02b20d611096bacbca078b57738915b",
8
- "core/extension/tsconfig.json": "c81a00de21cb79c772a5169e94566ab54828bf8f",
9
- "core/extension/.rush/temp/shrinkwrap-deps.json": "2c9fdb2540d7e7f52f8d7817a93ee6752a3de564"
10
- },
11
- "arguments": ""
12
- }
@@ -1,12 +0,0 @@
1
- {
2
- "files": {
3
- "core/extension/frontend_types.d.ts": "4a5fe6dbe5edb36b3989d19edfc23e3ab81fd647",
4
- "core/extension/index.d.ts": "3d5f90506bf8115e4de3bef840f6f5a66ad1cf68",
5
- "core/extension/index.js": "291a456ca44ee4ba4c362cb8bb297a5d57944bf5",
6
- "core/extension/itwin-extension.d.ts": "faf3c2224a3eabe147f8a5371edb5fcd141ab846",
7
- "core/extension/package.json": "53bc851ce02b20d611096bacbca078b57738915b",
8
- "core/extension/tsconfig.json": "c81a00de21cb79c772a5169e94566ab54828bf8f",
9
- "core/extension/.rush/temp/shrinkwrap-deps.json": "2c9fdb2540d7e7f52f8d7817a93ee6752a3de564"
10
- },
11
- "arguments": ""
12
- }
@@ -1,116 +0,0 @@
1
- {
2
- "@babel/code-frame@7.12.11": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==",
3
- "@babel/helper-validator-identifier@7.15.7": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==",
4
- "@babel/highlight@7.14.5": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==",
5
- "@eslint/eslintrc@0.4.3": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==",
6
- "@humanwhocodes/config-array@0.5.0": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==",
7
- "@humanwhocodes/object-schema@1.2.0": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==",
8
- "acorn-jsx@5.3.2_acorn@7.4.1": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
9
- "acorn@7.4.1": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
10
- "ajv@6.12.6": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
11
- "ajv@8.6.3": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==",
12
- "ansi-colors@4.1.1": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==",
13
- "ansi-regex@5.0.1": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
14
- "ansi-styles@3.2.1": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
15
- "ansi-styles@4.3.0": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
16
- "argparse@1.0.10": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
17
- "astral-regex@2.0.0": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==",
18
- "balanced-match@1.0.2": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
19
- "brace-expansion@1.1.11": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
20
- "callsites@3.1.0": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
21
- "chalk@2.4.2": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
22
- "chalk@4.1.2": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
23
- "color-convert@1.9.3": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
24
- "color-convert@2.0.1": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
25
- "color-name@1.1.3": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
26
- "color-name@1.1.4": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
27
- "concat-map@0.0.1": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
28
- "cross-spawn@7.0.3": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
29
- "debug@4.3.2": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
30
- "deep-is@0.1.4": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
31
- "doctrine@3.0.0": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
32
- "emoji-regex@8.0.0": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
33
- "enquirer@2.3.6": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==",
34
- "escape-string-regexp@1.0.5": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
35
- "escape-string-regexp@4.0.0": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
36
- "eslint-scope@5.1.1": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
37
- "eslint-utils@2.1.0": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==",
38
- "eslint-visitor-keys@1.3.0": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
39
- "eslint-visitor-keys@2.1.0": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",
40
- "eslint@7.32.0": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==",
41
- "espree@7.3.1": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==",
42
- "esprima@4.0.1": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
43
- "esquery@1.4.0": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==",
44
- "esrecurse@4.3.0": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
45
- "estraverse@4.3.0": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
46
- "estraverse@5.2.0": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==",
47
- "esutils@2.0.3": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
48
- "fast-deep-equal@3.1.3": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
49
- "fast-json-stable-stringify@2.1.0": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
50
- "fast-levenshtein@2.0.6": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
51
- "file-entry-cache@6.0.1": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
52
- "flat-cache@3.0.4": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==",
53
- "flatted@3.2.2": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==",
54
- "fs.realpath@1.0.0": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
55
- "functional-red-black-tree@1.0.1": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=",
56
- "glob-parent@5.1.2": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
57
- "glob@7.2.0": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
58
- "globals@13.11.0": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==",
59
- "has-flag@3.0.0": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
60
- "has-flag@4.0.0": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
61
- "ignore@4.0.6": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
62
- "import-fresh@3.3.0": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
63
- "imurmurhash@0.1.4": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",
64
- "inflight@1.0.6": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
65
- "inherits@2.0.4": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
66
- "is-extglob@2.1.1": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
67
- "is-fullwidth-code-point@3.0.0": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
68
- "is-glob@4.0.3": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
69
- "isexe@2.0.0": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
70
- "js-tokens@4.0.0": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
71
- "js-yaml@3.14.1": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
72
- "json-schema-traverse@0.4.1": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
73
- "json-schema-traverse@1.0.0": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
74
- "json-stable-stringify-without-jsonify@1.0.1": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",
75
- "levn@0.4.1": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
76
- "lodash.clonedeep@4.5.0": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=",
77
- "lodash.merge@4.6.2": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
78
- "lodash.truncate@4.4.2": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=",
79
- "lru-cache@6.0.0": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
80
- "minimatch@3.0.4": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
81
- "ms@2.1.2": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
82
- "natural-compare@1.4.0": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
83
- "once@1.4.0": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
84
- "optionator@0.9.1": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==",
85
- "parent-module@1.0.1": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
86
- "path-is-absolute@1.0.1": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
87
- "path-key@3.1.1": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
88
- "prelude-ls@1.2.1": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
89
- "progress@2.0.3": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
90
- "punycode@2.1.1": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
91
- "regexpp@3.2.0": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==",
92
- "require-from-string@2.0.2": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
93
- "resolve-from@4.0.0": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
94
- "rimraf@3.0.2": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
95
- "semver@7.3.5": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",
96
- "shebang-command@2.0.0": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
97
- "shebang-regex@3.0.0": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
98
- "slice-ansi@4.0.0": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==",
99
- "sprintf-js@1.0.3": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
100
- "string-width@4.2.3": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
101
- "strip-ansi@6.0.1": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
102
- "strip-json-comments@3.1.1": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
103
- "supports-color@5.5.0": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
104
- "supports-color@7.2.0": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
105
- "table@6.7.2": "sha512-UFZK67uvyNivLeQbVtkiUs8Uuuxv24aSL4/Vil2PJVtMgU8Lx0CYkP12uCGa3kjyQzOSgV1+z9Wkb82fCGsO0g==",
106
- "text-table@0.2.0": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
107
- "type-check@0.4.0": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
108
- "type-fest@0.20.2": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
109
- "typescript@4.4.4": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==",
110
- "uri-js@4.4.1": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
111
- "v8-compile-cache@2.3.0": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==",
112
- "which@2.0.2": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
113
- "word-wrap@1.2.3": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
114
- "wrappy@1.0.2": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
115
- "yallist@4.0.0": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
116
- }
File without changes
@@ -1,92 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- declare module "itwin-extension" {
7
- /**
8
- * @alpha
9
- */
10
- export type ActivationEvent =
11
- | "onIModelAppStartup"
12
- | "onIModelAppStartupFinished"
13
- | "onIModelConnected"
14
- | `onCommand:${string}` // key-ins too?
15
- | "onSelectionChanged"
16
- | `onSchemaLoaded:${string}`; // for civil
17
-
18
- /**
19
- * @alpha
20
- */
21
- export interface ContributionPoint {
22
- commands?: Command[];
23
- tools?: Tool[];
24
- }
25
-
26
- /**
27
- * @alpha
28
- */
29
- export interface ExtensionManifest {
30
- /** The extension name */
31
- readonly name: string;
32
- /** The extension display name */
33
- readonly displayName?: string;
34
- /** The extension version */
35
- readonly version: string;
36
- /** The minimum compatible version of iTwin.js used */
37
- readonly coreVersion: string;
38
- /** The minimum compatible version of iTwin.js Extension Api used */
39
- readonly apiVersion: string;
40
- /** The extension description */
41
- readonly description?: string;
42
- /** The extension author */
43
- readonly author: string;
44
- /** List of all Activation Events */
45
- readonly activationEvents: ActivationEvent[];
46
- /** List of all Contribution Points */
47
- readonly contributionPoints: ContributionPoint[];
48
- }
49
-
50
- /**
51
- * @alpha
52
- */
53
- export interface Command {
54
- name: string;
55
- description?: string;
56
- arguments?: any[];
57
- execute: (args: any) => void;
58
- }
59
-
60
- export namespace Commands {
61
- export function registerCommand(command: Command): void;
62
- export function executeCommand(command: string, ...args: any[]): void;
63
- }
64
-
65
- /**
66
- * @alpha
67
- */
68
- export interface Tool {
69
- readonly name: string;
70
- readonly toolId: string;
71
- readonly icon: HTMLElement;
72
- readonly label?: string;
73
- tooltip?: string;
74
- arguments?: any[];
75
- readonly execute: (...args: any[]) => void;
76
- }
77
-
78
- export namespace Tools {
79
- /** Registers a tool that can be invoked */
80
- export function registerTool(tool: Tool);
81
-
82
- /** Executes the tool denoted by the identifier.
83
- *
84
- * @param toolId Identifier of the tool to execute
85
- * @param args Parameters passed to the tool when executed.
86
- */
87
- export function executeTool<T>(
88
- toolId: string,
89
- ...args: any[]
90
- ): Promise<void>;
91
- }
92
- }
package/tsconfig.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "./node_modules/@itwin/build-tools/tsconfig-base.json",
3
- "compilerOptions": {
4
- "declaration": false,
5
- "declarationMap": false,
6
- "outDir": "./lib",
7
- "module": "ES2020",
8
- "moduleResolution": "node",
9
- "isolatedModules": true,
10
- "skipLibCheck": true,
11
- "allowJs": true
12
- },
13
- "include": ["./src/**/*.js", "./src/**/*.ts"]
14
- }