@itwin/core-extension 3.0.0-extension.1 → 3.1.0-dev.36
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 +9 -0
- package/README.md +11 -0
- package/common_types.d.ts +0 -35
- package/frontend_types.d.ts +9 -75
- package/index.d.ts +25 -0
- package/index.js +36 -9
- package/package.json +13 -21
- package/.rush/temp/package-deps_build +0 -0
- package/.rush/temp/package-deps_cover.json +0 -13
- package/.rush/temp/package-deps_lint.json +0 -13
- package/.rush/temp/shrinkwrap-deps.json +0 -116
- package/core-extension.build.log +0 -0
- package/itwin-extension.d.ts +0 -92
- package/tsconfig.json +0 -14
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.
|
package/common_types.d.ts
CHANGED
|
@@ -8,10 +8,8 @@ export {
|
|
|
8
8
|
BackgroundMapType,
|
|
9
9
|
BatchType,
|
|
10
10
|
BisCodeSpec,
|
|
11
|
-
BriefcaseIdValue,
|
|
12
11
|
ChangedValueState,
|
|
13
12
|
ChangeOpCode,
|
|
14
|
-
ChangesetType,
|
|
15
13
|
ColorByName,
|
|
16
14
|
CommonLoggerCategory,
|
|
17
15
|
ECSqlSystemProperty,
|
|
@@ -39,17 +37,10 @@ export {
|
|
|
39
37
|
QueryRowFormat,
|
|
40
38
|
Rank,
|
|
41
39
|
RenderMode,
|
|
42
|
-
RpcContentType,
|
|
43
|
-
RpcEndpoint,
|
|
44
|
-
RpcProtocolEvent,
|
|
45
|
-
RpcRequestEvent,
|
|
46
|
-
RpcRequestStatus,
|
|
47
|
-
RpcResponseCacheControl,
|
|
48
40
|
SectionType,
|
|
49
41
|
SkyBoxImageType,
|
|
50
42
|
SpatialClassifierInsideDisplay,
|
|
51
43
|
SpatialClassifierOutsideDisplay,
|
|
52
|
-
SyncMode,
|
|
53
44
|
TerrainHeightOriginMode,
|
|
54
45
|
TextureMapUnits,
|
|
55
46
|
ThematicDisplayMode,
|
|
@@ -75,8 +66,6 @@ export type {
|
|
|
75
66
|
BackgroundMapProps,
|
|
76
67
|
BaseReaderOptions,
|
|
77
68
|
BRepPrimitive,
|
|
78
|
-
BriefcaseDownloader,
|
|
79
|
-
BriefcaseProps,
|
|
80
69
|
CalloutProps,
|
|
81
70
|
CameraProps,
|
|
82
71
|
Carto2DDegreesProps,
|
|
@@ -93,8 +82,6 @@ export type {
|
|
|
93
82
|
CodeProps,
|
|
94
83
|
ContextRealityModelProps,
|
|
95
84
|
ContextRealityModelsContainer,
|
|
96
|
-
CreateIModelProps,
|
|
97
|
-
CreateSnapshotIModelProps,
|
|
98
85
|
CutStyleProps,
|
|
99
86
|
DefinitionElementProps,
|
|
100
87
|
DeletedElementGeometryChange,
|
|
@@ -165,18 +152,9 @@ export type {
|
|
|
165
152
|
HemisphereLightsProps,
|
|
166
153
|
HorizontalCRSExtentProps,
|
|
167
154
|
HorizontalCRSProps,
|
|
168
|
-
HttpServerRequest,
|
|
169
|
-
HttpServerResponse,
|
|
170
155
|
ImageGraphicProps,
|
|
171
156
|
ImagePrimitive,
|
|
172
|
-
IModelEncryptionProps,
|
|
173
|
-
IModelProps,
|
|
174
|
-
IModelRpcOpenProps,
|
|
175
|
-
IModelRpcProps,
|
|
176
157
|
InformationPartitionElementProps,
|
|
177
|
-
IpcSocket,
|
|
178
|
-
IpcSocketBackend,
|
|
179
|
-
IpcSocketFrontend,
|
|
180
158
|
JsonGeometryStream,
|
|
181
159
|
LightSettingsProps,
|
|
182
160
|
LineStyleProps,
|
|
@@ -195,10 +173,6 @@ export type {
|
|
|
195
173
|
ModelSelectorProps,
|
|
196
174
|
NavigationBindingValue,
|
|
197
175
|
NavigationValue,
|
|
198
|
-
OpenAPIInfo,
|
|
199
|
-
OpenBriefcaseOptions,
|
|
200
|
-
OpenBriefcaseProps,
|
|
201
|
-
OpenDbKey,
|
|
202
176
|
PartReference,
|
|
203
177
|
PersistentGraphicsRequestProps,
|
|
204
178
|
PhysicalElementProps,
|
|
@@ -226,13 +200,11 @@ export type {
|
|
|
226
200
|
SectionDrawingLocationProps,
|
|
227
201
|
SectionDrawingProps,
|
|
228
202
|
SectionDrawingViewProps,
|
|
229
|
-
SerializedRpcActivity,
|
|
230
203
|
SessionProps,
|
|
231
204
|
SheetProps,
|
|
232
205
|
SkyBoxImageProps,
|
|
233
206
|
SkyBoxProps,
|
|
234
207
|
SkyCubeProps,
|
|
235
|
-
SnapshotOpenOptions,
|
|
236
208
|
SolarLightProps,
|
|
237
209
|
SolarShadowSettingsProps,
|
|
238
210
|
SourceAndTarget,
|
|
@@ -286,7 +258,6 @@ export {
|
|
|
286
258
|
ChangesetIndexOrId,
|
|
287
259
|
CodeScopeProps,
|
|
288
260
|
ColorDefProps,
|
|
289
|
-
CreateEmptySnapshotIModelProps,
|
|
290
261
|
DanishSystem34Region,
|
|
291
262
|
EasingFunction,
|
|
292
263
|
ElementAlignedBox2d,
|
|
@@ -301,13 +272,8 @@ export {
|
|
|
301
272
|
GridFileFormat,
|
|
302
273
|
HemisphereEnum,
|
|
303
274
|
ImageGraphicCornersProps,
|
|
304
|
-
IModelConnectionProps,
|
|
305
|
-
IModelVersionProps,
|
|
306
275
|
InterpolationFunction,
|
|
307
|
-
IpcListener,
|
|
308
276
|
LocalAlignedBox3d,
|
|
309
|
-
LocalDirName,
|
|
310
|
-
LocalFileName,
|
|
311
277
|
PersistentBackgroundMapProps,
|
|
312
278
|
Placement,
|
|
313
279
|
PlacementProps,
|
|
@@ -315,7 +281,6 @@ export {
|
|
|
315
281
|
ProjectionMethod,
|
|
316
282
|
RemoveFunction,
|
|
317
283
|
RgbFactorProps,
|
|
318
|
-
StandaloneOpenOptions,
|
|
319
284
|
TerrainProviderName,
|
|
320
285
|
TweenCallback,
|
|
321
286
|
UnitType,
|
package/frontend_types.d.ts
CHANGED
|
@@ -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,
|
|
@@ -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
|
-
|
|
230
|
-
Cluster,
|
|
215
|
+
// Cluster, @REAL
|
|
231
216
|
ContextRealityModelState,
|
|
232
217
|
DecorateContext,
|
|
233
218
|
Decorations,
|
|
@@ -242,76 +227,45 @@ export type {
|
|
|
242
227
|
ElementState,
|
|
243
228
|
// EmphasizeElements, @REAL
|
|
244
229
|
EntityState,
|
|
245
|
-
Environment,
|
|
246
230
|
EventController,
|
|
247
|
-
// FitViewTool, @TOOL-IMPL
|
|
248
231
|
FlashSettings,
|
|
249
|
-
//
|
|
250
|
-
FrustumAnimator,
|
|
251
|
-
FuzzySearch,
|
|
252
|
-
FuzzySearchResults,
|
|
232
|
+
// FrustumAnimator, @REAL
|
|
253
233
|
GeometricModel2dState,
|
|
254
234
|
GeometricModel3dState,
|
|
255
|
-
GlobeAnimator,
|
|
256
|
-
GraphicalEditingScope,
|
|
235
|
+
// GlobeAnimator, @REAL
|
|
257
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
|
-
//
|
|
270
|
-
//
|
|
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
286
|
// 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
287
|
} from "@itwin/core-frontend";
|
|
353
288
|
|
|
354
289
|
// namespaces (minus conflicts)
|
|
355
290
|
export type {
|
|
356
291
|
// EditManipulator, @REAL
|
|
357
292
|
// FeatureSymbology, @REAL
|
|
358
|
-
Frustum2d,
|
|
359
293
|
PerModelCategoryVisibility,
|
|
360
294
|
// Pixel @REAL
|
|
361
295
|
} from "@itwin/core-frontend";
|
package/index.d.ts
CHANGED
|
@@ -2,8 +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.
|
|
5
7
|
export * from "./common_types";
|
|
6
8
|
export * from "./frontend_types";
|
|
9
|
+
|
|
10
|
+
// Export all real values here.
|
|
7
11
|
export {
|
|
8
12
|
InteractiveTool,
|
|
9
13
|
PrimitiveTool,
|
|
@@ -21,6 +25,27 @@ export {
|
|
|
21
25
|
GraphicBranch,
|
|
22
26
|
NotifyMessageDetails,
|
|
23
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,
|
|
24
49
|
} from "@itwin/core-frontend";
|
|
25
50
|
|
|
26
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
|
|
10
|
+
// re-export tool
|
|
5
11
|
export const {
|
|
6
12
|
InteractiveTool,
|
|
7
13
|
PrimitiveTool,
|
|
@@ -20,10 +26,38 @@ export const {
|
|
|
20
26
|
GraphicBranch,
|
|
21
27
|
NotifyMessageDetails,
|
|
22
28
|
|
|
23
|
-
// FIXME
|
|
24
29
|
ExtensionHost,
|
|
25
30
|
} = ext.exports;
|
|
26
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
|
+
|
|
27
61
|
// re-export enums
|
|
28
62
|
export const {
|
|
29
63
|
// core-frontend:
|
|
@@ -117,14 +151,7 @@ export const {
|
|
|
117
151
|
QueryRowFormat,
|
|
118
152
|
Rank,
|
|
119
153
|
RenderMode,
|
|
120
|
-
RpcContentType,
|
|
121
|
-
RpcEndpoint,
|
|
122
|
-
RpcProtocolEvent,
|
|
123
|
-
RpcRequestEvent,
|
|
124
|
-
RpcRequestStatus,
|
|
125
|
-
RpcResponseCacheControl,
|
|
126
154
|
SectionType,
|
|
127
|
-
SkyBoxImageType,
|
|
128
155
|
SpatialClassifierInsideDisplay,
|
|
129
156
|
SpatialClassifierOutsideDisplay,
|
|
130
157
|
SyncMode,
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/core-extension",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "3.1.0-dev.36",
|
|
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.
|
|
23
|
-
"@itwin/core-
|
|
24
|
-
"@itwin/core-geometry": "3.0.0-extension.1",
|
|
25
|
-
"@itwin/core-common": "3.0.0-extension.1",
|
|
26
|
-
"@itwin/core-quantity": "3.0.0-extension.1",
|
|
27
|
-
"@bentley/itwin-client": "3.0.0-extension.1",
|
|
28
|
-
"@itwin/core-orbitgt": "3.0.0-extension.1",
|
|
29
|
-
"@bentley/product-settings-client": "3.0.0-extension.1",
|
|
30
|
-
"@itwin/appui-abstract": "3.0.0-extension.1",
|
|
31
|
-
"@itwin/webgl-compatibility": "3.0.0-extension.1"
|
|
23
|
+
"@itwin/core-frontend": "3.1.0-dev.36",
|
|
24
|
+
"@itwin/core-common": "3.1.0-dev.36"
|
|
32
25
|
},
|
|
33
26
|
"devDependencies": {
|
|
34
|
-
"@itwin/build-tools": "3.
|
|
35
|
-
"@itwin/eslint-plugin": "3.
|
|
27
|
+
"@itwin/build-tools": "3.1.0-dev.36",
|
|
28
|
+
"@itwin/eslint-plugin": "3.1.0-dev.36",
|
|
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
|
-
"@
|
|
34
|
+
"@itwin"
|
|
43
35
|
],
|
|
44
|
-
"extends": "plugin:@
|
|
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,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": {
|
|
3
|
-
"core/extension/common_types.d.ts": "a1694d67b3bef204107b5f9971504c91b35f4932",
|
|
4
|
-
"core/extension/frontend_types.d.ts": "8e72a580a8cfeb1b214f3065b398b8e4cd2c6d73",
|
|
5
|
-
"core/extension/index.d.ts": "adc21ef7e7edb3c76b725d75eaef73fc26bd6e30",
|
|
6
|
-
"core/extension/index.js": "6d4c939db9e4ed4035e3f50cfeb6debe138988b7",
|
|
7
|
-
"core/extension/itwin-extension.d.ts": "faf3c2224a3eabe147f8a5371edb5fcd141ab846",
|
|
8
|
-
"core/extension/package.json": "f38cf6353f7a58e5a21d710ccd278f00253ee5a1",
|
|
9
|
-
"core/extension/tsconfig.json": "c81a00de21cb79c772a5169e94566ab54828bf8f",
|
|
10
|
-
"core/extension/.rush/temp/shrinkwrap-deps.json": "6c80188df0c9fc949b42ca7d8d5400bf36e7af98"
|
|
11
|
-
},
|
|
12
|
-
"arguments": ""
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": {
|
|
3
|
-
"core/extension/common_types.d.ts": "a1694d67b3bef204107b5f9971504c91b35f4932",
|
|
4
|
-
"core/extension/frontend_types.d.ts": "8e72a580a8cfeb1b214f3065b398b8e4cd2c6d73",
|
|
5
|
-
"core/extension/index.d.ts": "adc21ef7e7edb3c76b725d75eaef73fc26bd6e30",
|
|
6
|
-
"core/extension/index.js": "6d4c939db9e4ed4035e3f50cfeb6debe138988b7",
|
|
7
|
-
"core/extension/itwin-extension.d.ts": "faf3c2224a3eabe147f8a5371edb5fcd141ab846",
|
|
8
|
-
"core/extension/package.json": "f38cf6353f7a58e5a21d710ccd278f00253ee5a1",
|
|
9
|
-
"core/extension/tsconfig.json": "c81a00de21cb79c772a5169e94566ab54828bf8f",
|
|
10
|
-
"core/extension/.rush/temp/shrinkwrap-deps.json": "6c80188df0c9fc949b42ca7d8d5400bf36e7af98"
|
|
11
|
-
},
|
|
12
|
-
"arguments": ""
|
|
13
|
-
}
|
|
@@ -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.3.0": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
|
|
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.12.0": "sha512-uS8X6lSKN2JumVoXrbUz+uG4BYG+eiawqm3qFcT7ammfbUHeCBoJMlHcec/S3krSk73/AE/f0szYFmgAA3kYZg==",
|
|
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
|
-
}
|
package/core-extension.build.log
DELETED
|
File without changes
|
package/itwin-extension.d.ts
DELETED
|
@@ -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
|
-
}
|