@itwin/core-extension 3.2.0-dev.8 → 3.3.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/index.d.ts +575 -43
- package/index.js +228 -159
- package/package.json +7 -6
- package/preview.d.ts +18 -0
- package/preview.js +9 -0
- package/common_types.d.ts +0 -290
- package/frontend_types.d.ts +0 -295
package/index.js
CHANGED
|
@@ -7,165 +7,234 @@
|
|
|
7
7
|
const globalSymbol = Symbol.for("itwin.core.frontend.globals");
|
|
8
8
|
const ext = globalThis[globalSymbol].getExtensionApi("import.meta.url");
|
|
9
9
|
|
|
10
|
-
//
|
|
11
|
-
export const {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
ViewTool,
|
|
15
|
-
Tool,
|
|
16
|
-
|
|
17
|
-
ToolAssistance,
|
|
18
|
-
BeButtonEvent,
|
|
19
|
-
ViewRect,
|
|
20
|
-
Pixel,
|
|
21
|
-
LocateResponse,
|
|
22
|
-
EditManipulator,
|
|
23
|
-
AccuDrawHintBuilder,
|
|
24
|
-
EmphasizeElements,
|
|
25
|
-
FeatureSymbology,
|
|
26
|
-
GraphicBranch,
|
|
27
|
-
NotifyMessageDetails,
|
|
28
|
-
|
|
29
|
-
ExtensionHost,
|
|
30
|
-
} = ext.exports;
|
|
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;
|
|
10
|
+
// export extension stuff
|
|
11
|
+
export const { registerTool } = ext.api;
|
|
12
|
+
// exception for ExtensionHost
|
|
13
|
+
export const { ExtensionHost } = ext.exports;
|
|
60
14
|
|
|
61
|
-
//
|
|
15
|
+
// BEGIN GENERATED CODE
|
|
62
16
|
export const {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
17
|
+
// @itwin/core-frontend:
|
|
18
|
+
ContextRotationId,
|
|
19
|
+
ACSType,
|
|
20
|
+
ACSDisplayOptions,
|
|
21
|
+
CoordSystem,
|
|
22
|
+
LocateAction,
|
|
23
|
+
LocateFilterStatus,
|
|
24
|
+
SnapStatus,
|
|
25
|
+
FlashMode,
|
|
26
|
+
FrontendLoggerCategory,
|
|
27
|
+
SnapMode,
|
|
28
|
+
SnapHeat,
|
|
29
|
+
HitSource,
|
|
30
|
+
HitGeomType,
|
|
31
|
+
HitParentGeomType,
|
|
32
|
+
HitPriority,
|
|
33
|
+
HitDetailType,
|
|
34
|
+
OutputMessageType,
|
|
35
|
+
OutputMessagePriority,
|
|
36
|
+
OutputMessageAlert,
|
|
37
|
+
ActivityMessageEndReason,
|
|
38
|
+
MessageBoxType,
|
|
39
|
+
MessageBoxIconType,
|
|
40
|
+
MessageBoxValue,
|
|
41
|
+
GraphicType,
|
|
42
|
+
UniformType,
|
|
43
|
+
VaryingType,
|
|
44
|
+
SelectionSetEventType,
|
|
45
|
+
StandardViewId,
|
|
46
|
+
TileLoadStatus,
|
|
47
|
+
TileVisibility,
|
|
48
|
+
TileLoadPriority,
|
|
49
|
+
TileBoundingBoxes,
|
|
50
|
+
TileTreeLoadStatus,
|
|
51
|
+
TileGraphicType,
|
|
52
|
+
ClipEventType,
|
|
53
|
+
SelectionMethod,
|
|
54
|
+
SelectionMode,
|
|
55
|
+
SelectionProcessing,
|
|
56
|
+
BeButton,
|
|
57
|
+
CoordinateLockOverrides,
|
|
58
|
+
InputSource,
|
|
59
|
+
CoordSource,
|
|
60
|
+
BeModifierKeys,
|
|
61
|
+
EventHandled,
|
|
62
|
+
ParseAndRunResult,
|
|
63
|
+
KeyinParseError,
|
|
64
|
+
StartOrResume,
|
|
65
|
+
ManipulatorToolEvent,
|
|
66
|
+
ToolAssistanceImage,
|
|
67
|
+
ToolAssistanceInputMethod,
|
|
68
|
+
ViewStatus,
|
|
69
|
+
AccuDrawHintBuilder,
|
|
70
|
+
AccuSnap,
|
|
71
|
+
AuxCoordSystemState,
|
|
72
|
+
AuxCoordSystem2dState,
|
|
73
|
+
AuxCoordSystem3dState,
|
|
74
|
+
AuxCoordSystemSpatialState,
|
|
75
|
+
BingLocationProvider,
|
|
76
|
+
CategorySelectorState,
|
|
77
|
+
ChangeFlags,
|
|
78
|
+
ContextRealityModelState,
|
|
79
|
+
DisplayStyleState,
|
|
80
|
+
DisplayStyle2dState,
|
|
81
|
+
DisplayStyle3dState,
|
|
82
|
+
DrawingViewState,
|
|
83
|
+
LocateOptions,
|
|
84
|
+
LocateResponse,
|
|
85
|
+
ElementPicker,
|
|
86
|
+
ElementLocateManager,
|
|
87
|
+
EmphasizeElements,
|
|
88
|
+
EntityState,
|
|
89
|
+
ElementState,
|
|
90
|
+
FlashSettings,
|
|
91
|
+
FrustumAnimator,
|
|
92
|
+
GlobeAnimator,
|
|
93
|
+
HitDetail,
|
|
94
|
+
SnapDetail,
|
|
95
|
+
IntersectDetail,
|
|
96
|
+
HitList,
|
|
97
|
+
canvasToResizedCanvasWithBars,
|
|
98
|
+
imageBufferToCanvas,
|
|
99
|
+
canvasToImageBuffer,
|
|
100
|
+
getImageSourceMimeType,
|
|
101
|
+
getImageSourceFormatForMimeType,
|
|
102
|
+
imageElementFromImageSource,
|
|
103
|
+
imageElementFromUrl,
|
|
104
|
+
extractImageSourceDimensions,
|
|
105
|
+
imageBufferToPngDataUrl,
|
|
106
|
+
imageBufferToBase64EncodedPng,
|
|
107
|
+
getCompressedJpegFromCanvas,
|
|
108
|
+
IModelConnection,
|
|
109
|
+
NotificationHandler,
|
|
110
|
+
MarginPercent,
|
|
111
|
+
Marker,
|
|
112
|
+
Cluster,
|
|
113
|
+
MarkerSet,
|
|
114
|
+
ModelSelectorState,
|
|
115
|
+
ModelState,
|
|
116
|
+
GeometricModelState,
|
|
117
|
+
GeometricModel2dState,
|
|
118
|
+
GeometricModel3dState,
|
|
119
|
+
SheetModelState,
|
|
120
|
+
SpatialModelState,
|
|
121
|
+
PhysicalModelState,
|
|
122
|
+
SpatialLocationModelState,
|
|
123
|
+
DrawingModelState,
|
|
124
|
+
SectionDrawingModelState,
|
|
125
|
+
NotifyMessageDetails,
|
|
126
|
+
ActivityMessageDetails,
|
|
127
|
+
NotificationManager,
|
|
128
|
+
PerModelCategoryVisibility,
|
|
129
|
+
Decorations,
|
|
130
|
+
FeatureSymbology,
|
|
131
|
+
GraphicBranch,
|
|
132
|
+
GraphicBuilder,
|
|
133
|
+
Pixel,
|
|
134
|
+
RenderClipVolume,
|
|
135
|
+
RenderGraphic,
|
|
136
|
+
RenderGraphicOwner,
|
|
137
|
+
RenderSystem,
|
|
138
|
+
Scene,
|
|
139
|
+
HiliteSet,
|
|
140
|
+
SelectionSet,
|
|
141
|
+
SheetViewState,
|
|
142
|
+
SpatialViewState,
|
|
143
|
+
OrthographicViewState,
|
|
144
|
+
Sprite,
|
|
145
|
+
IconSprites,
|
|
146
|
+
SpriteLocation,
|
|
147
|
+
TentativePoint,
|
|
148
|
+
DisclosedTileTreeSet,
|
|
149
|
+
readElementGraphics,
|
|
150
|
+
BingElevationProvider,
|
|
151
|
+
Tile,
|
|
152
|
+
TileAdmin,
|
|
153
|
+
TileDrawArgs,
|
|
154
|
+
TileRequest,
|
|
155
|
+
TileRequestChannelStatistics,
|
|
156
|
+
TileRequestChannel,
|
|
157
|
+
TileRequestChannels,
|
|
158
|
+
TileTree,
|
|
159
|
+
TileTreeReference,
|
|
160
|
+
TileUsageMarker,
|
|
161
|
+
Tiles,
|
|
162
|
+
ViewClipTool,
|
|
163
|
+
ViewClipClearTool,
|
|
164
|
+
ViewClipDecorationProvider,
|
|
165
|
+
EditManipulator,
|
|
166
|
+
EventController,
|
|
167
|
+
PrimitiveTool,
|
|
168
|
+
BeButtonState,
|
|
169
|
+
BeButtonEvent,
|
|
170
|
+
BeTouchEvent,
|
|
171
|
+
BeWheelEvent,
|
|
172
|
+
Tool,
|
|
173
|
+
InteractiveTool,
|
|
174
|
+
InputCollector,
|
|
175
|
+
ToolAdmin,
|
|
176
|
+
ToolAssistance,
|
|
177
|
+
ToolSettings,
|
|
178
|
+
ViewTool,
|
|
179
|
+
ViewManip,
|
|
180
|
+
ViewCreator2d,
|
|
181
|
+
ViewCreator3d,
|
|
182
|
+
queryTerrainElevationOffset,
|
|
183
|
+
ViewingSpace,
|
|
184
|
+
ViewManager,
|
|
185
|
+
ViewPose,
|
|
186
|
+
ViewRect,
|
|
187
|
+
ViewState,
|
|
188
|
+
ViewState3d,
|
|
189
|
+
ViewState2d,
|
|
190
|
+
// @itwin/core-common:
|
|
191
|
+
BackgroundMapType,
|
|
192
|
+
GlobeMode,
|
|
193
|
+
BriefcaseIdValue,
|
|
194
|
+
SyncMode,
|
|
195
|
+
TypeOfChange,
|
|
196
|
+
ChangesetType,
|
|
197
|
+
BisCodeSpec,
|
|
198
|
+
CommonLoggerCategory,
|
|
199
|
+
QueryRowFormat,
|
|
200
|
+
MonochromeMode,
|
|
201
|
+
ECSqlValueType,
|
|
202
|
+
ChangeOpCode,
|
|
203
|
+
ChangedValueState,
|
|
204
|
+
ECSqlSystemProperty,
|
|
205
|
+
SectionType,
|
|
206
|
+
Rank,
|
|
207
|
+
FeatureOverrideType,
|
|
208
|
+
BatchType,
|
|
209
|
+
FontType,
|
|
210
|
+
Npc,
|
|
211
|
+
GeoCoordStatus,
|
|
212
|
+
ElementGeometryOpcode,
|
|
213
|
+
GeometryStreamFlags,
|
|
214
|
+
FillDisplay,
|
|
215
|
+
BackgroundFill,
|
|
216
|
+
GeometryClass,
|
|
217
|
+
GeometrySummaryVerbosity,
|
|
218
|
+
FillFlags,
|
|
219
|
+
HSVConstants,
|
|
220
|
+
ImageBufferFormat,
|
|
221
|
+
ImageSourceFormat,
|
|
222
|
+
LinePixels,
|
|
223
|
+
MassPropertiesOperation,
|
|
224
|
+
TextureMapUnits,
|
|
225
|
+
PlanarClipMaskMode,
|
|
226
|
+
PlanarClipMaskPriority,
|
|
227
|
+
SkyBoxImageType,
|
|
228
|
+
SpatialClassifierInsideDisplay,
|
|
229
|
+
SpatialClassifierOutsideDisplay,
|
|
230
|
+
TerrainHeightOriginMode,
|
|
231
|
+
ThematicGradientMode,
|
|
232
|
+
ThematicGradientColorScheme,
|
|
233
|
+
ThematicDisplayMode,
|
|
234
|
+
TxnAction,
|
|
235
|
+
GridOrientationType,
|
|
236
|
+
RenderMode,
|
|
237
|
+
ColorByName,
|
|
238
|
+
ColorDef,
|
|
165
239
|
} = ext.exports;
|
|
166
|
-
|
|
167
|
-
// re-export commmon
|
|
168
|
-
export const { ColorDef } = ext.exports;
|
|
169
|
-
|
|
170
|
-
// export extension stuff
|
|
171
|
-
export const { registerTool } = ext.api;
|
|
240
|
+
// END GENERATED CODE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/core-extension",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0-dev.1",
|
|
4
4
|
"description": "iTwin.js Extension API",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"url": "http://www.bentley.com"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@itwin/core-frontend": "3.
|
|
24
|
-
"@itwin/core-common": "3.
|
|
23
|
+
"@itwin/core-frontend": "3.3.0-dev.1",
|
|
24
|
+
"@itwin/core-common": "3.3.0-dev.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@itwin/build-tools": "3.
|
|
28
|
-
"@itwin/eslint-plugin": "3.
|
|
27
|
+
"@itwin/build-tools": "3.3.0-dev.1",
|
|
28
|
+
"@itwin/eslint-plugin": "3.3.0-dev.1",
|
|
29
29
|
"eslint": "^7.11.0",
|
|
30
30
|
"rimraf": "^3.0.2"
|
|
31
31
|
},
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"cover": "",
|
|
44
44
|
"docs": "",
|
|
45
45
|
"lint": "",
|
|
46
|
-
"test": ""
|
|
46
|
+
"test": "",
|
|
47
|
+
"generate": "node ./codeGen/generate-exports.js '[\"@itwin/core-frontend\",\"core/frontend\"] [\"@itwin/core-common\",\"core/common\"]'"
|
|
47
48
|
},
|
|
48
49
|
"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"
|
|
49
50
|
}
|
package/preview.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
// BEGIN GENERATED CODE
|
|
6
|
+
export {
|
|
7
|
+
} from "@itwin/core-frontend";
|
|
8
|
+
|
|
9
|
+
export type {
|
|
10
|
+
} from "@itwin/core-frontend";
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
} from "@itwin/core-common";
|
|
14
|
+
|
|
15
|
+
export type {
|
|
16
|
+
} from "@itwin/core-common";
|
|
17
|
+
|
|
18
|
+
// END GENERATED CODE
|
package/preview.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const globalSymbol = Symbol.for("itwin.core.frontend.globals");
|
|
2
|
+
const ext = globalThis[globalSymbol].getExtensionApi("import.meta.url");
|
|
3
|
+
|
|
4
|
+
// BEGIN GENERATED CODE
|
|
5
|
+
export const {
|
|
6
|
+
// @itwin/core-frontend:
|
|
7
|
+
// @itwin/core-common:
|
|
8
|
+
} = ext.exports;
|
|
9
|
+
// END GENERATED CODE
|